ecmall 兼容 php5.5以上版本
来源:互联网 发布:网络交流环境 编辑:程序博客网 时间:2024/05/20 06:49
在PHP5.3以上版本运行ecshop和ecmall出现的问题及解决方案
ecshop
问题一:商城首页报错 Strict Standards: Only variables should be passed by reference in D:\wamp\ecshop\includes\cls_template.php on line 422
解决方法:
找到提示错误的文件 cls_template.php及行号
把 $tag_sel = array_shift(explode(' ', $tag));
改成:
$tag_arr = explode(' ', $tag);
$tag_sel = array_shift($tag_arr);
并且删除 D:\wamp\www\ecshop\temp\caches下所有的文件
问题二:后台首页报错 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
问题三:后台-商店设置
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 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 重启服务
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in C:\WWW\eccore\view\template.php on line 1402
$pattern = array(
'/<!--[^>|\n]*?({.+?})[^<|{|\n]*?-->/', // 替换smarty注释
'/<!--[^<|>|{|\n]*?-->/', // 替换不换行的html注释
'/(href=["|\'])\.\.\/(.*?)(["|\'])/i', // 替换相对链接
'/((?:background|src)\s*=\s*["|\'])(?:\.\/|\.\.\/)?(images\/.*?["|\'])/is', //在images前加上$tmp_dir
'/((?:background|background-image):\s*?url\()(?:\.\/|\.\.\/)?(images\/)/is', //在images前加上$tmp_dir
'/{nocache}(.+?){\/nocache}/ise', //无缓存模块
);
去掉后面的e
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in C:\WWW\eccore\view\template.php on line 801
// $fields = preg_replace('/([a-zA-Z0-9_]+)\.([a-zA-Z0-9_*]+)/e', "\$this->_getFieldTable('\\1') . '.\\2'", $fields);
return preg_replace_callback("/{([a-zA-Z0-9_]+)\.([a-zA-Z0-9_*]+)}/", function($r) { return $this->_getFieldTable($r[1]); }, $fields);
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in C:\WWW\eccore\view\template.php on line 357
// return preg_replace("/{([^\}\{\n]*)}/e", "\$this->select('\\1');", $source);
return preg_replace_callback("/{([^\}\{\n]*)}/", function($r) { return $this->select($r[1]); }, $source);
- ecmall 兼容 php5.5以上版本
- php5.5以上版本curl上传图片(兼容php5.5以下版本)
- 修正ECMALL在PHP5.3以上版本中无法开启支付方式的BUG
- 在PHP5.3以上版本运行ecshop和ecmall出现的问题及解决方案
- 在PHP5.3以上版本运行ecshop和ecmall出现的问题及解决方案
- 在PHP5.3以上版本运行ecshop和ecmall出现的问题及解决方案
- 在PHP5.3以上版本运行 ecmall 出现的问题及解决方案
- 在PHP5.3以上版本运行ecshop和ecmall出现的问题及解决方案
- PHP5.2以上版本,错误
- PHP5.3以上版本更改
- iis7.5 配置 php5.5以上版本说明
- no input file specified. thinkphp php5.5版本以上
- PHP5.3以上版本安装ZendOptimizer扩展
- php5.5以上的数据库连接
- Placeholder兼容IE6以及以上版本
- Android Gallery画廊 兼容4.0以上版本
- PHP5.1以上版本对时区的设定
- 修复ECSHOP在PHP5.4以上版本中的运行问题
- 微服务架构下的数据一致性保证(三):补偿模式
- 提取EXE图标
- eclipse安装jrebel实现热加载(jrebel版本为6.5)
- POJ 3041 - Asteroids
- java基础运算符
- ecmall 兼容 php5.5以上版本
- 效率的错觉,每天只需工作3小时
- PopupWindow
- vi编辑时出现E325:ATTENTION
- 常用正则表达式(一)
- 状态栏着色;沉浸式
- python中的魔法参数:*args和**kwargs
- Redis学习总结和相关资料
- 【java】多线程控制(一)---Semaphore、Exchanger、CyclicBarrier、CountDownLatch