Magento – Fatal error: Class Helper_Data’ not found in app\Mage.php

classerrornot found

Please help me guys to fix it :

Fatal error: Class 'Mage_Parcelamento_Helper_Data' not found in
C:\wamp64\www\magento\app\Mage.php on line 547

Error log

Warning: include(Mage\Parcelamento\Helper\Data.php): failed to open
stream: No such file or directory in lib\Varien\Autoload.php on line
94

Best Answer

There are two possibilities:

1) Either you declared your helper in the config.xml and you did not create it in the module NameSpace/NameModule/Helper/Data.php

2) Either you created it in the module but not in the config.xml or you did it wrong.

Solution:

You should have this in your config.xml:

<global>
  ...
    <helpers>
        <parcelamento>
            <class>Namespace_Parcelamento_Helper</class>
        </parcelamento>
    </helpers>
  ...
</global>

You should also have this in :Namespace/Parcelamento/Helper/Data.php

<?php

class Namespace_Parcelamento_Helper_Data extends Mage_Core_Helper_Abstract
{

}

Now you can call your helper like this:

<?php Mage::helper('parcelamento')?>
Related Topic