0

登录后,我在管理面板中收到此错误:

“致命错误:在第 516 行的 /home/hotshopl/public_html/wholesaleapparelshop.com/app/Mage.php 中找不到类 'Webdziner_Ajaxsearch_Helper_Data'”

我尝试在我的 1.6.0.0 站点中安装一个主题,一切都很顺利,直到我刷新了缓存,然后它都崩溃了并给了我消息。http://www.wholesaleapparelshop.com我想弄清楚这个 Helper 文件在哪里。我已经查看了其他问题和答案,但我似乎找不到我的问题的好答案。我到处找。

看了这个帖子,但什么也没有http://www.magentocommerce.com/boards/viewthread/239818/

我能联系到的最亲密的人是

Magento 模块致命错误:在第 516 行的 \xampp\htdocs\magento\app\Mage.php 中找不到类“Mage_Cashondelivery_Helper_Data”

请指教帮助 谢谢

4

4 回答 4

4

您可以检查是否在 System>Tools>Compiler 下启用了 Compiler。如果已启用,请将其禁用,然后刷新 Magento 缓存。之后您可能不再收到此错误,因为这对我有用。

之后您始终可以再次启用编译器。

于 2013-10-03T21:30:24.223 回答
1

我想弄清楚这个 Helper 文件在哪里

应该app/code/[pool]/Webdziner/Ajaxsearch/Helper/Data.php, 中带有 [pool]local或者community. 请记住,路径名区分大小写。

如果文件明确位于此位置,请检查以下内容:

  • 是否安装了像 APC 这样的操作码缓存?然后清除它并重试
  • 文件的所有者和权限设置是否正确?它应该可以被 PHP 读取(如果不确定,例如将权限与 Mage.php 的权限进行比较)
于 2013-01-24T08:09:41.283 回答
1

It's not that complicated, take it easy :)

Listen, First you must have the below code(/Helper/Data.php)

class Mage_Profile_Helper_Data extends Mage_Core_Helper_Abstract
{

}

From now, take care- it is all about where you have called the helper { Eg: Mage::helper('modulename') }. If such a call is there, then you need to have a code like:

<global>
......
    <helpers>
        <yournamespace_modulename>
            <class>yournamespace_modulename_Helper</class>
        </yournamespace_modulename>
    </helpers>
....
</global>

-in your /etc/config.xml I mean, it is all about the 'modulename' in the helper call.

Notice: It is not that good to have more than one <helpers> in your /etc/config.xml. Use it only if you are in the middle of guys running codes smarter than you.

Thank You.

于 2014-09-02T11:38:43.520 回答
0

我也面临同样的问题。但我正在使用代码上传文件和我要上传文件的文件夹,没有写权限。因此,请检查您的代码,您也可以授予 var 和 media 文件夹及其子文件夹的写入权限并检查它。

于 2016-06-10T06:11:52.970 回答