解决Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in D:
使用php5.5运行ecshop的时候出现如下错误Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in \ecshop\includes\cls_template.php on line 300
解决方法如下
打开ecshop的目录找到includes\cls_template.php 到第300行
把
return preg_replace("/{([^\}\{\n]*)}/e", "\$this->select('\\1');", $source);
替换成
return preg_replace_callback("/{([^\}\{\n]*)}/", function($r) { return $this->select($r[1]); }, $source); 重新运行问题以解决
官方说明http://www.php.net/manual/zh/reference.pcre.pattern.modifiers.php
ecshop2.7.3 preg_replace()怎么替换成preg_replace_callback()
来源://作者:/更新时间:2014-02-16
顶
踩
相关文章:
- 安装ecshop出错,Strict Standards: Non-static,Only v
- Ecshop系统去掉标题后的Powered by Ecshop方法[ecshop
- ecshop中标签的写法 [ecshop优化]
- ecshop商品详情页标题 [ecshop优化]
- ecshop Url静态化修改说明[ecshop开发教程]
- ecshopSEO案例之 手机优化记录[ecshop开发教程]
- ecshop模板中lbi和dwt文件的关系[ecshop基础教程]
- ecshop后台密码忘记了怎么办?[ecshop基础教程]
- 1.ecshop首页调用文章分类思路及方法 [ecshop基础教程
- ecshop文章自动发布[ecshop帮助文档]
最新文章
新热推荐
- 解决Strict Standards: Only variables should be passed by reference in C:\Apache24\htdocs\ecshop\in
- 解决Strict Standards: Non-static method cls_image::gd_version() should not be called statically in ecs
- 解决Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in D:
- 解决Warning: mkdir() [function.mkdir]: No such file or directory in install/includes/lib_installer.php
- ecshop文章自动发布[ecshop帮助文档]