gpt4 book ai didi

mediawiki - MWException 类型的致命异常

转载 作者:行者123 更新时间:2023-12-02 19:37:15 35 4
gpt4 key购买 nike

我最近在 Debian 7 系统上的本地主机中安装了 MediaWiki。但安装后,我得到了异常Fatal exception of type MWException。我查看了所有报告的错误,但它们不适用于我。

PHP 5.4.4phpmyadmin....

最佳答案

如评论中所写,编辑您的 LocalSettings.php 文件并在最后添加此行:

$wgShowExceptionDetails = true;

尝试重新加载出现该错误的页面。您可能会看到所谓的回溯...这是我的示例:

#0 /Users/user/www/extensions/LocalisationUpdate/LocalisationUpdate.class.php(553): LocalisationUpdate::filename('it')
#1 /Users/user/www/extensions/LocalisationUpdate/LocalisationUpdate.class.php(36): LocalisationUpdate::readFile('it')
#2 [internal function]: LocalisationUpdate::onRecache(Object(LocalisationCache), 'it', Array)
#3 /Users/user/www/includes/Hooks.php(255): call_user_func_array('LocalisationUpd...', Array)
#4 /Users/user/www/includes/GlobalFunctions.php(3883): Hooks::run('LocalisationCac...', Array)
#5 /Users/user/www/includes/cache/LocalisationCache.php(796): wfRunHooks('LocalisationCac...', Array)
#6 /Users/user/www/includes/cache/LocalisationCache.php(426): LocalisationCache->recache('it')
#7 /Users/user/www/includes/cache/LocalisationCache.php(310): LocalisationCache->initLanguage('it')
#8 /Users/user/www/includes/cache/LocalisationCache.php(245): LocalisationCache->loadItem('it', 'fallback')
#9 /Users/user/www/languages/Language.php(3978): LocalisationCache->getItem('it', 'fallback')
#10 /Users/user/www/languages/Language.php(230): Language::getFallbacksFor('it')
#11 /Users/user/www/languages/Language.php(189): Language::newFromCode('it')
#12 /Users/user/www/includes/Setup.php(497): Language::factory('it')
#13 /Users/user/www/includes/WebStart.php(161): require_once('/Users/user/3d...')
#14 /Users/user/www/index.php(55): require('/Users/user/3d...')
#15 {main}

第一行是停止执行的行,导致异常。如果您可以识别问题(在我的例子中是 LocalizationUpdate 扩展),那么修复起来会非常容易。同样,就我而言,再次打开 LocalSettings.php 并注释掉或删除该行就足够了:

require_once( "$IP/extensions/LocalisationUpdate/LocalisationUpdate.php" );

关于mediawiki - MWException 类型的致命异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17824295/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com