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,然后搜索以下代码- function get_gd_version()
- {
- include_once(ROOT_PATH . 'includes/cls_image.php');
- return cls_image::gd_version();
- }
复制代码 将以上代码修改为以下代码- function get_gd_version()
- {
- include_once(ROOT_PATH . 'includes/cls_image.php');
- $cls_image=new cls_image();
- return $cls_image->gd_version();
- }
复制代码 |
|