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

问题现象:

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

安装ECShop报 Non-static method cls_image::gd_version() should not be called statically 解决方案_第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();
}

你可能感兴趣的:(【ecshop】)