Dedecms
发布时间:2022-05-06 发布网站:大佬教程 code.js-code.com
大佬教程收集整理的这篇文章主要介绍了登录后台提示Function ereg_replace()错误的解决方法,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
概述
部分用户在还原数据库后登录织梦管理后台就会会提示Function ereg_
replace()错误,这个问题我记得以前有遇到的,是
在本地调试dedecms整站程序的时候,从网上下载了一个整套程序包括模板到本地调试,导入数据库安装都正常,但是登录后台就出现Deprecated: Fun
部分用户在还原数据库后登录织梦管理后台就会会提示Function ereg_replace()错误,这个问题我记得以前有遇到的,是在本地调试Dedecms整站程序的时候,从网上下载了一个整套程序包括模板到本地调试,导入数据库安装都正常,但是登录后台就出现“Deprecated: Function ereg_replace() is deprecated in”的错误信息,左侧的菜单也无法看到并且打开。
出现这样的问题,不是我们程序的问题,而是数据库兼容问题,可能我们本地的数据库版本和我们导入下来的版本不对。我们可以通过下面的方法解决:
首先找到Dedecms管理目录下的config.PHP文件,在里面找到下面的代码:
1
|
define( 'DEDEADMIN' ,ereg_replace( "[/\\]{1,}" BACkground-image: none !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; font-family: Consolas, '/' BACkground-image: none !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; font-family: Consolas, dirname (__FILE__) ) );
|
|
将其更换成如下代码:
Syntax Highlighter " id=" Highlighter_609173" style="width: 687.0 46875px; padding: 1px !important; margin: 1em 0px !important; outline: 0px !important; border: 0px !important; BACkground-image: none !important; float: none !important; vertical-align: baseline !important; position: relative !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; line-height: 20px !important; font-family: Consolas,preg_ replace( "/[\/\\\\]{1,}/" BACkground-image: none !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; font-family: Consolas,
保存后再去登录一下后台就可以了。
大佬总结
以上是大佬教程为你收集整理的登录后台提示Function ereg_replace()错误的解决方法全部内容,希望文章能够帮你解决登录后台提示Function ereg_replace()错误的解决方法所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。 如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
|