2

I am getting an error on my websites home page including a custom attribute from my theme.

PHP Fatal error: Call to a member function getBackend() on a non-object in /chroot/home/afgclass/WEBSITEDOMAIN/html/app/code/core/Mage/Eav/Model/Entity/Abstract.php

Can you guys please help any suggestions? Sadly I have no backups ;(

1
  • It's hard to tell what are you doing. However check this link Commented Jun 14, 2015 at 2:45

1 Answer 1

1

Have you done any custom code in your application?

Somehow you are using wrong attribute Id which is being checked by below function -

#File: app/code/core/Mage/Eav/Model/Entity/Abstract.php
public function isAttributeStatic($attribute)
{
    $attrInstance       = $this->getAttribute($attribute);
    $attrBackendStatic  = $attrInstance->getBackend()->isStatic();
    return $attrInstance && $attrBackendStatic;
}

So check your customization thoroughly.

Got this reference from Alan Storm

Not the answer you're looking for? Browse other questions tagged or ask your own question.