skip to Main Content

I faced with a Fatal error: Class 'Mage_Configurableswatches_Helper_Productimg' not found in /app/Mage.php on line 547 while flushing the swatch image cache.

Please let me know how to fix this issue?

2

Answers


  1. create a file in Configurableswatches/Helper , Productimg like to :

    class  Configurableswatches_Helper_Productimg extends Mage_Core_Helper_Abstract
    {
    
    }
    

    you can check in magento helper

    Login or Signup to reply.
  2. You didn’t tell what is your Company Name or Namespace of your module.

    For example app/code/local/Foobar/Configurableswatches would accept Foobar as Namespace, Configurableswatches as Module name.

    This must match inside your config.xml file to be working.

    <config>
      <global>
        <helpers>
          <module_name>
             <class>Namespace_Configurableswatches_Helper_Productimg </class>
          </module_name>
        </helpers>
      </global>
    </config>
    

    In Namespace/Configurableswatches/Helper, create new file Productimg.php with this content

    class Namespace_Configurableswatches_Helper_Productimg extends Mage_Core_Helper_Abstract
    {
    
    }
    

    Adapt your Namespace with yours.

    Remember to refresh cache after.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search