试图在这里编译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表?
答案 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');