ecshop管理页面报Non-static method cls_image::gd_version() 错误的解决方

2016-07-07 14:59 来源:www.chinab4c.com 作者:ecshop专家

安装了ecshop以后,进入管理页面,发现顶部有两行提示:

Strict Standards: Non-static method cls_image::gd_version() should not be called statically in D:\shop\xampp-portable\htdocs\ecshop\includes\lib_base.php on line 347

Strict Standards: Non-static method cls_image::gd_version() should not be called statically in D:\shop\xampp-portable\htdocs\ecshop\includes\lib_base.php on line 347

在网上搜索了一下,在这里找到了答案:

http://www.cnblogs.com/thinksasa/archive/2013/03/12/2955922.html

具体方法是:

将347行的代码:
return cls_image::gd_version();
改为:
$p = new cls_image();
return $p->gd_version();

回答:
php 5.3以上就有这个问题