完美解决ecshop错误 gd_version() should not be called statically
时间:2013-10-29 09:57来源:gongwin.com 作者:省芯商城 点击:
次
完美解决ecshop错误 gd_version() should not be called statically
出现Strict级别错误:
Strict Standards: Non-static method cls_image::gd_version() should not be called statically
includes/lib_base.php文件中的gd_version()函数
includes/lib_base.php文件中的gd_version()函数中搜索:
return cls_image::gd_version();
修改为:
$img = new cls_image();
return $img->gd_version();
当然也可以在cls_image类中将gd_version方法定义为静态的。
如果错误还存在,记得后台清除缓存。
(责任编辑:www.gongwin.com) |
------分隔线----------------------------