Magento – Magento broken after plugin installs

ce-1.8.1.0extensionsmagento-1.8

I've just installed a plugin and now magento isn't working anymore. Firstly i thought this was due to the plugin but even after disabling/removing the plugin the problem persists.

Magento backend is working just fine, the problem is solely on the frontend which just shows a blank page.
Error from the log:

include(): Failed opening 'Mage.php' for inclusion (include_path='/var/www/magento/app/code/local:/var/www/magento/app/code/community:/var/www/magento/app/code/core:/var/www/magento/lib:.:/usr/share/php:/usr/share/pear') in /var/www/magento/lib/Varien/Autoload.php on line 93

Now mage.php is located in /var/www/magento/app so i get the error message but adding this directory to the include path raises other errors. Mage.php is also included in index.php so i was wondering why is it included throughout the autoloader anyways?

Furthermore i tried reseting file/folder permissions to 644/755 but still no results. I'm running version 1.8.1.0

Afterwards PHP tries to look for the Mage class in the functions.php file which also fails.

[Wed Apr 09 20:46:23 2014] [error] [client 195.240.204.196] PHP Warning:  include(Mage.php): failed to open stream: No such file or directory in /var/www/magento/lib/Varien/Autoload.php on line 93
[Wed Apr 09 20:46:23 2014] [error] [client 195.240.204.196] PHP Warning:  include(): Failed opening 'Mage.php' for inclusion (include_path='/var/www/magento/app/code/local:/var/www/magento/app/code/community:/var/www/magento/app/code/core:/var/www/magento/lib:.:/usr/share/php:/usr/share/pear') in /var/www/magento/lib/Varien/Autoload.php on line 93
[Wed Apr 09 20:46:23 2014] [error] [client 195.240.204.196] PHP Fatal error:  Class 'Mage' not found in /var/www/magento/app/code/core/Mage/Core/functions.php on line 244   

Hope anyone can help, thanks.

Best Answer

It seems like the plugin either wrote over your Mage.php or it messed up the include_path. Disabling a plugin (extension) is often not enough. You need to remove it completely. What was the extension that you installed? How did you disable it? Do you have your Magento site in GIT so that you can do a fresh git checkout?

Related Topic