SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (
my_magento/catalog_category_product_index
, CONSTRAINTFK_CAT_CTGR_PRD_IDX_CTGR_ID_CAT_CTGR_ENTT_ENTT_ID
FOREIGN KEY (category_id
) REFERENCEScatalog_category_entity
(entity_id
) O)
This is the error I'm getting when trying to reindex data (outputed it as it's adviced here: "There was a problem with reindexing process." after product import )
But that solution doesn't help at all. Please help where to search for it, I'm not really familiar with MySQL foreign keys. How to detect corrupted records? What's the principe of fixing them?