Magento 编译后死亡 : how to disable using compiled files without admin panel access?

标签 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 表?

最佳答案

如果您有 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');

关于Magento 编译后死亡 : how to disable using compiled files without admin panel access?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8538154/

相关文章:

php - 确定是否启用了 Magento 模块

php - MagMi media_gallery 不工作

model-view-controller - 在 Magento 中为 Controller 的 Action 之前/之后添加事件

linux - 构建和使用 Qt Embedded 的经验

Java问题;无法将 Activity 添加到 ArrayList<???> 需要帮助

magento : exception printing is disabled by default for security reasons

php - 在 Magento 的 sales_order_save_commit_after Hook 中,为什么我的订单中出现重复的商品?

opencv - 如何编译我的使用opencv的c程序

c - 错误: implicit declaration of function 'g_slist_free_full'

c++ - 我可以在 C 程序中使用用 C++ 创建的共享库吗?