How to disable Compilation mode via FTP¶
Very often installation of new extensions with Compilation Mode enabled breaks your site. You cannot view the front-end and back-end. Nothing works. In this case the only solution is to disable Compilation Mode to get the site back to normal state.
- Connect to your server using FTP Manager
- Go inside ‘includes’ folder
- Open the file ‘config.php’ for editing
- Find the lines: ```sh define('COMPILER_INCLUDE_PATH',dirname( FILE).DIRECTORY_SEPARATOR.'src');
define('COMPILER_COLLECT_PATH',dirname( FILE).DIRECTORY_SEPARATOR.'stat');¶
and comment them out:
sh
define('COMPILER_INCLUDE_PATH',dirname( FILE).DIRECTORY_SEPARATOR.'src');¶
define('COMPILER_COLLECT_PATH',dirname( FILE).DIRECTORY_SEPARATOR.'stat');¶
``` 5. Save the changes.
Now you can get into your back-end. 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.