Fatal error: Call to a member function getBackend() on a non-object
Closed this issue · 3 comments
Hey,
I managed to get the extension installed and configured, however, if I try to batch update a customer's activation status, it straight away gives me this error:
Fatal error: Call to a member function getBackend() on a non-object in /../app/code/community/Netzarbeiter/CustomerActivation/Model/Resource/Customer.php on line 46
I've had a look and it's referring to this line:
$table = $attribute->getBackend()->getTable();
The previous line:
$attribute = $this->getAttribute('customer_activated');
seems to be returning false. Could it be that the attribute hasn't been added because I installed manually? Should there be a field if I click through to a customer in the backend? I can't currently see any additional fields there.
Thanks in advance.
Think I cracked it actually. Because I installed via magento connect to start with, and then manually, I don't think it installed the required attribute.
I removed the customeractivation_setup row form core_resource and it triggered it to reinstall on page refresh - seems to work now!
Thanks.
Good job on figuring it out, and thanks for the updates!
No worries - it works really well! Thanks for making it.