安装ECShop报 Non-static method cls_image::gd_version() should not be called statically 解决方案
2016-10-15 20:33
543 查看
问题现象:
在安装ECShop时,如果出现报下图1现象,可以试下本文中的解决方案
![](https://img-blog.csdn.net/20161015203637351?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
图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时,如果出现报下图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();
}
相关文章推荐
- Non-static method cls_image::gd_version() should not be called statically in D:\X\www\ecshop\install
- ECshop安装问题一解决:Strict Standards: Non-static method cls_image::gd_version() should not be called stati
- ecshop二次开发:Non-static method cls_image::gd_version() should not be called statically in的解决
- Strict standards: Non-static method cls_image::gd_version() should not be called statically in
- 安装ecmall报错Strict Standards: Non-static method ECMall::startup() should not be called statically in D
- ECShop 3.0安装出现错误:Non-static method cls_image::gd_version()
- ecshop管理页面报Non-static method cls_image::gd_version
- ecshop提示Strict Standards: Non-static method cls_image::gd_version()
- php错误:non-static method xxx()should not be called statically
- ECMall报Strict Standards: Non-static method Conf::get() should not be called statically解决
- ECSHOP安装或使用中提示Strict Standards: Non-static method cls_image:
- Ecshop安装过程中的的问题:cls_image::gd_version()
- Ecshop安装过程中的的问题:cls_image::gd_version()和不支持JPEG .
- ecshop Non-static method cls_image::gd_version()
- Ecshop安装过程中的的问题:cls_image::gd_version()和不支持JPEG
- Ecshop安装过程中的的问题:cls_image::gd_version()和不支持JPEG
- Ecshop安装过程中的的问题:cls_image::gd_version()和不支持JPEG
- Ecshop安装过程中的的问题:cls_image::gd_version()和不支持JPEG
- Ecshop安装过程中的的问题:cls_image::gd_version()和不支持JPEG
- Ecshop安装过程中的的问题:cls_image::gd_version()和不支持JPEG