这个问题是因为你用的php版本过高,在php5.3中,正则函数ereg_replace已经废弃,而dedecms还继续用,有两个方案可以解决以上问题:

1.把php版本换到v5.3下。

2.继续使用v5.3,修改php.ini文件

;extension=php_mbstring.dll

改为

extension=php_mbstring.dll

;mbstring.func_overload=0

修改为:

mbstring.func_overload=7

或者使用其他的函数:

define('DEDEADMIN', ereg_replace("[/\\]{1,}",'/', dirname(__FILE__)));

//改为

define('DEDEADMIN', preg_replace("/[\/\\\\]{1,}/",'/', dirname(__FILE__)));

注:因为preg_replace比ereg_replace的执行速度快,PHP推荐使用preg_replace。

PHP Deprecated: Function ereg_replace() is deprecated in 的解决方法相关推荐

  1. Deprecated: Function ereg_replace() is deprecated

    Deprecated: Function ereg_replace() is deprecated in /usr/local/apache/htdocs/cacti/include/global.p ...

  2. 出现Deprecated: Function ereg_replace() is deprecated in 的原因及解决方法

    出现Deprecated: Function ereg_replace() is deprecated in 的原因及解决方法 参考文章: (1)出现Deprecated: Function ereg ...

  3. PHP问题 —— Deprecated: Function ereg_replace() is de

    1.1  Deprecated: Function ereg_replace() is deprecated 1.1.1  现象 运行应用出现如下错误提示: Deprecated: Function ...

  4. 织梦安装后提示Function ereg_replace() is deprecated的解决方法

    织梦 dedecms v5.6 安装后提示 Deprecated: Function ereg_replace() is deprecated in D:\www\dede\config.php on ...

  5. Deprecated:function eregi() is deprecated in /usr/local/apache/libraries/lib_lang.php on line 8

    Deprecated:function eregi() is deprecated in /usr/local/apache/libraries/lib_lang.php on line 8 Depr ...

  6. MATLAB-Direct access of structure fields returned by a function call is not allowed 的解决方法~

    今天在MATLAB的命令行窗口直接输入MATLAB路径下名字为"I_005_xianxing.m"的M文件时出现警告,提示如下 Warning: Direct access of ...

  7. 运行cv2.xfeatures2d.SIFT_create()时报错The function/feature is not implemented的解决方法,亲测可用

    opencv-contrib-Python编译出现错误: sift = cv.xfeatures2d.SIFT_create() cv2.error: OpenCV(3.4.3) C:\project ...

  8. warning: function declaration isn’t a prototype解决方法

    在编译u-boot时,出现了这样的警告warning: function declaration isn't a prototype [-Wstrict-prototypes] 原因是在添加了自己的函 ...

  9. FastApi报错 Invalid args for response field! Hint: check that <built-in function id> 。。。解决方法

    今天运行项目发现运行报错,错误内容是: Invalid args for response field! Hint: check that <built-in function id> i ...

最新文章

  1. 【MySQL笔记】mysql来源安装/配置步骤和支持中国gbk/gb2312编码配置
  2. 【笨嘴拙舌WINDOWS】字符类型与字符串
  3. 开源矿工README
  4. Unable to resolve dependency问题解决
  5. 怎样练习一万小时(转)
  6. 枚举值是什么意思_期权的Theta值是什么意思?有什么意义?
  7. Android导航栏高斯模糊,iOS 顶部高斯模糊导航栏 + 页面内容穿越底部导航栏效果...
  8. paip.SOCKET抓包工具总结V2012.9.17
  9. 大数据-----数据采集
  10. Hive函数collect_set、concat_ws、concat、if
  11. 凉州馆中与诸判官夜集
  12. VennDiagram 画文氏图/维恩图/Venn
  13. 华为高端机mate20遇到了冲击高端手机市场的好时机
  14. POI操作Excel设置前景色背景色
  15. 解决selenium实例化时警告问题
  16. 详解DNS服务、DNS解析、DNS劫持和污染
  17. 【Linux】嵌入式Linux系统的移植(上篇:交叉编译器、连接方式)
  18. Nonce Used1
  19. 中国流量排名前一百名网站
  20. FLV视频转换的利器 - ffmpeg.exe

热门文章

  1. Redis实现消息队列的4种方案
  2. Effective Java之使可变性最小(十五)
  3. 使用G1后报错-CircuitBreakingException: [parent] Data too large
  4. Thrall’s Dream HRBUST - 2048【BFS or 强连通分量】
  5. vue方法传值到data_Vue 组件传值几种常用方法【总结】
  6. 软件工程领域相关的技术标准_女生是否适合学习软件工程专业,以及是否能够有好的就业机会...
  7. devexpress能开发出html,DevExpress推出HTML5 JavaScript控件集
  8. url模糊匹配优化_详情页怎么做SEO优化?
  9. opencore0.6.4_心灵终结3.3.4
  10. ubuntu编译内核_鸿蒙源码下载并编译