找回密码
 新建账号

[PHP] ECShop 2.7.3 安装 Non-static method cls_image::gd_version() 解决方法

[复制链接]
php 发表于 2014/7/6 16:43 | 显示全部楼层 |阅读模式
Strict Standards: Non-static method cls_image::gd_version() should not be called statically in ...install\includes\lib_installer.php on line 31
在安装ECShop 2.7.3时出现了以上错误,是因为在程序中静态调用了非静态方法,这是ECShop程序员的疏忽造成的。
要解决这个问题,用任何编辑软件打开ECShop根目录下面的install/includes/lib_installer.php,然后搜索以下代码
  1. function get_gd_version()
  2. {
  3.     include_once(ROOT_PATH . 'includes/cls_image.php');

  4.     return cls_image::gd_version();
  5. }
复制代码
将以上代码修改为以下代码
  1. function get_gd_version()
  2. {
  3.     include_once(ROOT_PATH . 'includes/cls_image.php');
  4.         $cls_image=new cls_image();
  5.     return $cls_image->gd_version();
  6. }
复制代码

手机版|轻松E站

GMT+8, 2024/4/17 04:33

快速回复 返回顶部 返回列表