cancel
Showing results for 
Search instead for 
Did you mean: 

Helper class not found

Helper class not found

Hi. I am new to magento. I am using 1.9.3

 

I got this error when opening my website and also admin panel

 

 Fatal error: Class 'Bzp_Sales_Helper_Data' not found in /home/v2petsmor3/domains/petsmore.com/public_html/app/Mage.php on line 548

 

I open file under app/code/local/Bzp/Sales

 so, app/code/local/Bzp/Sales/model

 app/code/local/Bzp/Sales/etc/config.xml

app/code/local/Bzp/Sales/helper/Data.php

 

and also modules under app/etc/Bzp_Sales.xml

 

Data.php

 

<?php

class Bzp_Sales_Helper_Data extends Mage_Core_Helper_Abstract{
	
}

?>

config.xml

<?xml version="1.0" encoding="UTF-8"?>
    <config>
        <modules>
        <Bzp_Sales>
            <version>0.1.0</version>
        </Bzp_Sales>
        </modules>
        <global>
        <helpers>
            <bzpsales>
                <class>Bzp_Sales_Helper</class>
            </bzpsales>
        </helpers>
        <models>
            <bzpsales>
                <class>Bzp_Sales_Model</class>
            </bzpsales>
            </models>  
        </global>
    </config>

 

After I created the helper, the error above came out. Then I deleted app/code/local/Bzp/Sales and also modules under app/etc/Bzp_Sales.xml but the error is still there.

From my research, Magento tried to search the file but cannot found bcs I deleted the file. 

 

Why after I delete the file, the error is still there? 

 

 

Your help is much appreciated

3 REPLIES 3

Re: Helper class not found

Try clear cache

Re: Helper class not found

Hi @maivanluong1. Thank you for the reply.

 

I cannot open website and admin panel. 

 

How to clear cache?

 

Re: Helper class not found

You can just remove var folder from root of your project and check.
If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial