关于ecshop在PHP 5.3以上版本的问题

2016-09-11 20:39 来源:www.chinab4c.com 作者:ecshop专家

《一》、安装时出错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();

 

《二》、安装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);