安装MediaWiki时出错

时间:2014-01-19 20:09:09

标签: php apache mediawiki cpanel

当我尝试安装mediawiki 1.22.1时,它会在mediawiki网址上引发以下错误

Catchable fatal error: Object of class Language could not be converted to string in /home/hackep6t/public_html/mw/includes/Exception.php on line 722  

但奇怪的是,如果我再次尝试访问相同的网址,则会显示已安装的mediawiki。如果我关闭窗口并重新打开它,那么它会再次显示错误。请帮忙。

Edit 1:

现在它抛出这些错误消息:

Warning: array_map() expects parameter 1 to be a valid callback, no array or string given in /home/hackep6t/public_html/mw/includes/Exception.php on line 750

Warning: array_map() expects parameter 1 to be a valid callback, no array or string given in /home/hackep6t/public_html/mw/includes/Exception.php on line 750

Warning: array_map() expects parameter 1 to be a valid callback, no array or string given in /home/hackep6t/public_html/mw/includes/Exception.php on line 750

Warning: array_map() expects parameter 1 to be a valid callback, no array or string given in /home/hackep6t/public_html/mw/includes/Exception.php on line 750

[9fdeb921] /mw/ Exception from line 38 of /home/hackep6t/public_html/mw/includes/ScopedCallback.php: Provided callback is not valid.

Backtrace:

#0 /home/hackep6t/public_html/mw/includes/cache/MessageCache.php(325): ScopedCallback->__construct()
#1 /home/hackep6t/public_html/mw/includes/cache/MessageCache.php(871): MessageCache->load()
#2 /home/hackep6t/public_html/mw/includes/cache/MessageCache.php(791): MessageCache->getMsgFromNamespace()
#3 /home/hackep6t/public_html/mw/includes/cache/MessageCache.php(729): MessageCache->getMessageFromFallbackChain()
#4 /home/hackep6t/public_html/mw/includes/Message.php(878): MessageCache->get()
#5 /home/hackep6t/public_html/mw/includes/Message.php(560): Message->fetchMessage()
#6 /home/hackep6t/public_html/mw/includes/Message.php(649): Message->toString()
#7 /home/hackep6t/public_html/mw/includes/Title.php(375): Message->text()
#8 /home/hackep6t/public_html/mw/includes/Wiki.php(121): Title::newMainPage()
#9 /home/hackep6t/public_html/mw/includes/Wiki.php(137): MediaWiki->parseTitle()
#10 /home/hackep6t/public_html/mw/includes/Wiki.php(530): MediaWiki->getTitle()
#11 /home/hackep6t/public_html/mw/includes/Wiki.php(467): MediaWiki->main()
#12 /home/hackep6t/public_html/mw/index.php(49): MediaWiki->run()
#13 {main}

1 个答案:

答案 0 :(得分:2)

我有完全相同的问题。我通过在.htaccess中禁用eaccelerator来修复它:

php_flag eaccelerator.enable 0
php_flag eaccelerator.optimizer 0

我认为这是eaccelerator中的错误。如果您使用其他优化程序,请尝试禁用它。因为mediawiki的代码在异常回溯中提到的行中似乎没有错误。