Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ResourceLoader module info type error for 0.mediawiki.skinning.content #91

Closed
andre-paulo98 opened this issue Jul 3, 2019 · 9 comments
Labels

Comments

@andre-paulo98
Copy link

Just installed following the steps on https://github.com/cmln/chameleon/blob/master/docs/installation.md
And after the part to add wfLoadSkin( 'chameleon' ); to the LocalSettings.php, I get an error: [XRzDfX8AAQEAACvnjcgAAABK] 2019-07-03 15:02:21: Fatal exception of type MWException

Here's the full stacktrace with $wgShowExceptionDetails = true; on LocalSettings.php

[XRzD@H8AAQEAACxcNz0AAAAC] /index.php/Main_Page MWException from line 352 of /var/www/wiki/public/includes/resourceloader/ResourceLoader.php: ResourceLoader module info type error for module '0.mediawiki.skinning.content': expected ResourceLoaderModule or array (got: NULL)

Backtrace:

#0 /var/www/wiki/public/skins/chameleon/src/Chameleon.php(92): ResourceLoader->register(string, NULL)
#1 /var/www/wiki/public/includes/Hooks.php(174): Skins\Chameleon\Chameleon::Skins\Chameleon\{closure}(ResourceLoader)
#2 /var/www/wiki/public/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL)
#3 /var/www/wiki/public/includes/resourceloader/ResourceLoader.php(263): Hooks::run(string, array)
#4 /var/www/wiki/public/includes/ServiceWiring.php(444): ResourceLoader->__construct(GlobalVarConfig, MediaWiki\Logger\LegacyLogger)
#5 /var/www/wiki/public/includes/libs/services/ServiceContainer.php(430): Wikimedia\Services\ServiceContainer->{closure}(MediaWiki\MediaWikiServices)
#6 /var/www/wiki/public/includes/libs/services/ServiceContainer.php(414): Wikimedia\Services\ServiceContainer->createService(string)
#7 /var/www/wiki/public/includes/MediaWikiServices.php(771): Wikimedia\Services\ServiceContainer->getService(string)
#8 /var/www/wiki/public/includes/cache/localisation/LocalisationCache.php(1037): MediaWiki\MediaWikiServices->getResourceLoader()
#9 /var/www/wiki/public/includes/cache/localisation/LocalisationCache.php(458): LocalisationCache->recache(string)
#10 /var/www/wiki/public/includes/cache/localisation/LocalisationCache.php(375): LocalisationCache->initLanguage(string)
#11 /var/www/wiki/public/includes/cache/localisation/LocalisationCache.php(294): LocalisationCache->loadSubitem(string, string, string)
#12 /var/www/wiki/public/languages/Language.php(2645): LocalisationCache->getSubitem(string, string, string)
#13 /var/www/wiki/public/includes/cache/MessageCache.php(990): Language->getMessage(string)
#14 /var/www/wiki/public/includes/cache/MessageCache.php(948): MessageCache->getMessageForLang(LanguageEn, string, boolean, array)
#15 /var/www/wiki/public/includes/cache/MessageCache.php(890): MessageCache->getMessageFromFallbackChain(LanguageEn, string, boolean)
#16 /var/www/wiki/public/includes/Message.php(1308): MessageCache->get(string, boolean, LanguageEn)
#17 /var/www/wiki/public/includes/Message.php(863): Message->fetchMessage()
#18 /var/www/wiki/public/includes/Message.php(955): Message->toString(string)
#19 /var/www/wiki/public/includes/title/MalformedTitleException.php(49): Message->text()
#20 /var/www/wiki/public/includes/title/MediaWikiTitleCodec.php(297): MalformedTitleException->__construct(string, string)
#21 /var/www/wiki/public/includes/Title.php(3139): MediaWikiTitleCodec->splitTitleString(string, integer)
#22 /var/www/wiki/public/includes/Title.php(372): Title->secureAndSplit()
#23 /var/www/wiki/public/includes/Title.php(316): Title::newFromTextThrow(string, integer)
#24 /var/www/wiki/public/includes/user/User.php(1258): Title::newFromText(string, integer)
#25 /var/www/wiki/public/includes/user/User.php(589): User::getCanonicalName(string, string)
#26 /var/www/wiki/public/includes/Block.php(1659): User::newFromName(string)
#27 /var/www/wiki/public/includes/Block.php(1754): Block::parseTarget(string)
#28 /var/www/wiki/public/includes/Block.php(153): Block->setTarget(string)
#29 /var/www/wiki/public/includes/Block.php(1418): Block->__construct()
#30 /var/www/wiki/public/includes/user/User.php(1860): Block::newFromTarget(User, NULL, boolean)
#31 /var/www/wiki/public/includes/user/User.php(2290): User->getBlockedStatus(boolean)
#32 /var/www/wiki/public/includes/user/User.php(2279): User->getBlock(boolean)
#33 /var/www/wiki/public/includes/user/User.php(1384): User->isBlocked()
#34 /var/www/wiki/public/includes/user/User.php(441): User->loadFromSession()
#35 /var/www/wiki/public/includes/user/User.php(2458): User->load()
#36 /var/www/wiki/public/includes/MediaWiki.php(554): User->getName()
#37 /var/www/wiki/public/includes/MediaWiki.php(513): MediaWiki->setDBProfilingAgent()
#38 /var/www/wiki/public/index.php(42): MediaWiki->run()
#39 {main}
@tosfos
Copy link

tosfos commented Jul 10, 2019

We got this issue with MediaWiki 1.33. Chameleon 1.7.1 works.

@andre-paulo98
Copy link
Author

So in your case you changed on composer.local.json the version from ~2.0 to 1.7.1 ? @tosfos

@emesscee
Copy link

I have the same issue with MediaWiki 1.33.0. Not want to go back to Chameleon 1.7.1, and I went back to MW-1.32.2.

@s7eph4n s7eph4n changed the title MWException after installation ResourceLoader module info type error for 0.mediawiki.skinning.content Jul 11, 2019
@s7eph4n s7eph4n added the bug label Jul 11, 2019
@s7eph4n s7eph4n reopened this Jul 12, 2019
@s7eph4n
Copy link
Contributor

s7eph4n commented Jul 12, 2019

I checked in a fix. Would be great if somebody could install the latest master and confirm that it actually works.

(I think this bug affects MW 1.33 specifically. MW 1.32 and 1.34 should be ok.)

@andre-paulo98
Copy link
Author

Master seems to be working with 1.33

@mjskier
Copy link

mjskier commented Jul 12, 2019

It works for me too (as in "the main page renders instead of just giving me a fatal exception")

@andre-paulo98
Copy link
Author

Seems to be fully working on my end @mjskier
You have the skin active?

@emesscee
Copy link

I just tested it with MW 1.33.0 on my server. It indeed works!

@s7eph4n
Copy link
Contributor

s7eph4n commented Jul 15, 2019

Thanks for testing!

@s7eph4n s7eph4n closed this as completed Jul 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants