Magento致命错误:在第/546行上的.../app/Mage.php中找不到类'Mage_Wsalogger_Helper_Data' [英] Magento Fatal error: Class 'Mage_Wsalogger_Helper_Data' not found in ... /app/Mage.php on line 546

查看:86
本文介绍了Magento致命错误:在第/546行上的.../app/Mage.php中找不到类'Mage_Wsalogger_Helper_Data'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用webshopapps/wsalogger扩展.运行良好.突然它在结帐页面上出现问题,并给出了如下错误:

We were using webshopapps/wsalogger extension. It was working well. Suddenly it is doing problem on checkout page and it is giving error like:

Fatal error: Class 'Mage_Wsalogger_Helper_Data' not found in /var/data/www/example.com/app/Mage.php on line 546

我从etc模块禁用了扩展名,但是它仍然显示错误.有什么程序可以让我跳过结帐页面上的此错误?

I disabled extension from etc module but it is still showing error. Is there any process so that I can skip this error on checkout page?

推荐答案

Magento寻找扩展的帮助程序类,但找不到它.这就是为什么它抱怨.

Magento looking for your extension's helper class and it couldn't find one. That is why it complains.

因此解决方案是添加该帮助程序类.因此,请使用以下内容创建该帮助程序类.

So the solution would be add that helper class. So create this helper class with following content.

文件位置:app/code/<community> | <local> /Webshopapps/Wsalogger/Helper/Data.php

<?php
class Webshopapps_Wsalogger_Helper_Data extends Mage_Core_Helper_Abstract {
}

这将解决此问题

注意::我不知道您的扩展程序驻留在哪个代码池中.它可能在communitylocal中.因此,请在这两个位置检查您的扩展程序并添加此帮助程序

NOTE: I don't know in which codepool your extension resides. It may be in community or in local. So check in these two locations for your extension and add this helper

根据您的评论,我了解到您在扩展程序中定义了帮助程序类.那么,我知道这个问题持续存在的唯一原因是您的扩展程序内部或Magento内部的某个错误的辅助类调用.

From your comment, I understood that you have your helper class defined in your extension. Then the only one reason that I know for the persisting of this issue would be a wrong helper class calling somewhere inside your extension or somewhere inside Magento.

为了进行调试,您可以使用以下信息.

In order to debugg you can use the following information.

Helper类在扩展的配置文件中定义.在您的配置文件中,您会看到一个看起来像这样的代码.

Helper class defines in configuration file of your extension. In your configuratin file, you can see a code somewhat look like this.

#FILE LOCATION : app/code/community/Webshopapps/Wsalogger/etc/config.xml

<config>
    ....
    <global>
        <helpers>
            <unique_reference_for_this_helper>
                <class>Webshopapps_Wsalogger_Helper</class>
            </unique_reference_for_this_helper>
        </helpers>
    </global>
</config>

所以我们在这里声明一个对您的帮助器类的唯一引用以及帮助器类的声明.使用的关键字是unique_reference_for_this_helper.这意味着它作为您的帮助器类的别名.现在,它将允许我们像这样调用此帮助程序类.

So here we are declaring a unique refernce to your helper class along with the helper class declaration. The keyword used is unique_reference_for_this_helper. This means it stands as an alias for your helper class. Now it will allow us to call this helper class like this.

    Mage::Helper('unique_reference_for_this_helper');

可能是原因

在您的情况下,打给您的助手的电话可能打错了电话.但是,除此之外,请仔细检查助手类的定义.它看起来应该像我上面描述的那样.那是您的班级名称应为Webshopapps_Wsalogger_Helper_Data,并且应扩展为Mage_Core_Helper_Abstract.

Reason May be

In your case, there may be a wrong call to your call made for your helper. But rather than that, please double check the helper class definition. It should look like as I described above. That is your class name should be Webshopapps_Wsalogger_Helper_Data and it should extend Mage_Core_Helper_Abstract.

这篇关于Magento致命错误:在第/546行上的.../app/Mage.php中找不到类'Mage_Wsalogger_Helper_Data'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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