我們有同樣的問題。我們的ICT人員通過調整位於mediawiki的includes目錄中的Article.php文件來處理它。只修改了1個函數(377行函數function fetchContent())。我不知道確切的工作原理,但MediaWiki恢復正常。
而且我相信你需要訪問運行MediaWiki的更新程序: 'HostAdress'/鏈接到MediaWiki/MW-配置/
原有功能Article.php:
function fetchContent() { #BC cruft!
ContentHandler::deprecated(__METHOD__, '1.21');
if ($this->mContentLoaded && $this->mContent) {
return $this->mContent;
}
wfProfileIn(__METHOD__);
$content = $this->fetchContentObject();
// @todo Get rid of mContent everywhere!
$this->mContent = ContentHandler::getContentText($content);
ContentHandler::runLegacyHooks('ArticleAfterFetchContent', array(&$this, &$this->mContent));
wfProfileOut(__METHOD__);
return $this->mContent;
}
新功能Article.php:
function fetchContent() { #BC cruft!
ContentHandler::deprecated(__METHOD__, '1.21');
if ($this->mContentLoaded && $this->mContent) {
return $this->mContent;
}
wfProfileIn(__METHOD__);
$content = $this->fetchContentObject();
if (!$content) {
wfProfileOut(__METHOD__);
return false;
}
// @todo Get rid of mContent everywhere!
$this->mContent = ContentHandler::getContentText($content);
ContentHandler::runLegacyHooks('ArticleAfterFetchContent', array(&$this, &$this->mContent));
wfProfileOut(__METHOD__);
return $this->mContent;
}
這工作完美。謝謝你,謝謝你的IT人! – Epimetreus