Magento在编译后死亡:如何在没有管理面板访问的情况下禁用使用编译的文件?

Dmi*_*try 27 compilation magento

试图在这里编译Magento 1.6:

Magento管理面板,系统,工具,编译

它编译然后我启用它.在那之后,网站死了.这是堆栈(但这并不重要)

Warning: include_once(Mage_Core_functions.php) [function.include-once]: failed to open stream: No such file or directory in /home/mysite/public_html/app/Mage.php on line 36

Warning: include_once() [function.include]: Failed opening 'Mage_Core_functions.php' for inclusion (include_path='/home/mysite/public_html/includes/src:.:/usr/lib/php:/usr/local/lib/php') in /home/mysite/public_html/app/Mage.php on line 36

Warning: include_once(Varien_Autoload.php) [function.include-once]: failed to open stream: No such file or directory in /home/mysite/public_html/app/Mage.php on line 37

Warning: include_once() [function.include]: Failed opening 'Varien_Autoload.php' for inclusion (include_path='/home/mysite/public_html/includes/src:.:/usr/lib/php:/usr/local/lib/php') in /home/mysite/public_html/app/Mage.php on line 37

Fatal error: Class 'Varien_Autoload' not found in /home/mysite/public_html/app/Mage.php on line 53
Run Code Online (Sandbox Code Playgroud)

重要的是:如何重新开始?也许通过编辑MySQL表?

Ala*_*orm 81

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

$ php shell/compiler.php disable
Run Code Online (Sandbox Code Playgroud)

从您网站的根目录将禁用编译模式.

如果这不起作用,则意味着某人使用编译器配置文件进行了操作,使得它无法使用compiler.php脚本.如果是这样的话

includes/config.php
Run Code Online (Sandbox Code Playgroud)

并注释掉两个define函数调用

##define('COMPILER_INCLUDE_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'src');
#define('COMPILER_COLLECT_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'stat');
Run Code Online (Sandbox Code Playgroud)


小智 11

注释掉includes/config.php路径中的两个定义函数调用

#define('COMPILER_INCLUDE_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'src');
#define('COMPILER_COLLECT_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'stat');
Run Code Online (Sandbox Code Playgroud)