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

ce-1.9.2.2customer-gridmagento-1.9

Just upgraded to 1.9.2.2 and am getting this error when trying to view the customer grid in the backend.

I tried replacing:

/MYSITE/app/code/local/Mage/Adminhtml/Block/Customer/Grid.php

With a fresh copy with no luck!

Fatal error: Call to a member function getBackend() on a non-object in /var/www/vhosts/MYSITE/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php on line 514

Having a real headache trying to fix this error.

Best Answer

We had similar issue and it was because of during update new attribute wasn't created via resources process. renaming versions in core_resource table and running update again, error was gone. So it's 99% related to missed attribute