我们正在运行Magento商店超过3年,这个错误突然发生在今天。
此错误发生在Sales-> Order
中在添加运输信息(标题和跟踪号)并选中“发货的电子邮件副本”后,我尝试点击“提交货件”按钮。
页面重新加载并显示以下内容。
无法保存货件[RED]
已创建货件[绿色]
我没有任何线索,为什么突然显示。我无法为Magento的所有订单保存货件。请帮我解决这个问题。
EXCEPTION LOG
下一个异常'Zend_Db_Statement_Exception',消息'SQLSTATE [23000]:完整性约束违规:1062 / var / www / vhosts / XXXXXXXXXXXXx / httpdocs / lib / Zend / Db / Statement /中的密钥2'重复条目'100029587' Pdo.php:234 堆栈跟踪:
0 /var/www/vhosts/XXXXXXXXXXXXx/httpdocs/lib/Varien/Db/Statement/Pdo/Mysql.php(110):
Zend_Db_Statement_Pdo-> _execute(阵列)1 /var/www/vhosts/XXXXXXXXXXXXXx/httpdocs/lib/Zend/Db/Statement.php(300):
Varien_Db_Statement_Pdo_Mysql-> _execute(阵列) - #2 /var/www/vhosts/XXXXXXXXXXXXXx/httpdocs/lib/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->执行(阵列) - #3 /var/www/vhosts/XXXXXXXXXXXXxx/httpdocs/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract-> query('INSERT INTOsa...', Array) -#4 /var/www/vhosts/XXXXXXXXXXXXXx/httpdocs/lib/Varien/Db/Adapter/Pdo/Mysql.php(394): Zend_Db_Adapter_Pdo_Abstract->query('INSERT INTO
sa ...',Array) - #5 /var/www/vhosts/XXXXXXXXXXXXXx/httpdocs/lib/Zend/Db/Adapter/Abstract.php(574): Varien_Db_Adapter_Pdo_Mysql-> query('INSERT INTO`sa ...',Array) - #6 /var/www/vhosts/XXXXXXXXXXXXXx/httpdocs/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(448): Zend_Db_Adapter_Abstract-> insert('sales_flat_ship ...',Array) - #7 /var/www/vhosts/XXXXXXXXXXXXXx/httpdocs/app/code/core/Mage/Sales/Model/Resource/Order/Abstract.php(425): Mage_Core_Model_Resource_Db_Abstract->保存(对象(Mage_Sales_Model_Order_Shipment)) - #8 /var/www/vhosts/XXXXXXXXXXXXXx/httpdocs/app/code/core/Mage/Core/Model/Abstract.php(318): Mage_Sales_Model_Resource_Order_Abstract->保存(对象(Mage_Sales_Model_Order_Shipment)) - #9 /var/www/vhosts/XXXXXXXXXXXXXx/httpdocs/app/code/core/Mage/Core/Model/Resource/Transaction.php(151): Mage_Core_Model_Abstract->保存() - #10 /var/www/vhosts/XXXXXXXXXXXXXx/httpdocs/app/code/core/Mage/Adminhtml/controllers/Sales/Order/ShipmentController.php(120): Mage_Core_Model_Resource_Transaction->保存() - #11 /var/www/vhosts/XXXXXXXXXXXXXx/httpdocs/app/code/core/Mage/Adminhtml/controllers/Sales/Order/ShipmentController.php(225): Mage_Adminhtml_Sales_Order_ShipmentController-> _saveShipment(对象(Mage_Sales_Model_Order_Shipment)) - #12 /var/www/vhosts/XXXXXXXXXXXXXx/httpdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(420): Mage_Adminhtml_Sales_Order_ShipmentController-> saveAction() - #13 /var/www/vhosts/XXXXXXXXXXXXXx/httpdocs/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->调度( '保存') - #14 /var/www/vhosts/XXXXXXXXXXXXXx/httpdocs/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->匹配(对象(Mage_Core_Controller_Request_Http)) - #15 /var/www/vhosts/XXXXXXXXXXXXxx/httpdocs/app/code/core/Mage/Core/Model/App.php(349): Mage_Core_Controller_Varien_Front->调度() - #16 /var/www/vhosts/XXXXXXXXXXXXXx/httpdocs/app/Mage.php(640):Mage_Core_Model_App-> run(Array) - #17 /var/www/vhosts/XXXXXXXXXXXXXx/httpdocs/index.php(80):Mage :: run('','website') - #18 {main}