Hello World

Just So So ...

Ecshop安装过程中的的问题:cls_image::gd_version()

开源系统 0 评

1.

Strict Standards: Non-static method cls_image::gd_version() should not
be called statically in
D:\X\www\ecshop\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();

发表评论
撰写评论