這個(gè)致命錯(cuò)誤一般是因?yàn)榭棄艉笈_(tái)文件是最新的,而織夢的include文件夾里的程序核心文件還是舊版本引起函數(shù)不存在
  • 完整解決方法
下載官方對應(yīng)編碼的最新程序,提取這4個(gè)文件并覆蓋到你網(wǎng)站對應(yīng)的目錄里
如果你的第1、第2個(gè)文件之前有改動(dòng)過,記得備份再覆蓋
  • include/common.inc.php
  • include/common.func.php
  • include/autoload.inc.php
  • include/autoload7.inc.php
只添加不存在函數(shù)的解決方法
打開 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);
}
如圖