0

The issue:
When I try and reindex my local site, I get the error that Magento "cannot initialize the indexer process."

Other information:
- Upon trying to manually reindex the files through the terminal, I was made aware that pdo_mysql has not been installed.
- It is the "Product Flat Data" that needs to be reindexed.
- The problem is occurring on both the local and live copies of the site.
- This problem does not occur on other local copies of sites I work on.
- I do not have a "locks" folder in my /var folder.

Also, if it is important I have Magento 1.9.2.1 installed, am running through PhpStorm, am on a Mac, I run my local sites through MAMP.

Please help!

  • Entire Magento will fall if pdo_mysql was not installed. What commands did you run when you tried indexing from terminal. Also, check permissions on var folder. – Prateek Oct 26 '15 at 15:26
  • Magento automatically creates the var/locks/ folder, unless the ownership/permissions on var/ are not allowing it. – Fiasco Labs Oct 26 '15 at 15:46
1

Try doing it programmatically. This way:

$indexCollection = Mage::getModel('index/process')->getCollection();
    foreach ($indexCollection as $index) {
      $index->reindexAll();
  }

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.