安装ECShop报 Non-static method cls_image::gd_version() should not be called statically 解决方案

来源:互联网 发布:java 获取temp目录 编辑:程序博客网 时间:2024/05/16 14:30

问题现象:

在安装ECShop时,如果出现报下图1现象,可以试下本文中的解决方案


图1

修改文件install/includes/lib_installer.php中,第31行return cls_image::gd_version();代码

修改前:

function get_gd_version(){    include_once(ROOT_PATH . 'includes/cls_image.php');    $p = new cls_image();}

修改后:

function get_gd_version(){    include_once(ROOT_PATH . 'includes/cls_image.php');    $p = new cls_image();    return $p->gd_version();}

0 0
原创粉丝点击