Magento died after compilation: how to disable using compiled files without admin panel access?

后端 未结 2 1191
终归单人心
终归单人心 2020-12-03 04:45

Tried to compile Magento 1.6 here:

Magento admin panel, System, Tools, Compilation

It compiled and then I enabled it. After that, site died. Here\'s the sta

相关标签:
2条回答
  • 2020-12-03 05:10

    comment out the two define function calls in includes/config.php path

    #define('COMPILER_INCLUDE_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'src');
    #define('COMPILER_COLLECT_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'stat');
    
    0 讨论(0)
  • 2020-12-03 05:29

    If you've got shell access, running

    $ php shell/compiler.php disable
    

    from the root of your site will disable compilation mode.

    If that doesn't work it means someone's diddled with the compiler configuration file in such a way that it won't work with the compiler.php script. If that's the case look in

    includes/config.php
    

    and comment out the two define function calls

    ##define('COMPILER_INCLUDE_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'src');
    #define('COMPILER_COLLECT_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'stat');
    
    0 讨论(0)
提交回复
热议问题