After importing a Magento database, you may encounter the error “Call to a member function extend() on a non-object”. The issue can be related to special system rows in several Magento database tables. The following SQL statements may resolve it after the database import. Back up your database before making changes:
|
1 2 3 4 |
SET FOREIGN_KEY_CHECKS = 0; UPDATE core_store SET store_id = 0 WHERE code like 'admin'; UPDATE core_website SET website_id = 0 WHERE code like 'admin'; UPDATE customer_group SET customer_group_id = 0 WHERE customer_group_code like 'NOT LOGGED IN'; |
Fixing “Call to a member function extend() on a non-object” in Magento
Need help implementing this solution, or still looking for a fix to your Magento problem? Get in touch and I will be happy to help with your project.