Home » Magento29 April 2011

Magento: Fatal error: Call to a member function getTable() on a non-object

Scenario:-

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 1.5.0.1

Cause & Solution:-

In my case, the cause of this error was wrongly named file in the following folder:-

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 solved my problem. Now, I am able to browse configurable product and add such products from admin as well.

Hope this helps. Thanks.

Magento

Get New Post by Email

Find me on

FacebookTwitterGoogle+LinkedInRSS Feed
  • Qwas

    was same problem,
    dunno why.
    the only unusual thing is that server runing windows.