Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Magento 1.9.1全部重新索引:PHP致命错误_Magento_Upgrade_Reindex - Fatal编程技术网

Magento 1.9.1全部重新索引:PHP致命错误

Magento 1.9.1全部重新索引:PHP致命错误,magento,upgrade,reindex,Magento,Upgrade,Reindex,在magento升级期间,当我尝试重新索引所有: php shell/indexer.php --reindexall 我得到了以下错误: PHP致命错误:调用成员函数GetProcessCollection() 在第58行的/shell/indexer.php中的非对象上 很可能这个类文件丢失了:Mage_Index_Model_Indexer(在app/code/core/Mage/Index/Model/Indexer.php中) 在shell/indexer.php的第58行: $co

在magento升级期间,当我尝试重新索引所有:

php shell/indexer.php --reindexall
我得到了以下错误:

PHP致命错误:调用成员函数GetProcessCollection() 在第58行的/shell/indexer.php中的非对象上


很可能这个类文件丢失了:Mage_Index_Model_Indexer(在app/code/core/Mage/Index/Model/Indexer.php中)

在shell/indexer.php的第58行:

$collection = $this->_getIndexer()->getProcessesCollection();
_getIndexer()返回索引模块配置中声明的模型:

<config>
    <modules>
        <Mage_Index>
            <version>1.6.0.0</version>
        </Mage_Index>
    </modules>
    <global>
        ...        
        <index>
            <index_model>index/indexer</index_model>
        </index>
        ...

1.6.0.0
...        
索引/索引器
...

也许这对一年后找到这张票的任何人都有帮助

我手头也有同样的情况,但升级后建议在运行任何函数之前清除缓存

在运行
php shell/indexer.php--reindexall
之前,我得到了相同的结果

PHP致命错误:调用成员函数GetProcessCollection() 关于布尔等

但是在运行
rm-rf downloader/.cache/var/cache/


php shell/indexer.php--reindexall命令又开始工作了。

你解决了这个问题吗?不是真的,我必须重新启动安装。我也有同样的问题。
global/index/index\u model
参数被传递到
Mage\u Core\u model\u工厂中的
$this->\u config->getNode()
,但该调用返回false。config.xml存在并包含上面的文本。非常混乱!代码可以在我的本地开发设备上运行,但不能在实时服务器上运行。
rm-rf var/cache/*
帮助。谢谢