下面我們一起來(lái)看在使用ecshop提示Strict Standards: Non-static method cls_image::gd_version() should not be called statically錯(cuò)誤問題解決辦法吧。
在使用ecshop時(shí)提示
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
這個(gè)錯(cuò)誤,搜索問題原來(lái)是php版本的問題,我是用的php5.4版本的,解決辦法如下:
找到346行吧
return cls_image::gd_version()
替換成:
$p = new cls_image();
return $p->gd_version();
這樣就行了,由于php版本不同導(dǎo)致的問題。
新聞熱點(diǎn)
疑難解答