- 工信部備案號 滇ICP備05000110號-1
- 滇公安備案 滇53010302000111
- 增值電信業務經營許可證 B1.B2-20181647、滇B1.B2-20190004
- 云南互聯網協會理事單位
- 安全聯盟認證網站身份V標記
- 域名注冊服務機構許可:滇D3-20230001
- 代理域名注冊服務機構:新網數碼
不少朋友發現ecshop在php高版本的情況下 會出現報錯
1、PHP 5.4.X環境下安裝ECShop出現“includes/cls_template.php on line 406”的解決方案。
將 $tag_sel = array_shift(explode(‘ ‘, $tag)); 這句話拆開為兩句。
$tag_arr = explode(‘ ‘, $tag);
$tag_sel = array_shift($tag_arr);
array_shift() 的參數是引用傳遞的,5.3以上默認只能傳遞具體的變量,而不能通過函數返回值 end(&array) 也一樣(后面也會有end的函數,也需要拆分為兩行)。
2、PHP 5.4.X環境下安裝ECShop出現“includes/lib_base.php on line 346”的解決方案。
將 cls_image.php 中 function gd_version() 改成 static function gd_version() 即可。
3、后臺點擊 開店向導 警告的解決方案。
admin/include/modules/payment 下的幾個文件構造函數錯誤,刪掉即可。
4、php5.4下安裝的時候處理問題,Strict Standards: Non-static method cls_image::gd_version() should not be called statically in installincludeslib_installer.php on line 31
解決:找到install/includes/lib_installer.php中的第31行 return cls_image::gd_version();然后在找到include/cls_image.php中的678行,發現gd_version()方法未聲明靜態static,所以會出錯。這時候只要:
將function gd_version()改成static function gd_version()即可。
5 安裝好后出現 Strict standards: Only variables should be passed by reference in includeslib_main.php on line 1329
$ext = end(explode('.', $tmp));
修改為:
$ext = explode('.',$tmp);
$ext = end($ext);
Strict standards: Only variables should be passed by reference in includescls_template.php on line 418
tag_sel = array_shift(explode(' ', $tag));
修改為:
$tag_arr = explode(' ', $tag); $tag_sel = array_shift($tag_arr);
售前咨詢
售后咨詢
備案咨詢
二維碼
TOP