2013-09-26 2 views
1

강한 문자를 내 상점에 추가하려고했지만 표시되지 않았습니다. 내가 할 수있는 모든 노력을 기울 였지만 모든 데이터를 다시 색인하려고 할 때 제품 가격에 오류가 발생했습니다. "다시 색인 생성 프로세스에 문제가 있습니다." 나는 var/cache와 var/locks를 삭제하려고 시도했다. (하지만 실제로는 비워 두는 것처럼 보이지 않는다.Magento - 제품 가격을 다시 색인 할 수 없음

Product Prices index process unknown error: exception 'PDOException' with message 'SQLSTATE[21S01]: Insert value list does not match column list: 1136 Column count doesn't match value count at row 1' in /chroot/home/xsmokeco/xsmoke.com/html/lib/Zend/Db/Statement/Pdo.php:228 Stack trace:

0 /chroot/home/xsmokeco/xsmoke.com/html/lib/Zend/Db/Statement/Pdo.php(228): PDOStatement->execute(Array)

1 /chroot/home/xsmokeco/xsmoke.com/html/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)

2 /chroot/home/xsmokeco/xsmoke.com/html/lib/Zend/Db/Statement.php(300): Varien_Db_Statement_Pdo_Mysql->_execute(Array)

3 /chroot/home/xsmokeco/xsmoke.com/html/lib/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)

4 /chroot/home/xsmokeco/xsmoke.com/html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('INSERT INTO `ca...', Array)

5 /chroot/home/xsmokeco/xsmoke.com/html/lib/Varien/Db/Adapter/Pdo/Mysql.php(419): Zend_Db_Adapter_Pdo_Abstract->query('INSERT INTO `ca...', Array)

6 /chroot/home/xsmokeco/xsmoke.com/html/app/code/local/Innoexts/StorePricing/Model/Mysql4/Downloadable/Indexer/Price.php(125): Varien_Db_Adapter_Pdo_Mysql->query('INSERT INTO `ca...')

7 /chroot/home/xsmokeco/xsmoke.com/html/app/code/core/Mage/Downloadable/Model/Resource/Indexer/Price.php(47): Innoexts_StorePricing_Model_Mysql4_Downloadable_Indexer_Price->_prepareFinalPriceData()

8 /chroot/home/xsmokeco/xsmoke.com/html/app/code/core/Mage/Catalog/Model/Resource/Product/Indexer/Price.php(385): Mage_Downloadable_Model_Resource_Indexer_Price->reindexAll()

9 /chroot/home/xsmokeco/xsmoke.com/html/app/code/core/Mage/Index/Model/Indexer/Abstract.php(143): Mage_Catalog_Model_Resource_Product_Indexer_Price->reindexAll()

10 /chroot/home/xsmokeco/xsmoke.com/html/app/code/core/Mage/Index/Model/Process.php(209): Mage_Index_Model_Indexer_Abstract->reindexAll()

11 /chroot/home/xsmokeco/xsmoke.com/html/app/code/core/Mage/Index/Model/Process.php(255): Mage_Index_Model_Process->reindexAll()

12 /chroot/home/xsmokeco/xsmoke.com/html/shell/indexer.php(158): Mage_Index_Model_Process->reindexEverything()

13 /chroot/home/xsmokeco/xsmoke.com/html/shell/indexer.php(198): Mage_Shell_Compiler->run()

14 {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 /chroot/home/xsmokeco/xsmoke.com/html/lib/Zend/Db/Statement/Pdo.php:234 Stack trace:

0 /chroot/home/xsmokeco/xsmoke.com/html/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)

1 /chroot/home/xsmokeco/xsmoke.com/html/lib/Zend/Db/Statement.php(300): Varien_Db_Statement_Pdo_Mysql->_execute(Array)

2 /chroot/home/xsmokeco/xsmoke.com/html/lib/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)

3 /chroot/home/xsmokeco/xsmoke.com/html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('INSERT INTO `ca...', Array)

4 /chroot/home/xsmokeco/xsmoke.com/html/lib/Varien/Db/Adapter/Pdo/Mysql.php(419): Zend_Db_Adapter_Pdo_Abstract->query('INSERT INTO `ca...', Array)

5 /chroot/home/xsmokeco/xsmoke.com/html/app/code/local/Innoexts/StorePricing/Model/Mysql4/Downloadable/Indexer/Price.php(125): Varien_Db_Adapter_Pdo_Mysql->query('INSERT INTO `ca...')

6 /chroot/home/xsmokeco/xsmoke.com/html/app/code/core/Mage/Downloadable/Model/Resource/Indexer/Price.php(47): Innoexts_StorePricing_Model_Mysql4_Downloadable_Indexer_Price->_prepareFinalPriceData()

7 /chroot/home/xsmokeco/xsmoke.com/html/app/code/core/Mage/Catalog/Model/Resource/Product/Indexer/Price.php(385): Mage_Downloadable_Model_Resource_Indexer_Price->reindexAll()

8 /chroot/home/xsmokeco/xsmoke.com/html/app/code/core/Mage/Index/Model/Indexer/Abstract.php(143): Mage_Catalog_Model_Resource_Product_Indexer_Price->reindexAll()

9 /chroot/home/xsmokeco/xsmoke.com/html/app/code/core/Mage/Index/Model/Process.php(209): Mage_Index_Model_Indexer_Abstract->reindexAll()

10 /chroot/home/xsmokeco/xsmoke.com/html/app/code/core/Mage/Index/Model/Process.php(255): Mage_Index_Model_Process->reindexAll()

11 /chroot/home/xsmokeco/xsmoke.com/html/shell/indexer.php(158): Mage_Index_Model_Process->reindexEverything()

12 /chroot/home/xsmokeco/xsmoke.com/html/shell/indexer.php(198): Mage_Shell_Compiler->run()

13 {main}

나는 데이터베이스에서 아무것도 변경하려면 좀 두렵다 때문에 내가 도움이 여기 물어보고 싶은게, 다음과 같이 내가 다시 색인에서 가져온 출력이다. Magento 1.7을 사용하고 있습니다. 결코 업데이트하지 않았습니다. 미리 감사드립니다.

+0

데이터베이스를 완전히 백업하는 첫 단계로 권장합니다. – Axel

+1

'Innoexts/StorePricing' 확장 프로그램을 비활성화/제거 해 보셨습니까? 스택 추적에서 Insert 쿼리 중 일부가 변경되었다는 것을 알았습니다. 원인이 될 수 있습니다. – Axel

답변

1

확장 기능에서 오는 문제가 있습니다. Axel 메서드를 시도해보십시오. innotext 확장명을 백업하고 제거한 다음 다시 색인화하십시오.

0

전통적인 Magento CE (1.4)를 Magento EE (1.11)로 업그레이드했습니다. 그러나 Magento가이를 방지 할 수있는 가격을 다시 색인 할 때 중요한 문제가 있음을 발견했습니다.

Magento 게시판에서이 게시물을 읽는 중 일부 항목이 더 이상 존재하지 않는 제품과 관련된 catalog_product_entity_tier_price 테이블의 오류와 관련되어 있음을 발견했습니다. 이것은 실제 오류이고 제품 가격을 인덱싱 할 때, 마 젠토는이 메시지를 던질 것입니다 :

There was a problem with reindexing process. 

그것이

그래서 당신은이 문제를 해결하려면 해결 방법을. 더 이상 존재하지 않는 제품과 관련된 catalog_product_entity_tier_price 테이블의 모든 항목을 삭제해야합니다. 수동으로 할 수도 있고 내가 만든 다음 스크립트를 사용할 수도 있습니다. 정말 사용하기 쉽습니다.

Download the script from here 

해당 파일에서 찾을 수 있습니다 :

The script: clean_tier_prices.php 
A library to connect in a really easy way to the db 

이 단계를 수행

Make a copy of your database (just in case) 
Uncompress the zip file in your magento base directory 
Edit the lib/db.php file and put there your connection settings (db user, user pass and db) 
Open the browser and go to http://yourmagentopath.com/clean_tier_prices.php 
You’ll see wich references have been deleted from the catalog_product_entity_tier_price table 
Try reindexing again in your Magento backoffice 

중요 참고 : 당신은 당신의 자신의 위험에이 스크립트를 사용합니다. 데이터베이스를 적용하기 전에 사본을 만드십시오. 이 문제를 개선한다면 저와 다른 사람들과 공유하십시오! download from here

관련 문제