【问题标题】:PDO Exception, Duplicate Entry . While I try to re-index my data in magentoPDO 异常,重复条目。当我尝试在 magento 中重新索引我的数据时
【发布时间】: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


【解决方案1】:

它必须在product's 163 attribute 137(attribute id.) 中出错。只需取消设置该产品的该属性(137 属性 id),然后保存该产品(产品 id 163)。在该索引产品属性之后。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-04-26
    • 1970-01-01
    • 2016-07-08
    • 1970-01-01
    • 2021-10-09
    • 2015-04-26
    • 1970-01-01
    • 2022-06-14
    相关资源
    最近更新 更多