首页 > 代码库 > Ecshop:cls_image::gd_version()和不支持JPEG
Ecshop:cls_image::gd_version()和不支持JPEG
在安装Ecshop的时候,遇到两个问题:
Strict Standards: Non-static method cls_image::gd_version() should not be called statically in /var/www/html/gotosth/install/includes/lib_installer.php on line 31Strict Standards: Non-static method cls_image::gd_version() should not be called statically in /var/www/html/gotosth/install/includes/lib_installer.php on line 31
解决:
找到install/includes/lib_installer.php中的第31行 return cls_image::gd_version();然后在找到include/cls_image.php中的678行,发现gd_version()方法未声明静态static,所以会出错。这时候只要:
1)将function gd_version()改成static function gd_version()即可。2)或者将install/includes/lib_installer.php中的第31行return cls_image::gd_version();改成:$p = new cls_image();return $p->gd_version();
Ecshop:cls_image::gd_version()和不支持JPEG
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。