Magento-重新编制索引过程出现问题-目录产品 [英] Magento - There was a issue with reindexing process - Catalog Products

查看:69
本文介绍了Magento-重新编制索引过程出现问题-目录产品的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在运行v1.6的Magenot安装中为数据重新编制了索引,现在我收到一条消息,指出

I have just reindexed the data on my Magenot installation running v1.6 and i'm now getting a message stating

There was a problem with reindexing process.

类别产品,现在任何类别中都没有产品显示.我需要尽快修复此问题,因为它是在实时网站上发生的.

for Category Products and now no products are displayed in any any of the categories. I need to fix this asap as its happened on a live site.

有人知道这可能是什么原因以及解决方法是什么吗?

Does anyone have any idea what might be causing this and what the fix is?

我尝试删除var/report和var/locks上的内容,但没有任何乐趣.似乎有一些修复,但不是专门针对类别产品的

I have tried deleting the contents on var/report and var/locks but no joy. There seems to be a few fixes but not specifically for Category Products

预先感谢

推荐答案

这可能是任何内容.

重新编制索引的过程出现问题.

There was a problem with reindexing process.

reindexProcessAction操作中的PHP异常冒泡到表面时,会发生

错误.您可以在这里看到该代码.

error occurs when a PHP Exception bubbles up to the surface from the reindexProcessAction action. You can see that code here.

#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错误.更改上面的内容为

The quickest way to the bottom of this error is to temporarily change the above line so that it prints out the exception message. Magento surpress the default exception message — probably in an effort to prevent end-users from seeing an "ugly" PHP error. Change the above to it reads

Mage::helper('index')->__('There was a problem with reindexing process. ' . $e->getMessage())

然后重新索引. PHP错误消息(应指向问题代码)将包含在您的错误消息中.这应该有助于指出导致索引失败的确切问题.

And then reindex again. The PHP error message, which should point to the problem code, will be included in your error message. This should help point to the exact problem that's causing your index to fail.

这篇关于Magento-重新编制索引过程出现问题-目录产品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆