Try the Demo

Magento Forum

   
Cannot initialize the indexer process. 
 
stv315
Jr. Member
 
Total Posts:  6
Joined:  2012-11-21
 

i am getting this error while reindexing the Product Flat Data

Cannot initialize the indexer process.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Monty22
Guru
 
Avatar
Total Posts:  672
Joined:  2013-01-01
 

Hi,

This happens to our Magento installation often because we are constantly importing products and deleting them from PHPMyAdmin.

The following fixes this error every time.

First, search for “catalog_product_flat” there should only be 1 matching table. For us, its catalog_product_flat_1

Then run under SQL:

SET FOREIGN_KEY_CHECKS=0;

DROP TABLE catalog_product_flat_1

Then in SSH, run:

php path/to/shell/indexer.php --reindex catalog_product_flat

Hope this helps someone!

Thanks

Monty
iLoveMage

Get 25% discount on all our magento extensions.

 Signature 

Get 15% discount on all our extensions Use code MON15 | Risk-free purchase with our 14 days Money Back Guarantee policy!

 
Magento Community Magento Community
Magento Community
Magento Community
 
GoMageTeam
Sr. Member
 
Avatar
Total Posts:  154
Joined:  2013-01-13
Warsaw, Poland
 

Hello,

We think that the advice that was given by Monty, is not a good idea, it can cause another error and it will be difficult to fix it.
The idea is the same, but the table should be cleared. You should clear all Flat Tables; there can be several of them in phpMyAdmin:

SET FOREIGN_KEY_CHECKS=0;
TRUNCATE TABLE catalog_product_flat_1;
TRUNCATE TABLE catalog_product_flat_2;
...
SET FOREIGN_KEY_CHECKS=0;
But before this action you should write catalog_product_flat in the filter in the left in phpMyAdmin and it will show you all the tables.

 Signature 

Bronze Partner of Magento
• A high-leveled development company – Providing easy, comfortable and useful Magento extensions
• The supporters of qualified and fast service. Find out more here: http://www.gomage.com

 
Magento Community Magento Community
Magento Community
Magento Community
 
NewYoka1
Jr. Member
 
Total Posts:  2
Joined:  2010-01-20
 

Worked like a charm , thank you

 Signature 

Web Development
Wordpress Development

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top