您现在的位置是:首页 > 教程 > ecshop商城教程ecshop商城教程
ecshop报错Deprecated: preg_replace()的解决方法
俞贡延2024-12-06 23:00:32ecshop商城教程已有7人查阅
导读今天安装Ecshop后,运行出现各种问题,其中 Deprecated: preg_replace() 之类的报错最多,下面贴出解决方案: 错误原因:preg_replace() 函数中用到的修饰符 /e 在 PHP5.5.x 中已经被弃用了。
今天安装Ecshop后,运行出现各种问题,其中 Deprecated: preg_replace() 之类的报错最多,下面贴出解决方案:
错误原因:
preg_replace() 函数中用到的修饰符 /e 在 PHP5.5.x 中已经被弃用了。
如果你的PHP版本恰好是PHP5.5.X,那你的ECSHOP肯定就会报类似下面这样的错误:
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in......
解决办法:
1. Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in \includes\cls_template.php on line 300
原有内容: 修改后内容: 2. Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in \includes\cls_template.php on line 491
原有内容: 修改后内容: 3. Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in \includes\cls_template.php on line 550
原有内容: 修改后内容: 4. Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in \includes\cls_template.php on line 1074
原有内容: 修改后内容: 5. Strict Standards: Only variables should be passed by reference in ...\upload\includes\lib_main.php on line 1329
原有内容: 修改后内容: 之后,将错误修改后,上传到服务器.然后进入后台,清空缓存,刷新页面即可。
错误原因:
preg_replace() 函数中用到的修饰符 /e 在 PHP5.5.x 中已经被弃用了。
如果你的PHP版本恰好是PHP5.5.X,那你的ECSHOP肯定就会报类似下面这样的错误:
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in......
解决办法:
1. Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in \includes\cls_template.php on line 300
原有内容: 修改后内容: 2. Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in \includes\cls_template.php on line 491
原有内容: 修改后内容: 3. Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in \includes\cls_template.php on line 550
原有内容: 修改后内容: 4. Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in \includes\cls_template.php on line 1074
原有内容: 修改后内容: 5. Strict Standards: Only variables should be passed by reference in ...\upload\includes\lib_main.php on line 1329
原有内容: 修改后内容: 之后,将错误修改后,上传到服务器.然后进入后台,清空缓存,刷新页面即可。
本文标签:
很赞哦! (0)
暂无内容 |
暂无内容 |
相关文章
暂无内容 |
暂无内容 |
随机图文
ecshop商品价格将属性价格改为直接价非加价修改的方法
代码号之ecshop商品价格将属性价格改为直接价格,而非本店价格加属性价格等于总价修改教程ecshop将属性价格改为直接价格,而非加价打开文件ecshop自定义导航栏下面怎么显示热门搜索
如果你使用的是官方默认模板,只需进行 步操作即可,如果您使用的是其他ECSHOP模板,则可能还需要进行第2步操作。ecshop后台路径修改
ECSHOP修改后台路径根据版本不同,修改的地方也不一样。我现在用的是2.7.3,上网查了资料,很少,所以自己先写下来,以备大家参考。ecshop系统缓存优化扩展数据缓存的方法
1、扩展数据缓存的必要性大家都知道ecshop系统使用的是静态模板缓存,在后台可以设置静态模板的缓存时间,只要缓存不过期,用户访问页面就相当于访问静态页面,速度可想而知,看似非常完美
留言与评论 (共有 0 条评论) |