Coding

Magento: Fatal error: Call to a member function setAttribute() on boolean

Fatal error: Call to a member function setAttribute() on boolean in app\code\core\Mage\Eav\Model\Attribute\Data.php on line 80 when edit a customer of magento.

 

1) open app\code\core\Mage\Eav\Model\Attribute\Data.php on line 80 then add a log such as Mage::log($attribute->getAttributeCode(),null, 'test.log'); to see the wrong Attribute code.

 

2) Go to phpmyadmin, open "eav_attribute" change the front_input to correct. In my case it was "label"

0 Bình luận

Trở về
  • HTML5 Canvas
  • HTML5 Canvas

     The <canvas> element is used to draw graphics, on the fly, on a web page. Draw a red rectangle, a gradient rectangle,...