在使用MAGMI將我所有的產品導入到我的Magento站點後,catalog_category_product
索引在從命令行運行indexer.php
時出現以下錯誤。 (php -f indexer.php -- --reindex catalog_category_product).
Magento Reindex對「類別產品」的錯誤
Category Products index process unknown error:
exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1103 Incorrect table name ''' in /srv/www/magento1-8/lib/Zend/Db/Statement/Pdo.php:228
Stack trace:
#0 /srv/www/magento1-8/lib/Zend/Db/Statement/Pdo.php(228): PDOStatement->execute(Array)
#1 /srv/www/magento1-8/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#2 /srv/www/magento1-8/app/code/core/Zend/Db/Statement.php(291): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#3 /srv/www/magento1-8/lib/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#4 /srv/www/magento1-8/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('DELETE FROM ``', Array)
#5 /srv/www/magento1-8/lib/Varien/Db/Adapter/Pdo/Mysql.php(428): Zend_Db_Adapter_Pdo_Abstract->query('DELETE FROM ``', Array)
#6 /srv/www/magento1-8/lib/Zend/Db/Adapter/Abstract.php(661): Varien_Db_Adapter_Pdo_Mysql->query('DELETE FROM ``')
#7 /srv/www/magento1-8/app/code/core/Mage/Catalog/Model/Resource/Category/Indexer/Product.php(941): Zend_Db_Adapter_Abstract->delete(NULL)
#8 /srv/www/magento1-8/app/code/core/Mage/Index/Model/Indexer/Abstract.php(143): Mage_Catalog_Model_Resource_Category_Indexer_Product->reindexAll()
#9 /srv/www/magento1-8/app/code/core/Mage/Index/Model/Process.php(210): Mage_Index_Model_Indexer_Abstract->reindexAll()
#10 /srv/www/magento1-8/app/code/core/Mage/Index/Model/Process.php(258): Mage_Index_Model_Process->reindexAll()
#11 /srv/www/magento1-8/shell/indexer.php(166): Mage_Index_Model_Process->reindexEverything()
#12 /srv/www/magento1-8/shell/indexer.php(212): Mage_Shell_Compiler->run()
#13 {main}
Next exception 'Zend_Db_Statement_Exception' with message 'SQLSTATE[42000]: Syntax error or access violation: 1103 Incorrect table name ''' in /srv/www/magento1-8/lib/Zend/Db/Statement/Pdo.php:234
Stack trace:
#0 /srv/www/magento1-8/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 /srv/www/magento1-8/app/code/core/Zend/Db/Statement.php(291): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /srv/www/magento1-8/lib/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#3 /srv/www/magento1-8/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('DELETE FROM ``', Array)
#4 /srv/www/magento1-8/lib/Varien/Db/Adapter/Pdo/Mysql.php(428): Zend_Db_Adapter_Pdo_Abstract->query('DELETE FROM ``', Array)
#5 /srv/www/magento1-8/lib/Zend/Db/Adapter/Abstract.php(661): Varien_Db_Adapter_Pdo_Mysql->query('DELETE FROM ``')
#6 /srv/www/magento1-8/app/code/core/Mage/Catalog/Model/Resource/Category/Indexer/Product.php(941): Zend_Db_Adapter_Abstract->delete(NULL)
#7 /srv/www/magento1-8/app/code/core/Mage/Index/Model/Indexer/Abstract.php(143): Mage_Catalog_Model_Resource_Category_Indexer_Product->reindexAll()
#8 /srv/www/magento1-8/app/code/core/Mage/Index/Model/Process.php(210): Mage_Index_Model_Indexer_Abstract->reindexAll()
#9 /srv/www/magento1-8/app/code/core/Mage/Index/Model/Process.php(258): Mage_Index_Model_Process->reindexAll()
#10 /srv/www/magento1-8/shell/indexer.php(166): Mage_Index_Model_Process->reindexEverything()
#11 /srv/www/magento1-8/shell/indexer.php(212): Mage_Shell_Compiler->run()
#12 {main}
插入新的數據到我的網站之前,我曾用MAGMI Clear Catalog v1.0.3
公用程序來清除目錄,刪除未使用的attribute_sets並增加了新的屬性和attribute_sets。
有關如何解決此問題的任何建議將不勝感激。
感謝
這讓我在正確的方向。我基本上不得不手動清除上面提到的表,然後從基礎magento安裝中導入表。現在索引器工作。十分感謝。 – Light4Ever