2012-04-02 177 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”之前解决你的问题

相关问题