Fix Magento error 1452

i have this error in my magento with fresh installation. it happen when i try to add a new product with this code


->setAttributeSetId(9)# 9 is for default



->setWebsiteIDs(array(1)) # Website id, 1 is default





->setPrice($price) # Set some price





->setStockData(array( "use_config_manage_stock" => "1", "original_inventory_qty" => "1", "qty"=> "99999", "use_config_min_qty" => "1", "use_config_min_sale_qty" => "1", "use_config_max_sale_qty" => 1, "is_qty_decimal" => "0", "use_config_backorders" => "1", "use_config_notify_stock_qty" => "1", "use_config_enable_qty_increments" => "1", "use_config_qty_increments" => "1", "is_in_stock" => 0 ))




exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1452 Cannot add or update a child row: a foreign key constraint fails (`magento/catalog_product_entity`, CONSTRAINT `FK_CAT_PRD_ENTT_ATTR_SET_ID_EAV_ATTR_SET_ATTR_SET_ID` FOREIGN KEY (`attribute_set_id`) REFERENCES `eav_attribute_set` (`attribute_set_id`) ON DELE)' in C:\AppServ\www\magento\lib\Zend\Db\Statement\[url removed, login to view]

could somebody help please.

Skills: eCommerce, Magento, PHP, Shopping Carts

See more: magento 1452, pdo website, php pdo, pdo, 1452, general error 2013, add foreign key constraint, magento update product php, foreign key, magento qty, zend help, exception pdoexception message sqlstate, magento product qty, error 1452 sqlstate, pdoexception, sqlstate hy000 magento, 1452 foreign key constraint, magento sqlstate hy000, sqlstate hy000, itemid fix, magento key, fix constraint, magento fix price, fix error magento, fix price product

About the Employer:
( 20 reviews ) Armenia, Colombia

Project ID: #5135250

18 freelancers are bidding on average $55 for this job


We are highly interested to work with you on this project and can assure you quality results ready to start immediately some of our developed websites are listed below E-commerce ht More

$257 USD in 3 days
(244 Reviews)

Hello I can assist you with this now. **************************************************************************************

$30 USD in 1 day
(606 Reviews)

Hi, I was working with magento from 2008. I often provide Magento extension and Magento theme. I have exp with upgraded, import data, themes, tax, payment, sales, shipping, SEO, etc... Please see my profile for mor More

$34 USD in 1 day
(241 Reviews)

Sir, I am working on magento from early 2008, at the first release of magentocommerce. I have customize magento on many parts of this secure package. I have experienced to work with most recent stable version of mag More

$44 USD in 2 days
(97 Reviews)

I have read your project description, i understand what you want, and i would like to offer you my services. I have strong knowledge of Magento, and plenty of experience with it, most importantly including fixing vario More

$30 USD in 1 day
(171 Reviews)

I have read your job posting and am sure can do the job. I have more than 4 year experience in magento so I have done a lot of tasks like yours before. It would be great if I have a chance to discuss with you more. More

$30 USD in 1 day
(122 Reviews)

Hello, Hope you remember me.. I think i can fix...lets do it... Regards Froiden .................. .........................

$30 USD in 1 day
(125 Reviews)

Magento Expert we can do Magento Expert we can do Magento Expert we can do Magento Expert we can do Magento Expert we can do Magento Expert we can do

$30 USD in 3 days
(275 Reviews)

Hi.. I can handle it. no need milestone now. make milestone when you will see progress. looking forward. Thanks

$34 USD in 1 day
(56 Reviews)

Hello prosperidad, I have gone through your outsourced requirement "Fix Magento error 1452" and have analyzed that I have right credentials (eCommerce, Magento, PHP, Shopping Carts) to execute your esteemed project More

$55 USD in 0 days
(50 Reviews)

Hi sir, Thank you for giving opportunity for biding... we have gone through your requirements and we can fix your magento error according to your exact requirements. Please Before Awarding this project to others More

$190 USD in 5 days
(20 Reviews)

Hello Sir, We have checked your job detail and as per that we are able to do your job and we have very good experience in Word Press, Joomla, Joomla component, Modules, PHP, HTML,Magento etc . As well knowledge on More

$53 USD in 3 days
(13 Reviews)

Introducing myself as Magento Developer having having 5+yrs of experience in working with magento. I have been working with highly feature loaded store with customized solutions & concept driven programming. I have spe More

$50 USD in 1 day
(11 Reviews)

Hello sir I have great experience about magento.if you hire me I will do the job as per your requirements.Please hire me.I am waiting for your response. thanks

$35 USD in 3 days
(17 Reviews)

Hi, I am Expert in "Magento" with a huge experience of Developing Magento Stores, Magento Extensions and Magento Themes. I am expert in Magento custom Plug-in developing, System Optimization ,Payment Gateway, Custom More

$40 USD in 1 day
(7 Reviews)

Hello, I have solved this kind of error with other magento websites, if your interested contact me thanks

$25 USD in 1 day
(3 Reviews)

Hello prosperidad,I have a experience in prestashop, I can fix it for you. Please pm for you. Thank you!

$25 USD in 2 days
(3 Reviews)

Hello, I have gone throw your requirement. i have understand this error i have 4+ experiences in magneto I have solid work experience in magento website design and development . i am looking forward your rep More

$30 USD in 1 day
(3 Reviews)

Dear Hiring Manager , I have just seen your Job posting and upon reading thoroughly, I felt strongly that I would be the most qualified contractor for your job. Over the last couple of years, I have provided my Web More

$77 USD in 3 days
(3 Reviews)

Hello, I saw your requirements.we will complete this project successfully with your all requirements.

$15 USD in 3 days
(0 Reviews)