Sometime you can see on your magento store
“Fatal error: Call to a member function getTable() on a non-object in magento”
when you try to get Configurable product in frontend or when you try to add Configurable product in backend in magento. Its error occurred because of not found some function or file. When I moved my magnto store from my local server to online and try to add Configurable product from backend I see this error
Error:
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
Sometime extract zip file or move files from local to online some files change name like Attribute.php0000644. In our case when I trace or after some R & D I found the solution. Please go on below path
app/code/core/Mage/Catalog/Model/Resource/Eav/Mysql4/Product/Type/Configurable/Attribute/
In this folder, there was a file named “Attribute.php0000644“. I renamed it to “Attribute.php“.
This way I fixed my problem and now everything is working fine Magento eCommerce with configurable products.
Magento Development | PSD To Magento | Magento Theme Development | Magento Development Services