Topic on Project:Support desk

MediaWiki internal error.

8
R2D2XDZ1 (talkcontribs)

Hi, I am installing mediawiki 1.30.0 in a webserver and I got a problem when I add the LocalSettings.php

I was configured the installation good and when I download the LocalSettings.php and add to the server, the website show this:

--

MediaWiki internal error.

Original exception: [46a8f0d2d0b93415cd011235] 2018-05-12 19:51:58: Fatal exception of type "MWException"

Exception caught inside exception handler.

Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information.

--

I was set $wgShowExceptionDetails to show detailed debugging information and then the website show this:

-

MediaWiki internal error.

Original exception: [5888fe7966d3fdf5d8c131f7] /index.php?title=Main_Page MWException from line 361 of /home/mywebsite/public_html/includes/resourceloader/ResourceLoader.php: ResourceLoader module info type error for module '0': expected ResourceLoaderModule or array (got: NULL)

Backtrace:

#0 /home/mywebsite/public_html/includes/resourceloader/ResourceLoader.php(264): ResourceLoader->register(boolean)

#1 /home/mywebsite/public_html/includes/OutputPage.php(2993): ResourceLoader->__construct(GlobalVarConfig, MediaWiki\Logger\LegacyLogger)

#2 /home/mywebsite/public_html/includes/OutputPage.php(2792): OutputPage->getResourceLoader()

#3 /home/mywebsite/public_html/includes/OutputPage.php(2812): OutputPage->getRlClientContext()

#4 /home/mywebsite/public_html/includes/OutputPage.php(3052): OutputPage->getRlClient()

#5 /home/mywebsite/public_html/includes/skins/Skin.php(644): OutputPage->getBottomScripts()

#6 /home/mywebsite/public_html/includes/skins/SkinTemplate.php(485): Skin->bottomScripts()

#7 /home/mywebsite/public_html/includes/skins/SkinTemplate.php(249): SkinTemplate->prepareQuickTemplate()

#8 /home/mywebsite/public_html/includes/OutputPage.php(2442): SkinTemplate->outputPage()

#9 /home/mywebsite/public_html/includes/MediaWiki.php(858): OutputPage->output(boolean)

#10 /home/mywebsite/public_html/includes/MediaWiki.php(870): MediaWiki->{closure}()

#11 /home/mywebsite/public_html/includes/MediaWiki.php(523): MediaWiki->main()

#12 /home/mywebsite/public_html/index.php(43): MediaWiki->run()

#13 {main}

Exception caught inside exception handler: [5888fe7966d3fdf5d8c131f7] /index.php?title=Main_Page MWException from line 361 of /home/mywebsite/public_html/includes/resourceloader/ResourceLoader.php: ResourceLoader module info type error for module '0': expected ResourceLoaderModule or array (got: NULL)

Backtrace:

#0 /home/mywebsite/public_html/includes/resourceloader/ResourceLoader.php(264): ResourceLoader->register(boolean)

#1 /home/mywebsite/public_html/includes/OutputPage.php(2993): ResourceLoader->__construct(GlobalVarConfig, MediaWiki\Logger\LegacyLogger)

#2 /home/mywebsite/public_html/includes/OutputPage.php(2792): OutputPage->getResourceLoader()

#3 /home/mywebsite/public_html/includes/OutputPage.php(2812): OutputPage->getRlClientContext()

#4 /home/mywebsite/public_html/includes/OutputPage.php(3052): OutputPage->getRlClient()

#5 /home/mywebsite/public_html/includes/skins/Skin.php(644): OutputPage->getBottomScripts()

#6 /home/mywebsite/public_html/includes/skins/SkinTemplate.php(485): Skin->bottomScripts()

#7 /home/mywebsite/public_html/includes/skins/SkinTemplate.php(249): SkinTemplate->prepareQuickTemplate()

#8 /home/mywebsite/public_html/includes/OutputPage.php(2442): SkinTemplate->outputPage()

#9 /home/mywebsite/public_html/includes/exception/MWException.php(160): OutputPage->output()

#10 /home/mywebsite/public_html/includes/exception/MWException.php(201): MWException->reportHTML()

#11 /home/mywebsite/public_html/includes/exception/MWExceptionHandler.php(73): MWException->report()

#12 /home/mywebsite/public_html/includes/exception/MWExceptionHandler.php(130): MWExceptionHandler::report(MWException)

#13 /home/mywebsite/public_html/includes/MediaWiki.php(550): MWExceptionHandler::handleException(MWException)

#14 /home/mywebsite/public_html/index.php(43): MediaWiki->run()

#15 {main}

--

What I should do now?

Thanks in advance.

Ciencia Al Poder (talkcontribs)

Did you install any extension or skin? Try to disable all extensions and skin (commenting out all require_once, wfLoadExtension or wfLoadSkin) in LocalSettings to see if the problem is solved, then try to enable one by one to find which one is causing it.

R2D2XDZ1 (talkcontribs)

Hi thanks for your reply.

I search all require_once, wfLoadExtension or wfLoadSkin and I have found only wfLoadSkin:

--

# Enabled skins.

# The following skins were automatically enabled:

wfLoadSkin( 'CologneBlue' );

wfLoadSkin( 'Modern' );

wfLoadSkin( 'MonoBook' );

wfLoadSkin( 'Vector' );

--

I try slove the problem deleting all the skins except vector that is actually in use but then the website show the same error.

--

## Default skin: you can change the default skin. Use the internal symbolic

## names, ie 'vector', 'monobook':

$wgDefaultSkin = "vector";

--

I also found this line on the LocalSettings.php:

--

# Path to the GNU diff3 utility. Used for conflict resolution.

$wgDiff3 = "/usr/bin/diff3";

--

What path should be here? Im not sure if that is the good path.

Thanks again and I hope your reply.

PS: If you talk in spanish, that is better for me :)

Ciencia Al Poder (talkcontribs)

$wgDiff3 no tiene nada que ver.

¿Es una instalación limpia? Yo tengo un wiki en 1.30 y nunca he tenido ese problema. ¿Qué versión de PHP usas?

R2D2XDZ1 (talkcontribs)

Hola, gracias por contestar. Sí, es una instalación limpia y estoy usando la versión de PHP 5.0

AhmadF.Cheema (talkcontribs)
R2D2XDZ1 (talkcontribs)

Sorry, I was talking with my hosting provider and he said me that the PHP we use is 5.5 branch.

AhmadF.Cheema (talkcontribs)

Can you make sure that it is 5.5.9? PHP 5.5.0 – 5.5.8 might cause some issues.

Reply to "MediaWiki internal error."