zoukankan      html  css  js  c++  java
  • ECshop安装提示cls_image::gd_version() 和不支持JPEG


    ecshop版本:ECShop_V2.7.3_UTF8_release1106
    php 版本 5.5
    ---------------------------------------------------------------------------------------
    错误1:Strict Standards: Non-static method cls_image::gd_version() should not be called statically in ***installincludeslib_installer.php on line 31
    原因:gd_version()方法未声明静态static
    解决方法:打开/includes/cls_image.php,678行找到函数 gd_version() ,修改为静态方法static function gd_version()
    ---------------------------------------------------------------------------------------
    错误2:安装提示:不支持JPG
    原因:gd_info() 系统函数检测是否支持JPG的键值为JPEG Support,而ecshop使用的键值为JPG Support
    注意:官方手册中文版也是错误的,使用的是JPG Support,如果切换到英文版则为正确的JPEG Support,所以有时候发现是东西理解不了,尝试切换到英文版的看看吧。

    解决方法: 打开 /install/includes/lib_installer.php ,位于98行
    JPG Support 修改为 JPEG Support就ok了
    $jpeg_enabled = ($gd_info['JPEG Support']        === true) ? $_LANG['support'] : $_LANG['not_support'];

    原文:http://blog.csdn.net/z_cf1985/article/details/23793993

  • 相关阅读:
    linux最简单项目部署
    sql索引
    /etc/profile和~/.bash_profile区别
    Linux下查找软件的目录位置
    为什么要使用消息队列?
    idea中常用的快捷键
    PAT 甲级 1023 Have Fun with Numbers (20分)
    PAT《算法笔记》
    Text 2
    Text-1
  • 原文地址:https://www.cnblogs.com/harxingxing/p/4493670.html
Copyright © 2011-2022 走看看