不能在magento中复制产品

时间:2014-08-20 14:02:56

标签: php magento zend-framework e-commerce

我的想法在哪里搜索错误正在逐渐减少。

如果我尝试从管理面板复制产品,我会收到此错误:

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'attribute_id' in 'where clause'

在exception.log中我找到:

Next exception 'Zend_Db_Statement_Exception' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'attribute_id' in 'where clause'' in /data/webs/128/12312/public_html/lib/Zend/Db/Statement/Pdo.php:234
Stack trace:
#0 /data/webs/128/12312/public_html/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 /data/webs/128/12312/public_html/lib/Zend/Db/Statement.php(300): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /data/webs/128/12312/public_html/lib/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#3 /data/webs/128/12312/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('DELETE FROM `ca...', Array)
#4 /data/webs/128/12312/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(419): Zend_Db_Adapter_Pdo_Abstract->query('DELETE FROM `ca...', Array)
#5 /data/webs/128/12312/public_html/lib/Zend/Db/Adapter/Abstract.php(661): Varien_Db_Adapter_Pdo_Mysql->query('DELETE FROM `ca...')
#6 /data/webs/128/12312/public_html/app/code/core/Mage/Catalog/Model/Resource/Abstract.php(236): Zend_Db_Adapter_Abstract->delete('catalog_product...', Array)
#7 /data/webs/128/12312/public_html/app/code/core/Mage/Catalog/Model/Resource/Product/Action.php(78): Mage_Catalog_Model_Resource_Abstract->_saveAttributeValue(Object(Varien_Object), Object(Mage_Catalog_Model_Resource_Eav_Attribute), '0000000003636')
#8 /data/webs/128/12312/public_html/app/code/core/Mage/Catalog/Model/Product/Action.php(72): Mage_Catalog_Model_Resource_Product_Action->updateAttributes(Array, Array, 0)
#9 /data/webs/128/12312/public_html/app/code/community/MDN/BarcodeLabel/Helper/Generation.php(36): Mage_Catalog_Model_Product_Action->updateAttributes(Array, Array, 0)
#10 /data/webs/128/12312/public_html/app/code/community/MDN/BarcodeLabel/Model/Observer.php(50): MDN_BarcodeLabel_Helper_Generation->storeBarcode('363')
#11 /data/webs/128/12312/public_html/app/code/core/Mage/Core/Model/App.php(1338): MDN_BarcodeLabel_Model_Observer->model_save_after(Object(Varien_Event_Observer))
#12 /data/webs/128/12312/public_html/app/code/core/Mage/Core/Model/App.php(1317): Mage_Core_Model_App->_callObserverMethod(Object(MDN_BarcodeLabel_Model_Observer), 'model_save_afte...', Object(Varien_Event_Observer))
#13 /data/webs/128/12312/public_html/app/Mage.php(447): Mage_Core_Model_App->dispatchEvent('model_save_afte...', Array)
#14 /data/webs/128/12312/public_html/app/code/core/Mage/Core/Model/Abstract.php(465): Mage::dispatchEvent('model_save_afte...', Array)
#15 /data/webs/128/12312/public_html/app/code/core/Mage/Catalog/Model/Product.php(548): Mage_Core_Model_Abstract->_afterSave()
#16 /data/webs/128/12312/public_html/app/code/community/MDN/AdvancedStock/Model/Catalog/Product.php(23): Mage_Catalog_Model_Product->_afterSave()
#17 /data/webs/128/12312/public_html/app/code/core/Mage/Core/Model/Abstract.php(319): MDN_AdvancedStock_Model_Catalog_Product->_afterSave()
#18 /data/webs/128/12312/public_html/app/code/core/Mage/Catalog/Model/Product.php(1142): Mage_Core_Model_Abstract->save()
#19 /data/webs/128/12312/public_html/app/code/core/Mage/Adminhtml/controllers/Catalog/ProductController.php(767): Mage_Catalog_Model_Product->duplicate()
#20 /data/webs/128/12312/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(419): Mage_Adminhtml_Catalog_ProductController->duplicateAction()
#21 /data/webs/128/12312/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('duplicate')
#22 /data/webs/128/12312/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#23 /data/webs/128/12312/public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#24 /data/webs/128/12312/public_html/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#25 /data/webs/128/12312/public_html/index.php(89): Mage::run('', 'store')
#26 {main}

我检查了数据库,字段attribute_id就在那里,如果我试图从代码中删除关联,它说没有字段shop_id等等。它们都存在。

似乎有一些关于zend框架的东西,因为就我所知,tablename和属性似乎是正确的。

任何想法如何发生这种情况?

0 个答案:

没有答案