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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With