Select Page

More often than not, installation of extensions with Compilation Mode enabled will break your site. You cannot view the front-end or the back-end. In this scenario, the only solution is to disable Compilation Mode to get the site back to normal state.

  1. Connect to your site, either via FTP or File Manager within cPanel
  2. Go inside ‘includes’ folder
  3. Open the file ‘config.php’
  4. Find the lines:
    define('COMPILER_INCLUDE_PATH',dirname( **FILE**).DIRECTORY_SEPARATOR.'src');
    #define('COMPILER_COLLECT_PATH',dirname( **FILE**).DIRECTORY_SEPARATOR.'stat');
    

    comment them out:

    #define('COMPILER_INCLUDE_PATH',dirname( **FILE**).DIRECTORY_SEPARATOR.'src');
    #define('COMPILER_COLLECT_PATH',dirname( **FILE**).DIRECTORY_SEPARATOR.'stat');
    
  5. Save the changes

Problem solved 🙂

If you need to enable the Compilation mode again you should use ‘Run Compilation’ button and NOT just enable it again (as it will break your site again). Running it will compile all new files correctly.