2013-10-22 53 views
0

我試着做以下迄今修復與產品價格索引(正通過SSH運行)我的問題......Magento的 - 商品價格指數過程中的錯誤

  • 使用的Magento數據庫修復工具
  • 定價相關的修改,禁用擴展
  • MySQL的修復

不過,我得到以下錯誤:

Stack trace: 
#0 /home/apndev/public_html/lib/Zend/Db/Statement/Pdo.php(228): PDOStatement->execute(Array) 
#1 /home/apndev/public_html/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array) 
#2 /home/apndev/public_html/lib/Zend/Db/Statement.php(300): Varien_Db_Statement_Pdo_Mysql->_execute(Array) 
#3 /home/apndev/public_html/lib/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array) 
#4 /home/apndev/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('INSERT INTO `mg...', Array) 
#5 /home/apndev/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(419): Zend_Db_Adapter_Pdo_Abstract->query('INSERT INTO `mg...', Array) 
#6 /home/apndev/public_html/app/code/core/Mage/Catalog/Model/Resource/Product/Indexer/Price.php(455): Varien_Db_Adapter_Pdo_Mysql->query('INSERT INTO `mg...') 
#7 /home/apndev/public_html/app/code/core/Mage/Catalog/Model/Resource/Product/Indexer/Price.php(379): Mage_Catalog_Model_Resource_Product_Indexer_Price->_prepareTierPriceIndex() 
#8 /home/apndev/public_html/app/code/core/Mage/Index/Model/Indexer/Abstract.php(143): Mage_Catalog_Model_Resource_Product_Indexer_Price->reindexAll() 
#9 /home/apndev/public_html/app/code/core/Mage/Index/Model/Process.php(209): Mage_Index_Model_Indexer_Abstract->reindexAll() 
#10 /home/apndev/public_html/app/code/core/Mage/Index/Model/Process.php(255): Mage_Index_Model_Process->reindexAll() 
#11 /home/apndev/public_html/shell/indexer.php(158): Mage_Index_Model_Process->reindexEverything() 
#12 /home/apndev/public_html/shell/indexer.php(198): Mage_Shell_Compiler->run() 
#13 {main} 

Next exception 'Zend_Db_Statement_Exception' with message 'SQLSTATE[21S01]: Insert value list does not match column list: 1136 Column count doesn't match value count at row 1' in /home/apndev/public_html/lib/Zend/Db/Statement/Pdo.php:234 
Stack trace: 
#0 /home/apndev/public_html/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array) 
#1 /home/apndev/public_html/lib/Zend/Db/Statement.php(300): Varien_Db_Statement_Pdo_Mysql->_execute(Array) 
#2 /home/apndev/public_html/lib/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array) 
#3 /home/apndev/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('INSERT INTO `mg...', Array) 
#4 /home/apndev/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(419): Zend_Db_Adapter_Pdo_Abstract->query('INSERT INTO `mg...', Array) 
#5 /home/apndev/public_html/app/code/core/Mage/Catalog/Model/Resource/Product/Indexer/Price.php(455): Varien_Db_Adapter_Pdo_Mysql->query('INSERT INTO `mg...') 
#6 /home/apndev/public_html/app/code/core/Mage/Catalog/Model/Resource/Product/Indexer/Price.php(379): Mage_Catalog_Model_Resource_Product_Indexer_Price->_prepareTierPriceIndex() 
#7 /home/apndev/public_html/app/code/core/Mage/Index/Model/Indexer/Abstract.php(143): Mage_Catalog_Model_Resource_Product_Indexer_Price->reindexAll() 
#8 /home/apndev/public_html/app/code/core/Mage/Index/Model/Process.php(209): Mage_Index_Model_Indexer_Abstract->reindexAll() 
#9 /home/apndev/public_html/app/code/core/Mage/Index/Model/Process.php(255): Mage_Index_Model_Process->reindexAll() 
#10 /home/apndev/public_html/shell/indexer.php(158): Mage_Index_Model_Process->reindexEverything() 
#11 /home/apndev/public_html/shell/indexer.php(198): Mage_Shell_Compiler->run() 
#12 {main} 

我正在運行Magento 1.7,我之所以要做這件事的原因是我看到一些鎖定在前端的「特殊定價」。換句話說,價格只是因爲定價發生了變化而顯示爲「特價」。

謝謝!

+0

嘗試運行'產品平Data'指數第一後嘗試運行'產品價格'索引。 –

+0

你是否升級了舊版本的magento? – MTM

回答

0

1.try刪除VAR /鎖/ *

2.PHP -f殼/ indexer.php reindexall