Magento • Call to a member function AnyFunctionNameHere() on a non-object in includes/src/

Article ID #1143
Revision: 1.1
Last update: 2011-10-16

 

Symptoms

The following error messages are reported by Magento Connect Manager:

PHP Fatal error:  Call to a member function AnyMagentoFunctionNameHere() on a non-object in includes/src/ on line XX

 

Cause

Magento compilation is enabled and code was not recompiled after installation/upgrade or removal of any Magento module/extension.

 

Solution

To prevent the issue you need to temporarily disable compilation before any module installation/upgrade removal at System > Tools > Compilation. As soon as module installation is complete, you can enable compilation back at the same screen: System > Tools > Compilation.

In case Magento Admin interface is inaccessible you can disable compilation as described in How do I disable Magento Compiler

Did this article help you solve your issue?


Average rating: 3.62 (13 votes)

completely useless 1 2 3 4 5 most valuable

Tags: ,