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

时间:2011-12-16 17:54:09

标签: magento compilation

试图在这里编译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

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

2 个答案:

答案 0 :(得分:81)

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

$ php shell/compiler.php disable
来自您网站根目录的

将禁用编译模式。

如果这不起作用,则意味着某人使用编译器配置文件进行了操作,使得它无法与compiler.php脚本一起使用。如果是这种情况,请查看

includes/config.php

并注释掉两个define函数调用

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

答案 1 :(得分:11)

includes/config.php路径

中注释掉两个定义函数调用
#define('COMPILER_INCLUDE_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'src');
#define('COMPILER_COLLECT_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'stat');