簡體   English   中英

Magento在編譯后死亡:如何在沒有管理面板訪問的情況下禁用已編譯文件?

[英]Magento died after compilation: how to disable using compiled files without admin panel access?

嘗試在此處編譯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表?

如果您具有外殼程序訪問權限,請運行

$ 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');

注釋掉includes/config.php路徑中的兩個define函數調用

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM