国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

Ecshop安裝過程中的的問題:cls_image::gd_version()和不支持JPEG

2019-11-15 01:39:59
字體:
來源:轉載
供稿:網友
Ecshop安裝過程中的的問題:cls_image::gd_version()和不支持JPEG

在安裝Ecshop的時候,遇到兩個問題:

  1.Strict Standards: Non-static method cls_image::gd_version() should not be called statically inD:/X/www/ecshop/install/includes/lib_installer.phpon line31

  解決:找到install/includes/lib_installer.php中的第31行 return cls_image::gd_version();然后在找到include/cls_image.php中的678行,發現gd_version()方法未聲明靜態static,所以會出錯。這時候只要:

  1)將function gd_version()改成static function gd_version()即可。

  2)或者將install/includes/lib_installer.php中的第31行return cls_image::gd_version();改成:

1 $p = new cls_image();2 return $p->gd_version();

2.檢測環境的時候提示:是否支持 JPEG是不支持的。

  解決:查看發現有libjpeg.lib庫,GD2庫也有,都加載了,也都正常。查看ecshop源代碼發現install/includes/lib_installer.php中第100行,JPEG寫成了JPG,

正確的應該是:

$jpeg_enabled = ($gd_info['JPEG Support']        === true) ? $_LANG['support'] : $_LANG['not_support'];

為何說Ecshop寫錯了,因為我打印數組$gd_info的時候,里面的鍵名是:JPEG Support。而$gd_info數組里的值都是直接調用系統環境變量的。

  3.默認時區問題:Warning: date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. inD:/X/www/ecshop/install/includes/lib_installer.phpon line225

  解決:方法1,將php.ini里是date.timezone前的";"去掉,改成:date.timezone = PRC;

  方法2,在頁頭使用 ini_set('date.timezone','Asia/Shanghai');

  方法3,在頁頭使用date_default_timezone_set()設置 date_default_timezone_set('PRC'); //東八時區 echo date('Y-m-d H:i:s');


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 博乐市| 三门峡市| 柯坪县| 眉山市| 香河县| 六安市| 武城县| 台湾省| 咸丰县| 伊川县| 赫章县| 左贡县| 阳山县| 牙克石市| 勐海县| 惠来县| 万州区| 新巴尔虎左旗| 崇信县| 湟源县| 靖州| 黑水县| 班戈县| 中江县| 溧阳市| 太湖县| 临桂县| 牟定县| 麟游县| 兰州市| 河源市| 老河口市| 全州县| 抚远县| 广饶县| 额尔古纳市| 怀来县| 张家港市| 江川县| 深州市| 巴彦淖尔市|