enter image description here

I have one used advertisement purpose Magento extension in website,when i click on upload Images Button then make this error.

Please help me Developers,Thanks

Error :

SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`carparts_mage`.`#sql-952f8_1ffc720`, CONSTRAINT `FK_CAT_PRD_FLAT_1_ENTT_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE )

For avoiding forign key set SET foreign_key_checks = 0; before uploading database and then later after importing change it back to SET foreign_key_checks = 1;

  • This post doesn't seem to be about uploading a database at all, rather it seems to be some kind of integrity constraint affecting a journey clicking through the UI. – Luke Rodgers Aug 23 '16 at 11:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.