预编译(Compilation)功能在1.3时代就已经存在于Magento系统中,开启后能大幅提高Magento系统的运行速度。在1.4以前这个功能一直是beta版,到1.4终于把beta这个词去掉了,也就意味着这个功能已经成熟,但是经过我反复测试,在新安装完的干净系统中开启预编译(Compilation)后,后台插件管理(Magento Connect Manager)不能访问,报错信息如下:
Fatal error: main() [function.require]: Failed opening required '/home/ebluebell/public_html/includes/downloader/pearlib/php/PEAR.php' (include_path='/home/ebluebell/public_html/includes/downloader/pearlib/php:/home/ebluebell/public_html/includes/src:.:/usr/share/pear:/usr/share/php') in /home/ebluebell/public_html/includes/src/Varien/Pear.php on line 265
经检查网站根目录下includes文件夹下确实不存在downloader文件夹,解决方案是按照提示,把根目录下downloader/pearlib/php文件夹拷贝到/includes/downloader/pearlib/php/,问题解决。
时间: 2024-09-11 04:42:31