Reputation: 35
I've installed an extension by BrandAmmo named ProNav. I went to clear the cache and it gave me this error in the admin,
Fatal error: Class **Brandammo_Pronav_Helper_Data' not found in
/home/content/r/e/d/redr1225/html/app/Mage.php on line 516**
Any idea what I need to do?
Upvotes: 0
Views: 5516
Reputation: 595
codepool/extension_name/module_name/Helper/Data.php
packagename_modulename_foldername(Helper or Block) _ filename(Data.php)
<?php
class package_module_Helper_Data{
}
includes/src/
Upvotes: 1
Reputation: 13812
Make sure this file exists: /home/content/r/e/d/redr1225/html/app/code/local/BrandAmmo/Pronav/Helper/Data.php
And that it creates this class:
class BrandAmmo_Pronav_Helper_Data
extends Mage_Core_Helper_Abstract
{
}
And make sure in this file: /home/content/r/e/d/redr1225/html/app/code/local/BrandAmmo/Pronav/etc/config.xml
You are declaring your helper:
<?xml version="1.0"?>
<config>
<global>
<helpers>
<pronav>
<class>BrandAmmo_Pronav_Helper</class>
</pronav>
</helpers>
</global>
</config>
Pay attention to the capitalization in BrandAmmo
and make sure it's correct. Upper or lower case shouldn't matter, so long as they're all the same.
Upvotes: 2
Reputation: 17656
In /app/code/local/Brandammo/Pronav/Helper/Data.php you should have a php file with minimum the following code
<?php
class Brandammo_Pronav_Helper_Data extends Mage_Core_Helper_Abstract
{
}
Upvotes: 0