下面我們一起來看在使用ecshop提示Strict Standards: Non-static method cls_image::gd_version() should not be called statically錯誤問題解決辦法吧。
在使用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版本不同導致的問題。
新聞熱點
疑難解答