Magento: Fatal error: Call to a member function getTable() on a non-object
I am getting the fatal error saying:-
Fatal error: Call to a member function getTable() on a non-object in /var/www/magento/app/code/core/Mage/Core/Model/Mysql4/Collection/Abstract.php on line 456
This error occurs when I try to browse Configurable product in frontend. Or, when I try to add Configurable product in backend.
I am using Magento version 18.104.22.168
Cause & Solution:-
In my case, the cause of this error was wrongly named file in the following folder:-
In this folder, there was a file named “Attribute.php0000644“. I renamed it to “Attribute.php“.
This solved my problem. Now, I am able to browse configurable product and add such products from admin as well.
Hope this helps. Thanks.