In Magento after setup you entire store, if you are going to enable compilation mode to make your store faster and more reliable. But accidentally you found bunch of unknown errors, now that may be the trouble part of your day. This is quick and straightforward guide to let them readers that how they tackle this situation immediately. And also how to disable Magento compilation mode without using Magento backend (Because after errors backend and frontend is not appearing).
After getting these errors, you will not be able to access compilation page even your store from frontend so what next? Now you need to disable Magento compilation from server-side cPanel or through FTP client. Let’s see, how this method will work.
After getting these errors, simply open your FTP client or Magento root directory from cPanel. Navigate to
Now open config.php in any code editor and their you will find few compiler statements.
define('COMPILER_INCLUDE_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'src'); #define('COMPILER_COLLECT_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'stat');
Simply you need to add hash sign before the first line statement. Check it out above lines after add hash sign.
#define('COMPILER_INCLUDE_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'src'); #define('COMPILER_COLLECT_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'stat');
Now simply Save Changes and upload this file again on his location. Now you can easily access you store frontend and backend same like before these errors happening. And also able to detect and resolve these errors.
Do not turn on compilation until you resolved these errors. Personally, I would recommend you to higher someone developer who can tackle these errors and can resolve it for you.
Let us know, if you find this article useful and valuable for your Magento journey. Is there something questions in you mind or find trouble during reading this article so may join us on our community forum or can leave you comment under this post.