且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Magento:致命错误:找不到类'Mage_Catalogrule_Helper_Data'

更新时间:2023-11-29 23:47:34

听起来您已经编辑了一些核心文件.

It sounds like you've edited some core files.

确保此文件存在:app/code/core/Mage/CatalogRule/Helper/Data.php

它定义了此类:Mage_CatalogRule_Helper_Data

该类在app/code/core/Mage/CatalogRule/etc/config.xml中的global/helpers中声明为:

And that the class declared in global/helpers in app/code/core/Mage/CatalogRule/etc/config.xml as:

<config>
    <modules>
        <Mage_CatalogRule>
            <version>1.6.0.1</version>
        </Mage_CatalogRule>
    </modules>
    <global>
        <helpers>
            <catalogrule>
                <class>Mage_CatalogRule_Helper</class>
            </catalogrule>
        </helpers>
....

并刷新您的配置缓存.

还要检查您是否没有覆盖任何本地/社区代码池中的catalogrule帮助器节点.

Also check that you're not overrideing the catalogrule helper node in any of the local/community code pools.