ECSHOP在PHP版本5.3及以上版本出问题的解决办法

1、安装时出错Strict Standards: Non-static method cls_image::gd_version() should not be called statically in D:\amp\www\ecshop\install\includes\lib_installer.php on line 31

解决方法:

将install/includes/lib_installer.php中的第31行return cls_image::gd_version();改成:
$p = new cls_image();
return $p->gd_version();
 
2、安装Ecshop后首页出现报错:
Strict Standards: Only variables should be passed by reference in D:\wamp\ecshop\includes\cls_template.php on line 418
解决方法:
$tag_sel = array_shift(explode(' ', $tag));
改成:
$tag_arr = explode(' ', $tag); 
$tag_sel = array_shift($tag_arr); 

© 版权声明
THE END
請多多支持
点赞0
评论 抢沙发

    暂无评论内容