Magento: Fatal error: Class 'Mage_Catalogrule_Helper_Data' not found

一个人想着一个人 提交于 2020-01-05 03:37:48

问题


I just made a few changes to my webshop by admininterface (no big one, like no short media URL..) and now every time I log in to Magento it shows up the following Error. I can't see anything else. The frontend is still working.

Fatal error: Class 'Mage_Catalogrule_Helper_Data' not found in /var/www/vhosts/mysite.com/httpdocs/app/Mage.php on line 546

What could be the matter and how can I fix it? Would be great if somebody could help me.

thanks


回答1:


It sounds like you've edited some core files.

Be sure that this file exists: app/code/core/Mage/CatalogRule/Helper/Data.php

That it defines this class: Mage_CatalogRule_Helper_Data

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>
....

And refresh your configuration cache.

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



来源:https://stackoverflow.com/questions/15711295/magento-fatal-error-class-mage-catalogrule-helper-data-not-found

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!