1

Class 'Mage_Amber_Localdev_Helper_Data' not found in /var/www/localdev.site/robert/bsr/app/Mage.php on line 547

is there 100% but won't find it.

            $this->addColumn('image', array(
            'header'  => Mage::helper('amber_localdev')->__('Image'),
            'width'   => '80px',
            'nullable'=> true,
            'index'   => 'image',
            'sortable'=> false,
            'renderer' => 'Amber_Localdev_Block_Adminhtml_Image_Grid_Renderer_Thumbnail'
        ));

Class rendering image

class Amber_Localdev_Block_Adminhtml_Image_Grid_Renderer_Thumbnail extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract
{
    public function render(Varien_Object $row)
    {

        $val = Mage::helper('eav/entity_attribute_option')->init($row['option_id']);
        $out = "Name";
        $out = "Name".$val;
        $out .= "<img src=". $val ." width='50px'/>";
        return $out;
    }
}

My Config:

  <global>
<helpers>
  <localdev>
    <class>Amber_Localdev_Helper</class>
  </localdev>
</helpers>

...

My Helper: (empty, just a class name)

class Amber_Localdev_Helper_Data extends Mage_Core_Helper_Abstract{}
7
  • are you sure that Mage_Amber_Localdev_Helper_Data is there or Amber_Localdev_Helper_Data ?
    – Marius
    Mar 7 '17 at 12:16
  • Hello Marius, technically in Data.php there is: Amber_Localdev_Helper....
    – Rob D. A.
    Mar 7 '17 at 12:17
  • If I change it to Mage_Amber_Local.... error
    – Rob D. A.
    Mar 7 '17 at 12:18
  • did you clear the cache?
    – Marius
    Mar 7 '17 at 12:18
  • 1
    Please add your config.xml and Helper/Data.php Mar 7 '17 at 12:28
2

I have not seen your config.xml yet, But I am answering as general

  $this->addColumn('image', array(
        'header'  => Mage::helper('localdev')->__('Image'),
        'width'   => '80px',
        'nullable'=> true,
        'index'   => 'image',
        'sortable'=> false,
        'renderer' =>   Amber_Localdev_Block_Adminhtml_Image_Grid_Renderer_Thumbnail'
    ));
1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.