SEP 22 2018

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

Blank screen or the following fatal error is thrown on attempt to change customer’s password in Frontend after SUPEE-10888:

Fatal error: Call to a member function getBackend() on a non-object in app/code/core/Mage/Eav/Model/Entity/Abstract.php on line 1536.
The error appears after SUPEE-10888 installation or after upgrade to Magento 1.9.3.10 or newer.

Cause

SUPEE-10888 adds new attribute in database (`rp_customer_id`), without such attribute the model can not be loaded.

Solution

Flush Magento cache to execute database upgrade script (i.e. app/code/core/Mage/Customer/sql/customer_setup/upgrade-1.6.2.0.4.1.2-1.6.2.0.4.1.3.php for Magento 1.9.2.4).  

Posted in: Fatal errors

Fatal error: Call to a member function getBackend() on a non-object in app/code/core/Mage/Eav/Model/Entity/Abstract.php on line 1536
6 votes, 5.00 avg. rating (97% score)
  • J. Glindemann

    to fix this – insert one line to the table eav_attribute:

    attribute_id,entity_type_id,attribute_code,attribute_model,backend_model,backend_type,backend_table,frontend_model,frontend_input,frontend_label,frontend_class,source_model,is_required,is_user_defined,default_value,is_unique,note
    42,1,rp_customer_id,NULL,NULL,varchar,NULL,NULL,hidden,NULL,NULL,NULL,0,0,NULL,0,NULL

  • Piers

    Hi, We have a Magento 1.9.1.1 store and we are getting this error after installing the SUPEE-10888 patch via FTP. We have checked the database and the attribute ‘rp_customer_id’ is in the table. Is there something else along the line that might be causing this error to still appear when we try to change password in the admin? Thanks in advance for your help.