且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Magento编译后死:如何禁用使用编译的文件,没有管理面板访问?

更新时间:2023-11-29 21:40:34

如果您有shell访问权限,请运行

If you've got shell access, running

$ php shell/compiler.php disable

从您的网站的根将禁用编译模式。

from the root of your site will disable compilation mode.

如果这不工作,意味着有人使用编译器配置文件, t使用 compiler.php 脚本。如果是这种情况,请查看

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

并注释掉两个 define 函数调用

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