
这个致命错误一般是因为织梦后台文件是最新的,而织梦的include文件夹里的程序核心文件还是旧版本引起函数不存在
- 完整解决方法
下载官方对应编码的最新程序,提取这4个文件并覆盖到你网站对应的目录里
如果你的第1、第2个文件之前有改动过,记得备份再覆盖
- include/common.inc.php
- include/common.func.php
- include/autoload.inc.php
- include/autoload7.inc.php
只添加不存在函数的解决方法
打开 include/common.func.php 找到
function RunApp
在它的前面加入
function dede_htmlspecialchars($str) {global $cfg_soft_lang;if (version_compare(PHP_VERSION, '5.4.0', '<')) return htmlspecialchars($str);if ($cfg_soft_lang=='gb2312') return htmlspecialchars($str,ENT_COMPAT,'ISO-8859-1');else return htmlspecialchars($str);}
如图
