Topic on Project:Support desk

Jump to navigation Jump to search

MWException from line 357 - ***/includes/resourceloader/ResourceLoader.php: ResourceLoader module info type error for module '0': expected ResourceLoaderModule or array (got: NULL)

3
Summary by AhmadF.Cheema

Missing resources directory.

96.250.0.88 (talkcontribs)

Hey guys,


I just spent the day trying to upgrade my mediawiki from 1.27 to 1.32, and after a ton of troubleshooting I'm now stuck. I had to upgrade my server to use PHP 7.2, force my ssh to do likewise by calling the binary files because it was stuck using version 4.something, but it seems like the server itself is using the right PHP version, although when I try to load mydomain.com/mw-config/index.php it doesn't seem to have any styling or functionality, almost as if the php isn't working properly, and when I try to load most of the main pages I get this error:


MediaWiki internal error.

Original exception: [XOSbF0rQO3cAANkY4XkAAAAI] /Main_Page MWException from line 357 of /homepages/24/d******/htdocs/mymainwikiwiki/includes/resourceloader/ResourceLoader.php: ResourceLoader module info type error for module '0': expected ResourceLoaderModule or array (got: NULL)

Backtrace:

#0 /homepages/24/d******/htdocs/mymainwikiwiki/includes/resourceloader/ResourceLoader.php(260): ResourceLoader->register(integer)

#1 /homepages/24/d******/htdocs/mymainwikiwiki/includes/OutputPage.php(3271): ResourceLoader->__construct(GlobalVarConfig, MediaWiki\Logger\LegacyLogger)

#2 /homepages/24/d******/htdocs/mymainwikiwiki/includes/OutputPage.php(3052): OutputPage->getResourceLoader()

#3 /homepages/24/d******/htdocs/mymainwikiwiki/includes/OutputPage.php(3096): OutputPage->getRlClientContext()

#4 /homepages/24/d******/htdocs/mymainwikiwiki/includes/OutputPage.php(3318): OutputPage->getRlClient()

#5 /homepages/24/d******/htdocs/mymainwikiwiki/includes/skins/Skin.php(681): OutputPage->getBottomScripts()

#6 /homepages/24/d******/htdocs/mymainwikiwiki/includes/skins/SkinTemplate.php(469): Skin->bottomScripts()

#7 /homepages/24/d******/htdocs/mymainwikiwiki/includes/skins/SkinTemplate.php(225): SkinTemplate->prepareQuickTemplate()

#8 /homepages/24/d******/htdocs/mymainwikiwiki/includes/OutputPage.php(2706): SkinTemplate->outputPage()

#9 /homepages/24/d******/htdocs/mymainwikiwiki/includes/MediaWiki.php(867): OutputPage->output(boolean)

#10 /homepages/24/d******/htdocs/mymainwikiwiki/includes/MediaWiki.php(879): MediaWiki->{closure}()

#11 /homepages/24/d******/htdocs/mymainwikiwiki/includes/MediaWiki.php(517): MediaWiki->main()

#12 /homepages/24/d******/htdocs/mymainwikiwiki/index.php(42): MediaWiki->run()

#13 {main}

Exception caught inside exception handler: [XOSbF0rQO3cAANkY4XkAAAAI] /Main_Page MWException from line 357 of /homepages/24/d******/htdocs/mymainwikiwiki/includes/resourceloader/ResourceLoader.php: ResourceLoader module info type error for module '0': expected ResourceLoaderModule or array (got: NULL)

Backtrace:

#0 /homepages/24/d******/htdocs/mymainwikiwiki/includes/resourceloader/ResourceLoader.php(260): ResourceLoader->register(integer)

#1 /homepages/24/d******/htdocs/mymainwikiwiki/includes/OutputPage.php(3271): ResourceLoader->__construct(GlobalVarConfig, MediaWiki\Logger\LegacyLogger)

#2 /homepages/24/d******/htdocs/mymainwikiwiki/includes/OutputPage.php(3052): OutputPage->getResourceLoader()

#3 /homepages/24/d******/htdocs/mymainwikiwiki/includes/OutputPage.php(3096): OutputPage->getRlClientContext()

#4 /homepages/24/d******/htdocs/mymainwikiwiki/includes/OutputPage.php(3318): OutputPage->getRlClient()

#5 /homepages/24/d******/htdocs/mymainwikiwiki/includes/skins/Skin.php(681): OutputPage->getBottomScripts()

#6 /homepages/24/d******/htdocs/mymainwikiwiki/includes/skins/SkinTemplate.php(469): Skin->bottomScripts()

#7 /homepages/24/d******/htdocs/mymainwikiwiki/includes/skins/SkinTemplate.php(225): SkinTemplate->prepareQuickTemplate()

#8 /homepages/24/d******/htdocs/mymainwikiwiki/includes/OutputPage.php(2706): SkinTemplate->outputPage()

#9 /homepages/24/d******/htdocs/mymainwikiwiki/includes/exception/MWException.php(181): OutputPage->output()

#10 /homepages/24/d******/htdocs/mymainwikiwiki/includes/exception/MWException.php(222): MWException->reportHTML()

#11 /homepages/24/d******/htdocs/mymainwikiwiki/includes/exception/MWExceptionHandler.php(96): MWException->report()

#12 /homepages/24/d******/htdocs/mymainwikiwiki/includes/exception/MWExceptionHandler.php(172): MWExceptionHandler::report(MWException)

#13 /homepages/24/d******/htdocs/mymainwikiwiki/includes/MediaWiki.php(544): MWExceptionHandler::handleException(MWException)

#14 /homepages/24/d******/htdocs/mymainwikiwiki/index.php(42): MediaWiki->run()

#15 {main}


I've tried disabling all extensions and skins in my localsettings.php but that doesn't seem to help anything. I'm at a bit of a loss for what to do next- any help would be appreciated!

AhmadF.Cheema (talkcontribs)
96.250.0.88 (talkcontribs)

Thanks! It turned out that my entire "Resources" folder had disappeared. After replacing it things are now working again!