长时间等待目录规则应用后,出现此错误:
消息为“ SQLSTATE [23000]”的下一个异常“ Zend_Db_Statement_Exception”:违反完整性约束:1062键“ PRIMARY”的条目“ 44657-0-2”重复,查询为:INSERT INTO
catalog_product_index_price_tmp
SELECTcatalog_product_index_price_final_tmp
。entity_id
,catalog_product_index_price_final_tmp
。customer_group_id
,catalog_product_index_price_final_tmp
。website_id
,catalog_product_index_price_final_tmp
。tax_class_id
,catalog_product_index_price_final_tmp
。orig_price
ASprice
,catalog_product_index_price_final_tmp
。price
ASfinal_price
,catalog_product_index_price_final_tmp
。min_price
,catalog_product_index_price_final_tmp
。max_price
,catalog_product_index_price_final_tmp
。tier_price
,catalog_product_index_price_final_tmp
。group_price
来自catalog_product_index_price_final_tmp
'
我尝试重新建立索引,重新启动MySQL并保持不变,在等待40分钟以应用一条规则之后,出现了这样的错误。
我还在本地尝试使用相同的数据库和代码来应用规则,并且它们运行良好。
我正在运行Magento 1.14,这是在从Magento 1.11升级后发生的,但是仅在一台服务器中发生,而不是在测试服务器中,也没有发生在具有相同数据库和代码的本地服务器中。
关于我可以做什么以应用规则有什么建议吗?我需要在服务器上检查任何配置?
提前致谢。
在管理员上:
System > Configuration > Index Management > Index Options
将所有索引更改为“计划时更新”,“全部重新索引”,应用目录规则。
那解决了我的问题。
希望对您有所帮助。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句