How To disable the Compiler through code in Magento
If you face the error :
Fatal error: Class 'Mage_avenues_Model_Mysql4_Setup' not found in /public_html/domain.com/includes/src/Mage_Core_Model_Resource_Setup.php on line 234
You need to edit following code in /magento-root/index.php at around line 43, from this:
/** * Compilation includes configuration file */ define('MAGENTO_ROOT', getcwd()); $compilerConfig = MAGENTO_ROOT . '/includes/config.php'; if (file_exists($compilerConfig)){ include $compilerConfig; }
to this:/** * Compilation includes configuration file */ define('MAGENTO_ROOT', getcwd()); /* $compilerConfig = MAGENTO_ROOT . '/includes/config.php'; if (file_exists($compilerConfig)){ include $compilerConfig; } */Now, go to your admin. You would be able to login into backend where you can disable or run the compile process as per your requirement. When it’s done you can restore the first version of index.php and everything will work.
1 comment:
Nice One Sir...Thank you for sharing valueable knowldge
Post a Comment