So it broke again. I turned on debugging as suggested by John Doe and got the following error:
Notice: Constant MEDIAWIKI already defined in C:\inetpub\wwwroot\mediawiki\includes\WebStart.php on line 71
Notice: Undefined variable: wgRequest in C:\inetpub\wwwroot\mediawiki\load.php on line 36 Exception encountered, of type "Error" [f9d11c50] /mediawiki/index.php?title=OM-Arch_Wiki:Privacy_policy Error from line 36 of C:\inetpub\wwwroot\mediawiki\load.php: Call to a member function checkUrlExtension() on null Backtrace: #0 C:\inetpub\wwwroot\mediawiki\includes\AutoLoader.php(90): require() #1 [internal function]: AutoLoader::autoload(string) #2 C:\inetpub\wwwroot\mediawiki\includes\actions\WatchAction.php(28): spl_autoload_call(string) #3 C:\inetpub\wwwroot\mediawiki\includes\AutoLoader.php(90): require(string) #4 [internal function]: AutoLoader::autoload(string) #5 C:\inetpub\wwwroot\mediawiki\includes\skins\SkinTemplate.php(1022): spl_autoload_call(string) #6 C:\inetpub\wwwroot\mediawiki\includes\skins\SkinTemplate.php(456): SkinTemplate->buildContentNavigationUrls() #7 C:\inetpub\wwwroot\mediawiki\includes\skins\SkinTemplate.php(240): SkinTemplate->prepareQuickTemplate(OutputPage) #8 C:\inetpub\wwwroot\mediawiki\includes\OutputPage.php(2317): SkinTemplate->outputPage() #9 C:\inetpub\wwwroot\mediawiki\includes\MediaWiki.php(722): OutputPage->output() #10 C:\inetpub\wwwroot\mediawiki\includes\MediaWiki.php(508): MediaWiki->main() #11 C:\inetpub\wwwroot\mediawiki\index.php(41): MediaWiki->run() #12 {main}
The weird thing is I wasn't doing anything when it broke on the server, like it happened randomly. All i did was click on a link to go to the privacy settings. I restarted the server, clicked on the same link, but now it works fine. I really don't know where to go from here, because I neither know what causes it nor what actually fixes it.
-- View this message in context: http://wikimedia.7.x6.nabble.com/MediaWiki-randomly-throwing-Exception-encou... Sent from the WikiMedia General mailing list archive at Nabble.com.