Ecshop安装过程中的的问题

问题:

  Strict standards: Non-static method cls_image::gd_version() should not be called statically in D:\wamp\www\TC\text\ecshop\install\includes\lib_installer.php on line 3

解决方法:

      找到install/includes/lib_installer.php中的第31行 returncls_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();

      




猜你喜欢

转载自blog.csdn.net/john_rush/article/details/74177810