2012-04-02 178 views
0

Magento 1.4.2Magento編譯導致錯誤

編譯錯誤,頁面不呈現。我得到的錯誤,但我相信這是比這個模塊更深:

2012-04-02T15:26:02+00:00 ERR (3): Warning: require_once(cloudfiles.php): failed to open stream: No such file or directory in /var/www/spasandstuff.com/includes/src/OnePica_ImageCdn_Model_Adapter_Rackspace.php on line 20 

Line 20 is: require_once 'cloudfiles.php'; 

我試圖消除模塊,現在呈現的頁面,但如果我去Magento的連接得到了一個空白頁面,這個錯誤:

2012-04-02T16:07:30+00:00 ERR (3): Warning: require_once(/var/www/spasandstuff.com/includes/downloader/pearlib/php/PEAR.php): failed to open stream: No such file or directory in /var/www/spasandstuff.com/includes/src/Varien/Pear.php on line 60 

Line 60 is: require_once $_pearPhpDir."/PEAR.php"; 

This line is how it is finding the path: 
$_pearDir = dirname(dirname(dirname(__FILE__))) . DS . 'downloader' . DS . 'pearlib'; 

所以似乎存在某種路徑問題。如果有人能夠幫助我追蹤可能導致問題的原因,我將不勝感激,因爲我不知道該從哪裏出發。

回答

1

如果你的站點沒有任何性能問題,我建議禁用Magento中的編譯模式,因爲它是爲了加速包含所需文件,而不是通過大量代碼池搜索自動加載器。

系統 - >工具 - >編譯和禁用。

如果您需要編譯啓用速度/性能問題,我建議您閱讀以下文章以獲取更多信息。

Alan對使用Magento中的編譯編譯器有很好的瞭解。 http://alanstorm.com/magento_compiler_path

+0

謝謝,這正是我需要深入挖掘的信息。 – 2012-04-03 17:22:08

0

如果禁用編譯不能解決的錯誤嘗試找到core_config_data該模塊的存在並刪除條目從there..it將「require_once」之前解決你的問題

相關問題