在PHP5.3以上版本運行ecshop和ecmall出現的問題及解決方案

ecshopphp

問題一:商城首頁報錯 Strict Standards: Only variables should be passed by reference in D:\wamp\ecshop\includes\cls_template.php on line 422html

解決方法:app

找到提示錯誤的文件 cls_template.php 及行號frontend

把 $tag_sel = array_shift(explode(' ', $tag));this

改爲:
$tag_arr = explode(' ', $tag); 
$tag_sel = array_shift($tag_arr);url

而且刪除 D:\wamp\www\ecshop\temp\caches下全部的文件spa

問題二:後臺首頁報錯 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 346htm

解決辦法blog

找到D:\wamp\www\ecshop\includes\cls_image.php文件get

搜索 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
Strict Standards: mktime(): You should be using the time() function instead in D:\wamp\www\ecshop\admin\shop_config.php on line 32

解決辦法

根據錯誤提示 把 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
Deprecated: Assigning the return value of new by reference is deprecated in D:\wamp\www\ecmall\eccore\controller\app.base.php on line 141
Deprecated: Assigning the return value of new by reference is deprecated in D:\wamp\www\ecmall\includes\ecapp.base.php on line 143
Deprecated: Assigning the return value of new by reference is deprecated in D:\wamp\www\ecmall\includes\ecapp.base.php on line 149
Strict Standards: Declaration of FrontendApp::jslang() should be compatible with ECBaseApp::jslang($lang) in D:\wamp\www\ecmall\app\frontend.base.php on line 365
Strict Standards: Declaration of Message::display() should be compatible with FrontendApp::display($tpl) in D:\wamp\www\ecmall\eccore\controller\message.base.php on line 332

Strict StandardsNon-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 重啓服務

from: http://www.cnblogs.com/leolai/p/3468091.html

相關文章
相關標籤/搜索