Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fatal error:Call to a member function getSource()on a non-object in\app\cose\core\Mage\Catalog\Model\Product.php on line1389

Tags:

magento

I am getting following error on list.phtml page on my local instance of a site under development--->

Fatal error: Call to amember function getSource() on a  non-object in 
D:\wamp\www\magento\app\code\core\Mage\Catalog\Model\Product.php on line 1389
like image 480
Mukesh Avatar asked Mar 27 '13 07:03

Mukesh


1 Answers

Fatal error: Call to a member function getSource() on a  non-object in 
\www\magento\app\code\core\Mage\Catalog\Model\Product.php on line 1389

I was getting this error because some of the attributes were not created in Admin panel. But using $_product->getAttributeText('preferred') values were being fetched in list.phtml.

When I created these attribute and assigned those to default attribute set problem solved.

like image 54
Mukesh Avatar answered Sep 30 '22 10:09

Mukesh