Magento 编译后死亡:如何在没有管理面板访问权限的情况下禁用编译文件? [英] Magento died after compilation: how to disable using compiled files without admin panel access?
问题描述
尝试在此处编译 Magento 1.6:
Tried to compile Magento 1.6 here:
Magento 管理面板、系统、工具、编译
Magento admin panel, System, Tools, Compilation
它编译,然后我启用它.在那之后,站点死了.这是堆栈(但这并不重要)
It compiled and then I enabled it. After that, site died. Here's the stack (but that's not important)
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 表?
The important thing: how to get it up again? Maybe through editing MySQL tables?
推荐答案
如果您有 shell 访问权限,请运行
If you've got shell access, running
$ php shell/compiler.php disable
从您网站的根目录将禁用编译模式.
from the root of your site will disable compilation mode.
如果这不起作用,则意味着有人以某种方式欺骗了编译器配置文件,以至于它不适用于 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');
这篇关于Magento 编译后死亡:如何在没有管理面板访问权限的情况下禁用编译文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!