下面我们一起来看在使用ecshop提示Strict Standards: Non-static method cls_image::gd_version() should not be called statically错误问题解决办法吧。 在使用ecshop时提示 ecshop提示Strict Standards: Non-static method

下面我们一起来看在使用ecshop提示Strict Standards: Non-static method cls_image::gd_version() should not be called statically错误问题解决办法吧。

ecshop提示Strict Standards: Non-static method cls_image::gd_version()(ecshop演示)  ecshop Strict Standards :gd_version 第1张

在使用ecshop时提示

ecshop提示Strict Standards: Non-static method cls_image::gd_version() should not be called statically in E:/wwwroot/weirenchou/includes/lib_base.php on line 346

这个错误,搜索问题原来是php版本的问题,我是用的php5.4版本的,解决办法如下:

找到346行吧

return cls_image::gd_version()

替换成:

$p = new cls_image();

return $p->gd_version();

这样就行了,由于php版本不同导致的问题。

转载请说明出处
知优网 » ecshop提示Strict Standards: Non-static method cls_image::gd_version()(ecshop演示)

发表评论

您需要后才能发表评论