During magento upgrade, when I tried to reindex all:
php shell/indexer.php --reindexall
I got following error:
PHP Fatal error: Call to a member function getProcessesCollection() on a non-object in /shell/indexer.php on line 58
During magento upgrade, when I tried to reindex all:
php shell/indexer.php --reindexall
I got following error:
PHP Fatal error: Call to a member function getProcessesCollection() on a non-object in /shell/indexer.php on line 58
Maybe this can be of help to anyone finding this ticket a year after.
I had the same situation at hand, but after upgrading it is advised to clear the cache before running any function at all.
Before running php shell/indexer.php --reindexall
i got the same result;
PHP Fatal error: Call to a member function getProcessesCollection() on boolean etc.
But after running rm -rf downloader/.cache/ var/cache/
The php shell/indexer.php --reindexall
command started working again.
Most probably this class file is missing: Mage_Index_Model_Indexer (in app/code/core/Mage/Index/Model/Indexer.php).
On line 58 of shell/indexer.php:
$collection = $this->_getIndexer()->getProcessesCollection();
_getIndexer() returns the model as declared in the Index module configuration:
<config>
<modules>
<Mage_Index>
<version>1.6.0.0</version>
</Mage_Index>
</modules>
<global>
...
<index>
<index_model>index/indexer</index_model>
</index>
...