Skip to content

Instantly share code, notes, and snippets.

@evgv
Last active June 14, 2017 23:20
Show Gist options
  • Save evgv/8784dcaf9b1865574f839bbfb167f6e6 to your computer and use it in GitHub Desktop.
Save evgv/8784dcaf9b1865574f839bbfb167f6e6 to your computer and use it in GitHub Desktop.
Magento. Disable compilation.

Via Admin Panel

Navigate to System > Tools > Compilation page and click on Disable button
Navigate to System > Cache Management screen and use Flush Cache button.

Via SFTP

To disable compilation in Magento, edit includes/config.php. At around line 28, uncomment the first line and comment out the second:

#define('COMPILER_INCLUDE_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'src');
define('COMPILER_COLLECT_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'stat');

Via SSH

php -f shell/compiler.php -- disable
php -f shell/compiler.php -- clear  
  
Check the status:
php -f shell/compiler.php -- state

Compiler Status:          Disabled
Compilation State:        Not Compiled
Collected Files Count:    0
Compiled Scopes Count:    0

Clear the cache:
rm -rf var/cache/* var/session/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment