Saturday , April 21 2018
Home / Random / Magento – Compiler – Page not displaying after compilation

Magento – Compiler – Page not displaying after compilation

When trying to enable the compilation mode, either through admin panel or through command line. Some times we get a strange behavior. Page disappears.

to fix this, disable compilation mode

Access server command line and run these commands

php -cli public_html/shell/compiler.php disable

will get output like 
Content-type: text/html
Compiler include path disabled

php -cli public_html/shell/compiler.php state
Content-type: text/html

Compiler Status:          Disabled
Compilation State:        Compiled
Collected Files Count:    7605
Compiled Scopes Count:    4
----------

if you do not have access to command line, you may try disabling compilation related commands from config file

in includes/config.php

disable these lines

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

About M H N