2014年12月13日 星期六

ecshop 在PHP 5.3 以上版本發生的問題

1、安裝時出錯
Strict Standards: Non-static method cls_image::gd_version() should not be called statically in    XXXXXXXXXXX\lib_installer.php on line 31

解決方法:
將install/includes/lib_installer.php中的第31行return cls_image::gd_version();改成:
$p = new cls_image();
return $p->gd_version();

2、安裝Ecshop後首頁出現報錯:
Strict Standards: Only variables should be passed by reference in
XXXXXXXX\cls_template.php on line 418

解決方法:
$tag_sel = array_shift(explode(' ', $tag));
改成:
$tag_arr = explode(' ', $tag);
$tag_sel = array_shift($tag_arr);

3. 後台有設定可以清除緩存

下面連結有說明發生原因
http://www.ecshop120.com/ecshop-ercikaifa/article-275.html

沒有留言:

張貼留言