在PHP5.3以上版本運行ecshop和ecmall出現的問題及解決方案« |
|
威盾防火牆 2014-11-09php |
|
ecshopapp 問題一:商城首頁報錯 Strict Standards: Only variables should be passed by reference in D:\wamp\ecshop\includes\cls_template.php on line 422frontend 解決方法:this 找到提示錯誤的文件 cls_template.php 及行號url 把 $tag_sel = array_shift(explode(' ', $tag));spa 改爲: 而且刪除 D:\wamp\www\ecshop\temp\caches下全部的文件get 問題二:後臺首頁報錯 Strict Standards: Non-static method cls_image::gd_version() should not be called statically in D:\wamp\www\ecshop\includes\lib_base.php on line 346it 解決辦法io 找到D:\wamp\www\ecshop\includes\cls_image.php文件 搜索 function gd_version 改爲 static function gd_version 問題三:後臺-商店設置 Strict Standards: mktime(): You should be using the time() function instead in D:\wamp\www\ecshop\admin\sms_url.php on line 31 解決辦法 根據錯誤提示 把 mktime() 改爲 time()
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ecmall 問題描述:打開商城首頁及後臺出現亂碼及如下一系列的錯誤信息 Strict Standards: Non-static method ECMall::startup() should not be called statically in D:\wamp\www\ecmall\index.php on line 22 Strict Standards: Non-static method Conf::get() should not be called statically, assuming $this from incompatible context inD:\wamp\www\ecmall\app\frontend.base.phpon line 446 解決辦法 到ecmall安裝目錄下 找到 ecmall/eccore/ecmall.php 把 function get( 改爲 static function get( 把 function startup( 給成 static function startup( 到php安裝目錄下找到php.ini 把 error_reporting = E_ALL 改爲 error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT 重啓服務 |