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!

2
  • 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
    Commented Oct 26, 2015 at 15:26
  • Magento automatically creates the var/locks/ folder, unless the ownership/permissions on var/ are not allowing it. Commented Oct 26, 2015 at 15:46

1 Answer 1

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 and acknowledge you have read our privacy policy.

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