Magento - 未定义索引器模型

时间:2014-10-13 10:19:37

标签: search magento-1.8 indexer

安装 Activo Advanced Search Extension for Magento 后,我们收到此错误:

未定义索引器模型。

跟踪:

#0 httpdocs/app/code/core/Mage/Index/Model/Process.php(309): Mage::throwException('Indexer model i...')

#1 httpdocs/app/code/core/Mage/Index/Block/Adminhtml/Notifications.php(41): Mage_Index_Model_Process->getIndexer()

#2 httpdocs/app/design/adminhtml/default/default/template/index/notifications.phtml(27): Mage_Index_Block_Adminhtml_Notifications->getProcessesForReindex()

#3 httpdocs/app/code/core/Mage/Core/Block/Template.php(241): include('/var/www/vhosts...')

#4 httpdocs/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('adminhtml/defau...')

#5 httpdocs/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()

#6 httpdocs/app/code/core/Mage/Adminhtml/Block/Template.php(81): Mage_Core_Block_Template->_toHtml()

#7 httpdocs/app/code/core/Mage/Index/Block/Adminhtml/Notifications.php(67): Mage_Adminhtml_Block_Template->_toHtml()

#8 httpdocs/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Index_Block_Adminhtml_Notifications->_toHtml()

#9 httpdocs/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()

#10 httpdocs/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Text_List->_toHtml()

#11 httpdocs/app/code/core/Mage/Core/Block/Abstract.php(637): Mage_Core_Block_Abstract->toHtml()

#12 httpdocs/app/code/core/Mage/Core/Block/Abstract.php(581): Mage_Core_Block_Abstract->_getChildHtml('notifications', true)

#13 httpdocs/app/design/adminhtml/default/default/template/page.phtml(55): Mage_Core_Block_Abstract->getChildHtml('notifications')

#14 httpdocs/app/code/core/Mage/Core/Block/Template.php(241): include('/var/www/vhosts...')

#15 httpdocs/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('adminhtml/defau...')

#16 httpdocs/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()

#17 httpdocs/app/code/core/Mage/Adminhtml/Block/Template.php(81): Mage_Core_Block_Template->_toHtml()

#18 httpdocs/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Adminhtml_Block_Template->_toHtml()

#19 httpdocs/app/code/core/Mage/Core/Model/Layout.php(555): Mage_Core_Block_Abstract->toHtml()

#20 httpdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(390): Mage_Core_Model_Layout->getOutput()

#21 httpdocs/app/code/core/Mage/Adminhtml/controllers/DashboardController.php(43): Mage_Core_Controller_Varien_Action->renderLayout()

#22 httpdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Adminhtml_DashboardController->indexAction()

#23 httpdocs/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('index')

#24 httpdocs/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))

#25 httpdocs/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()

#26 httpdocs/app/Mage.php(684): Mage_Core_Model_App->run(Array)

#27 httpdocs/index.php(87): Mage::run('', 'store')

#28 {main}

Error log record number: 597672822834 

我尝试过禁用APC,Memcached和Varnish,但这并没有什么不同。还检查了权限,但所有内容似乎都正确安装。

还尝试通过Magento Connect进行安装并完成手动安装,但仍然没有乐趣。

对此有什么想法吗? 干杯 史蒂夫

1 个答案:

答案 0 :(得分:1)

打开页面:

包括\ SRC \ Mage_Index_Model_Process.php

在函数“public function getIndexer()”中,找到以下行:

Mage::throwException(Mage::helper('index')->__('Indexer model is not defined.')); 

添加此调试行,就在行之前:

echo $code;exit;

并尝试再次访问索引页面。这应该向您显示产生问题的模块或原因。请特别注意您最近安装的扩展程序(Activo Advanced Search Extension for Magento)