0

Fatal error: Class 'Mage_Category_Password_Helper_Data' not found in /home/pypub/public_html/app/Mage.php on line 547

I've read this: Fatal error: Class Helper_Data' not found in app\Mage.php but can't seem to fix it

config:

<global>
 <helpers>
 <CategoryPassword>
 <class>SUN_CategoryPassword_Helper</class>
 </CategoryPassword>
 </helpers>

SUN/CategoryPassword/Helper/Data.php

<?php
class SUN_CategoryPassword_Helper_Data extends Mage_Core_Helper_Abstract {
}

Is it something to do with Category_Password vs CategoryPassword?

asked Nov 19, 2019 at 16:40

1 Answer 1

1

I assume you have -

<!-- Your module - app/code/local/Sun/CategoryPassword-->
<!-- Config - app/code/local/Sun/CategoryPassword/etc/config.xml:-->
<helpers>
 <sun_categorypassword>
 <class>Sun_CategoryPassword_Helper</class>
 </sun_categorypassword>
</helpers>
<!-- Data helper - app/code/local/Sun/CategoryPassword/Helper/Data.php-->
<?php
class Sun_CategoryPassword_Helper_Data extends Mage_Core_Helper_Abstract
{
 public function helloWorld()
 {
 echo "Hello World!!!";
 }
}
// Call on the Data.php helper
Mage::helper('offset101_helpertest')->helloWorld();
rm -rf var/cache

Above should work !

answered Nov 19, 2019 at 17:28

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.