Magento – Getting PHP Fatal error: Call to a member function getAttributeCode() on Admin

admin-paneladministrationconfigurable-productproduct-attribute

Suddenly I am getting a fatal error, when I go the Manage products page on Magento Admin, Can anyone suggest what could be the reason ?

PHP Fatal error: Call to a member function getAttributeCode() on a
non-object in
/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php on line
1186,

Best Answer

This usually happens when you uninstall modules adding custom attributes to your products.

If you recently uninstalled some extension without a clear uninstall this may be the cause.

Try also manually clearing your Magento cache. Use the two red buttons to clear cache, do not simply refresh.

Hope it helps.

Related Topic