DEDECMS Deprecated: Function ereg_replace() is deprecated错误提示解决方法

简介:
使用最新版的wamp,内置的是5.3版本的php,安装dedecms5.5以后,出现了
Deprecated: Function ereg_replace() is deprecated in D:\wamp\www\dedecms\dede\config.php on line 2
 
于是百度一下,果然有前辈已经遇到了这个问题,原来ereg_replace是php5.3中废弃的标签,不推进使用了。解决方法很简单,就是将dede\config.php文件的第二行替换成
define(’DEDEADMIN’, preg_replace(”/[\/\\\\]{1,}/”, ‘/’, dirname(__FILE__) ) );
这样就不会报错了。遇到同样问题的朋友们不妨试一试。


本文转自 Jhuster 51CTO博客,原文链接:http://blog.51cto.com/xwnet/239657,如需转载请自行联系原作者
相关文章
|
机器学习/深度学习 数据处理 Python
【Python】已解决:FutureWarning: Function get_feature_names is deprecated; get_feature_names is deprecated
【Python】已解决:FutureWarning: Function get_feature_names is deprecated; get_feature_names is deprecated
719 0
【问题记录】utureWarning: Function get_feature_names is deprecated; get_feature_names is deprecated in 1.0
【问题记录】utureWarning: Function get_feature_names is deprecated; get_feature_names is deprecated in 1.0
|
PyTorch 算法框架/工具
Legacy autograd function with non-static forward method is deprecated and will be removed in 1.3.
Legacy autograd function with non-static forward method is deprecated and will be removed in 1.3.
627 0

热门文章

最新文章