ecshop管理后台提示“ Strict Standards: Non-static method cls_image::gd_version() should not be called statically in /includes/lib_base.php on line 346”

7,208 人次阅读
没有评论

共计 273 个字符,预计需要花费 1 分钟才能阅读完成。

环境php5.4

ecshop版本2.7.3

进入ecshop管理后台提示“ Strict Standards: Non-static method cls_image::gd_version() should not be called statically in /includes/lib_base.php on line 346”

ecshop管理后台提示“ Strict Standards: Non-static method cls_image::gd_version() should not be called statically in /includes/lib_base.php on line 346”

找到includes/cls_image.php中的678行,发现gd_version()方法未声明静态static。

将function gd_version()改成static function gd_version()即可。

ecshop管理后台提示“ Strict Standards: Non-static method cls_image::gd_version() should not be called statically in /includes/lib_base.php on line 346”

 

刷新页面 错误提示无

正文完
 0