PHP – Fix Fatal Error: Call to a Member Function getCode() on a Non-Object

defaulterrorPHP

Fatal error: Call to a member function getCode() on a non-object in 
/home/fgdadmin/public_html/factory/includes/src/__default.php on line 40425

NO clue what this means. I could get into the admin section and then it would crash out and spit that error again. Upon refresh, I'd get a 503, so I deleted my cache via FTP. At one point I was able to go in and turn on cache for the site along with another thing. Can't get into admin to remember what it was called. Really don't have too many custom modules and haven't done anything new in recent memory that would make this thing crash out.

It all started about 2 or 3 weeks ago when I'd have to delete the mage–2 folder in my cache when the site crashed and it'd be good for the day. Then it was hourly, now, no website. Over the 3 weeks I kept trying to figure out what it was, but to no avail. HELP please.

Site address is factoryglassdirect.com

Let me know what you need from me and I'll get it to you asap. I'm on here 24/7

Best Answer

This is Compile issue at magento.You need to disable Compilation from.

Disable Magento compilation:

$ php -f shell/compiler.php -- disable

Compiler include path disabled

There are two ways in which this can be done:

  1. From Magento admin

Navigate to System > Tools > Compilation page and click on Disable button Navigate to System > Cache Management screen and use Flush Cache button.

  1. Usinf SFTP, by editing at includes/config.php file

To disable compilation in Magento, edit includes/config.php. Uncommitted the first line and comment out the second:

define('COMPILER_INCLUDE_PATH', dirname(FILE).DIRECTORY_SEPARATOR.'src'); define('COMPILER_COLLECT_PATH', dirname(FILE).DIRECTORY_SEPARATOR.'stat');

  1. Using SSH shell program
php -f shell/compiler.php -- disable

php -f shell/compiler.php -- clear

see at

Related Topic