Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
257 views
in Technique[技术] by (71.8m points)

Magento Fatal error: Class 'Mage_Wsalogger_Helper_Data' not found in ... /app/Mage.php on line 546

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

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.

File location : app/code/<community> | <local> /Webshopapps/Wsalogger/Helper/Data.php

<?php
class Webshopapps_Wsalogger_Helper_Data extends Mage_Core_Helper_Abstract {
}

That will resolve this issue

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

EDIT

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 Definition

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>

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');

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...