Magento – Remove local core changes after testing

coremagento-1.6

I've made a change to App.php in /app/local/Mage/Core/Model to test something, but now when removing the file the, the site gives a fatal error! – I've cleard the cache files but didn't help?

Warning: include(/var/www/site.com/public_html/app/code/local/Mage/Core/Model/App.php): failed to open stream: No such file or directory in /var/www/site.com/public_html/lib/Varien/Autoload.php on line 93
Warning: include(): Failed opening 'Mage/Core/Model/App.php' for inclusion (include_path='/var/www/site.com/public_html/app/code/local:/var/www/site.com/public_html/app/code/community:/var/www/site.com/public_html/app/code/core:/var/www/site.com/public_html/lib:.:/usr/share/php:/usr/share/pear') in /var/www/site.com/public_html/lib/Varien/Autoload.php on line 93
Fatal error: Class 'Mage_Core_Model_App' not found in /var/www/site.com/public_html/app/Mage.php on line 633

Best Answer

Here are a couple of things to try:

  • Manually delete the var/cache folder contents.
  • Check you don't have compilation enabled
  • Check that you don't have APC enabled
  • Check the App.php still exists under app/code/core/Mage/Core/Model and that you didn't accidentally changed the content.

From your error log:

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

Magento is telling you that it can't find the App Model in any of the code pools, most likely something happend to the original App.php file

Related Topic