我刚刚重新索引了运行 v1.6 的 Magenot 安装上的数据,现在我收到一条消息,指出
There was a problem with reindexing process.
for 类别产品现在任何类别中都没有显示任何产品。我需要尽快修复这个问题,因为它发生在实时网站上。
有谁知道可能导致此问题的原因以及解决方法是什么?
我尝试删除 var/report 和 var/locks 上的内容,但没有任何乐趣。似乎有一些修复,但不是专门针对类别产品的
提前致谢
这可能是anything. The
重新索引过程出现问题。
当 PHP 异常从reindexProcessAction
行动。您可以在此处查看该代码。
#File: app/code/core/Mage/Index/controllers/Adminhtml/ProcessController.php
public function reindexProcessAction()
{
$process = $this->_initProcess();
if ($process) {
try {
Varien_Profiler::start('__INDEX_PROCESS_REINDEX_ALL__');
$process->reindexEverything();
Varien_Profiler::stop('__INDEX_PROCESS_REINDEX_ALL__');
$this->_getSession()->addSuccess(
Mage::helper('index')->__('%s index was rebuilt.', $process->getIndexer()->getName())
);
} catch (Mage_Core_Exception $e) {
$this->_getSession()->addError($e->getMessage());
} catch (Exception $e) {
$this->_getSession()->addException($e,
Mage::helper('index')->__('There was a problem with reindexing process.')
);
}
} else {
$this->_getSession()->addError(
Mage::helper('index')->__('Cannot initialize the indexer process.')
);
}
$this->_redirect('*/*/list');
}
具体来说,这条线
Mage::helper('index')->__('There was a problem with reindexing process.')
解决此错误的最快方法是暂时地更改上面的行,以便打印出异常消息。 Magento 抑制了默认的异常消息——可能是为了防止最终用户看到“丑陋的”PHP 错误。将上面的内容更改为它的内容
Mage::helper('index')->__('There was a problem with reindexing process. ' . $e->getMessage())
然后再次重新索引。 PHP 错误消息(应指向问题代码)将包含在您的错误消息中。这应该有助于指出导致索引失败的确切问题。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)