【发布时间】:2014-05-28 11:25:39
【问题描述】:
我正在尝试在 magento 中重新索引我的数据。除“产品属性”外,所有索引都工作正常,其当前状态停留在“处理中”。当我尝试使用 magento 管理面板进行索引时,它显示以下错误。
当我尝试使用命令“ php indexer.php --reindexall ”通过shell重新索引我的数据时,它会引发以下异常
Product Attributes index process unknown error:
exception 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint vio lation: 1062 Duplicate entry '163-137-1-74' for key 'PRIMARY'' in /home/emperorh ome/public_html/lib/Zend/Db/Statement/Pdo.php:228
Next exception 'Zend_Db_Statement_Exception' with message 'SQLSTATE[23000]: Inte grity constraint violation: 1062 Duplicate entry '163-137-1-74' for key 'PRIMARY '' in /home/emperorhome/public_html/lib/Zend/Db/Statement/Pdo.php:234
Stack trace:
Product Prices index was rebuilt successfully
Catalog URL Rewrites index was rebuilt successfully
Category Products index was rebuilt successfully
Catalog Search Index index was rebuilt successfully
Stock Status index was rebuilt successfully
Tag Aggregation Data index was rebuilt successfully
我无法找到真正的问题所在。我不知道在哪里重复输入,因为我是 magento 的新手。任何帮助将不胜感激。
问候
【问题讨论】:
-
请重新格式化此错误消息以使其适合屏幕
标签: php mysql magento zend-framework pdo