試圖安裝FCKEditor MediaWiki的擴展。遵循官方網站的指示 - 從svn獲取拷貝。已安裝MediaWiki with PHP 5.3.2的FCKeditor
之後 - 包括它變成的LocalSettings.php有:
require_once( 「$ IP /分機/ FCKeditor的/ FCKeditor.php」);
比我遇到錯誤時嘗試打開我的Wiki:
Magic word 'NORICHEDITOR' not found
Backtrace:
#0 /usr/share/mediawiki/includes/MagicWord.php(244): Language->getMagic(Object(MagicWord))
#1 /usr/share/mediawiki/includes/MagicWord.php(197): MagicWord->load('NORICHEDITOR')
#2 /var/lib/mediawiki/extensions/FCKeditor/FCKeditor.body.php(79): MagicWord::get('NORICHEDITOR')
#3 [internal function]: FCKeditor_MediaWiki::onParserBeforeInternalParse(Object(Parser), '<div class='noa...', Object(StripState))
#4 /usr/share/mediawiki/includes/Hooks.php(117): call_user_func_array(Array, Array)
#5 /usr/share/mediawiki/includes/parser/Parser.php(870): wfRunHooks('ParserBeforeInt...', Array)
#6 /usr/share/mediawiki/includes/parser/Parser.php(327): Parser->internalParse('<div class='noa...')
#7 /usr/share/mediawiki/includes/Article.php(3557): Parser->parse('<div class='noa...', Object(Title), Object(ParserOptions), true, true, 0)
#8 /usr/share/mediawiki/includes/Article.php(989): Article->outputWikiText('<div class='noa...', false)
#9 /usr/share/mediawiki/includes/Wiki.php(450): Article->view()
#10 /usr/share/mediawiki/includes/Wiki.php(63): MediaWiki->performAction(Object(OutputPage), Object(Article), Object(Title), Object(User), Object(WebRequest))
#11 /usr/share/mediawiki/index.php(116): MediaWiki->initialize(Object(Title), Object(Article), Object(OutputPage), Object(User), Object(WebRequest))
#12 {main}
我已經安裝鏈接到MediaWiki 1.15.1,PHP 5.3.2。
我發現了一些關於這個PHP版本問題的信息,但沒有找到解決方案。
擴展:www.mediawiki.org/wiki/Extension_talk:FCKeditor_(Official)
P.S. apt-get install mediawiki僅提供版本1.15。對於PHP 5.3.2需要MW版本1.17+,我從官方網站上獲得了它,而不是安裝。 – LLAlive