我遵循本指南来优化YSlow等级。优化Mgento性能
http://aciddrop.com/2008/01/21/boost-your-website-load-time-with-3-lines-of-code/
我在Magento检查提示和其执行的3colums.phtml我的特殊模板后
所以我把这个
<?php require_once($_SERVER['DOCUMENT_ROOT'].'/php_speedy_wp/libs/php_speedy/controller/class.compressor.php'); ?>
<?php $compressor = new compressor('css,javascript,page'); ?>
<?php $compressor->start(); ?> 4
和之前的第一个文件身体我把这个
<?php $compressor->finish(); ?>
但是我得到这个错误 致命错误:主()[function.require]:无法打开需要 '/home/theprint/public_html/php_speedy_wp/libs/php_speedy/controller/class.compressor.php'(include_path中='/家庭/ theprint /的public_html/lib目录/缩小/ lib目录:/家庭/ theprint /的public_html /应用/代码/地方:/家庭/ theprint /的public_html /应用/代码/社区:/家庭/ theprint /的public_html /应用/代码/核心:/家/ home/theprint/public_html/app/design/frontend/depot/default/template/page/3columns中的/theprint/public_html/lib:.:/usr/lib/php:/usr/local/lib/php')。 phtml在线158 我该如何解决这个问题?
我没有运行安装程序脚本lol,但是当我这样做后,我仍然有这样的错误:trict注意:在/ home/theprint/public_html/php_speedy_wp/libs/php_speedy中重新定义类JSMin的已定义构造函数/库/ PHP/jsmin。php on line 167 Trace: #0 /home/theprint/public_html/php_speedy_wp/libs/php_speedy/php_speedy.php(70):mageCoreErrorHandler(2048,'Redefining alre ...','/ home/theprint /。 ..',167,Array) #1 /home/theprint/public_html/php_speedy_wp/libs/php_speedy/php_speedy.php(70):require_once() –
@无论谁投了-1,张贴一个理由。 –
你的问题实际上是错过了一个问题:( –