ecmall支持php5.3,在PHP5.3以上版本运行ecshop和ecmall出现的问题及解决方案
ecshop
問(wèn)題一:商城首頁(yè)報(bào)錯(cuò) Strict Standards: Only variables should be passed by reference in D:\wamp\ecshop\includes\cls_template.php on line 422
解決方法:
找到提示錯(cuò)誤的文件?cls_template.php 及行號(hào)
把?$tag_sel = array_shift(explode(‘ ‘, $tag));
改成:$tag_arr = explode(‘ ‘, $tag);?$tag_sel = array_shift($tag_arr);
并且刪除?D:\wamp\www\ecshop\temp\caches下所有的文件
問(wèn)題二:后臺(tái)首頁(yè)報(bào)錯(cuò) 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?346
解決辦法
找到D:\wamp\www\ecshop\includes\cls_image.php文件
搜索?function gd_version?改成?static function gd_version
問(wèn)題三:后臺(tái)-商店設(shè)置
Strict Standards: mktime(): You should be using the time() function instead in?D:\wamp\www\ecshop\admin\sms_url.php?on line?31Strict Standards: mktime(): You should be using the time() function instead in?D:\wamp\www\ecshop\admin\shop_config.php?on line?32
解決辦法
根據(jù)錯(cuò)誤提示 把?mktime()?改成?time()
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
ecmall
問(wèn)題描述:打開(kāi)商城首頁(yè)及后臺(tái)出現(xiàn)亂碼及以下一系列的錯(cuò)誤信息
Strict Standards: Non-static method ECMall::startup() should not be called statically in?D:\wamp\www\ecmall\index.php?on line?22Deprecated: Assigning the return value of new by reference is deprecated in?D:\wamp\www\ecmall\eccore\controller\app.base.php?on line?141Deprecated: Assigning the return value of new by reference is deprecated in?D:\wamp\www\ecmall\includes\ecapp.base.php?on line?143Deprecated: Assigning the return value of new by reference is deprecated in?D:\wamp\www\ecmall\includes\ecapp.base.php?on line?149Strict Standards: Declaration of FrontendApp::jslang() should be compatible with ECBaseApp::jslang($lang) in?D:\wamp\www\ecmall\app\frontend.base.php?on line?365Strict 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 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?重啟服務(wù)
===========================================================
后臺(tái):http://localhost/ecshop/admin
=============================================
1.
Fatal error: Call to undefined function curl_init() in........這種錯(cuò)誤提示的解決辦法!
別急!首先得聲明,這是因?yàn)閜hp的擴(kuò)張函數(shù)沒(méi)有啟動(dòng),一樣重新啟動(dòng)我們wamp
amp
================================================================
原文:http://www.cnblogs.com/vip-deng-vip/p/7536137.html
總結(jié)
以上是生活随笔為你收集整理的ecmall支持php5.3,在PHP5.3以上版本运行ecshop和ecmall出现的问题及解决方案的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: php模块化安装教程,homestead
- 下一篇: java 滚动加载,滚动加载,可视区域判