我刚刚重新索引了运行 v1.6 的 Magenot 安装上的数据,现在我收到一条消息说明
There was a problem with reindexing process.
for Category Products 现在没有任何产品显示在任何类别中。我需要尽快解决这个问题,因为它发生在一个实时网站上。
有没有人知道可能导致此问题的原因以及解决方法是什么?
我曾尝试删除 var/report 和 var/locks 上的内容,但没有成功。似乎有一些修复,但不是专门针对类别产品
提前致谢
这可以是任何。
There was a problem with reindexing process.
当 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 错误消息将包含在您的错误消息中。这应该有助于指出导致索引失败的确切问题。