mysql - Magento 1.7 - 无法初始化产品价格的索引器进程

标签 mysql magento magento-1.7

最近从 Magento Professional 迁移到 Magento Community(版本 1.7.0.2)后,我无法在“产品价格”索引上启动 Magento 索引器。我收到以下错误:

“无法初始化索引器进程。”

检查 var/log/exception.log 后,每当我尝试索引时,我都会看到以下堆栈跟踪:

2013-05-09T20:50:42+00:00 DEBUG (7): Exception message: SQLSTATE[21S01]: Insert value list does not match column list: 1136 Column count doesn't match value count at row 1
Trace: #0 /www/sites/<my site>/files/html/shop/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 /www/sites/<my site>/files/html/shop/lib/Zend/Db/Statement.php(300): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /www/sites/<my site>/files/html/shop/lib/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#3 /www/sites/<my site>/files/html/shop/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('INSERT INTO `ca...', Array)
#4 /www/sites/<my site>/files/html/shop/lib/Varien/Db/Adapter/Pdo/Mysql.php(419): Zend_Db_Adapter_Pdo_Abstract->query('INSERT INTO `ca...', Array)
#5 /www/sites/<my site>/files/html/shop/app/code/core/Enterprise/GiftCard/Model/Resource/Indexer/Price.php(187): Varien_Db_Adapter_Pdo_Mysql->query('INSERT INTO `ca...')
#6 /www/sites/<my site>/files/html/shop/app/code/core/Mage/Catalog/Model/Resource/Product/Indexer/Price/Default.php(120): Enterprise_GiftCard_Model_Resource_Indexer_Price->_prepareFinalPriceData()
#7 /www/sites/<my site>/files/html/shop/app/code/core/Mage/Catalog/Model/Resource/Product/Indexer/Price.php(385): Mage_Catalog_Model_Resource_Product_Indexer_Price_Default->reindexAll()
#8 /www/sites/<my site>/files/html/shop/app/code/core/Mage/Index/Model/Indexer/Abstract.php(143): Mage_Catalog_Model_Resource_Product_Indexer_Price->reindexAll()
#9 /www/sites/<my site>/files/html/shop/app/code/core/Mage/Index/Model/Process.php(209): Mage_Index_Model_Indexer_Abstract->reindexAll()
#10 /www/sites/<my site>/files/html/shop/app/code/core/Mage/Index/Model/Process.php(255): Mage_Index_Model_Process->reindexAll()
#11 /www/sites/<my site>/files/html/shop/app/code/core/Mage/Index/controllers/Adminhtml/ProcessController.php(178): Mage_Index_Model_Process->reindexEverything()
#12 /www/sites/<my site>/files/html/shop/app/code/core/Mage/Core/Controller/Varien/Action.php(419): Mage_Index_Adminhtml_ProcessController->massReindexAction()
#13 /www/sites/<my site>/files/html/shop/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('massReindex')
#14 /www/sites/<my site>/files/html/shop/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#15 /www/sites/<my site>/files/html/shop/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#16 /www/sites/<my site>/files/html/shop/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#17 /www/sites/<my site>/files/html/shop/index.php(87): Mage::run('', 'store')
#18 {main}

这显然是一个表格问题,但是有什么办法可以具体找出可能缺少的内容吗?

索引器适用于所有其他索引。这是唯一遇到困难的一个,在 Magento 管理中,它显示为“REINDEX REQUIRED”。

编辑:我尝试使用 Magento 数据库修复实用程序,源数据库是一个新的 Magento 社区数据库。每次我这样做,它都说不需要进行任何更改。

最佳答案

这是通过禁用我所有的第 3 方扩展来解决的,除了标记为 Mage_* 的扩展

关于mysql - Magento 1.7 - 无法初始化产品价格的索引器进程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16470966/

相关文章:

php - 使用PHP返回mysql存储过程的输出参数

php - 未捕获的异常 'PDOException' 消息 SQLSTATE[42000] : Syntax error or access violation: 1064

MySQL:用最接近的新表中的值替换列的值

mysql - 在 MySQL 中查找换行符和回车符 (\r\n)

php - $_product 不包含所有需要的数据 (minmal_price)

php - 将自定义表单元素添加到 Adminhtml 表单

mysql - 禁用magento舍入

magento 获取 Base Url 、 Skin Url 、 Media Url 、 Js Url 、 Store Url 和 Current Url 以确保安全

php - 使用常规登录密码保护 Magento Storeview

玛根托 : Out of stock products showing last in the category page