1

我不能再像它所说的那样让 magento 正确地重新索引there was a problem with the reindexing process。我已经使用 SSH 访问来尝试手动重新索引数据。使用 SSH 访问我看到了错误,但不确定如何解决错误日志如下。

'pdoexception' with message 'SQLSTATE [23000] : Intergrity constraints violation; 1452 cannot add or update a child row: a foreign key constraint fails ....... <result 2 when explaing filename '#sql-c45_91e313'>, CONSTRAINT 'FK_MAGE_MAGE_CAT_PRD_FLAT_1_ENTT_ID_MAGE_CAT_PRD_ENTT_ENTT_ID' FOREIGN KEY ('entity_id') REFERENCES 'mage_ca)' in home/.../public_html/lib/Zend/Db/Statement/Pdo.php:228

任何帮助,将不胜感激

4

2 回答 2

2

尝试删除所有产品平面表。它们将由索引器重新创建。

于 2012-02-20T09:28:32.413 回答
0

您是否尝试过禁用 Flat_catalog_category 和 Flat_catlaog_product,然后截断 catalog_product_flat 表。确保在截断之前禁用外键约束检查 SET FOREIGN_KEY_CHECKS = 0;。一旦这样做,您应该能够通过 ssh 手动重新索引。这个问题的一个有据可查的解决方案在这里:http ://binarythoughts21.blogspot.in/2013/12/reindexing-problems-in-magento.html

于 2013-12-11T10:32:59.463 回答