Page MenuHomePhabricator

Wikitech static: InvalidArgumentException from load.php and some content pages show Class 'ScopedCallback' not found
Closed, ResolvedPublic

Description

Browsed to https://wikitech-static.wikimedia.org today and noticed that the logo isn't shown. Opening the chrome dev console showed this stack trace

[027112be4dfadc1763f66e27] /w/load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector   InvalidArgumentException from line 87 of /srv/mediawiki/w/includes/resourceloader/ResourceLoaderImage.php: File type for different image files of 'monobook' not the same in module 'ext.echo.badgeicons'
Backtrace:
#0 /srv/mediawiki/w/includes/resourceloader/ResourceLoaderImageModule.php(274): ResourceLoaderImage->__construct(string, string, array, string, array, NULL)
#1 /srv/mediawiki/w/includes/resourceloader/ResourceLoaderImageModule.php(439): ResourceLoaderImageModule->getImages(ResourceLoaderContext)
#2 /srv/mediawiki/w/includes/resourceloader/ResourceLoaderImageModule.php(426): ResourceLoaderImageModule->getFileHashes(ResourceLoaderContext)
#3 /srv/mediawiki/w/includes/resourceloader/ResourceLoaderModule.php(815): ResourceLoaderImageModule->getDefinitionSummary(ResourceLoaderContext)
#4 /srv/mediawiki/w/includes/resourceloader/ResourceLoaderStartUpModule.php(257): ResourceLoaderModule->getVersionHash(ResourceLoaderContext)
#5 /srv/mediawiki/w/includes/resourceloader/ResourceLoaderStartUpModule.php(435): ResourceLoaderStartUpModule->getModuleRegistrations(ResourceLoaderContext)
#6 /srv/mediawiki/w/includes/resourceloader/ResourceLoaderModule.php(708): ResourceLoaderStartUpModule->getScript(ResourceLoaderContext)
#7 /srv/mediawiki/w/includes/resourceloader/ResourceLoaderModule.php(675): ResourceLoaderModule->buildContent(ResourceLoaderContext)
#8 /srv/mediawiki/w/includes/resourceloader/ResourceLoaderModule.php(812): ResourceLoaderModule->getModuleContent(ResourceLoaderContext)
#9 /srv/mediawiki/w/includes/resourceloader/ResourceLoader.php(660): ResourceLoaderModule->getVersionHash(ResourceLoaderContext)
#10 [internal function]: ResourceLoader->{closure}(string)
#11 /srv/mediawiki/w/includes/resourceloader/ResourceLoader.php(672): array_map(Closure, array)
#12 /srv/mediawiki/w/includes/resourceloader/ResourceLoader.php(753): ResourceLoader->getCombinedVersion(ResourceLoaderContext, array)
#13 /srv/mediawiki/w/load.php(51): ResourceLoader->respond(ResourceLoaderContext)
#14 {main}

Is this supposed to show the stacktrace? I thought wikimedia wikis aren't supposed to show stacktraces by default?

Event Timeline

Mainframe98 triaged this task as Unbreak Now! priority.Mar 7 2019, 9:48 AM

There's more trouble. Trying to view my user page shows

[a68e10a176344dc4382e9cb0] /wiki/User:Mainframe98 Error from line 226 of /srv/mediawiki/w/extensions/Scribunto/engines/LuaCommon/LuaCommon.php: Class 'ScopedCallback' not found

Backtrace:

#0 /srv/mediawiki/w/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(240): Scribunto_LuaEngine->setupCurrentFrames(PPTemplateFrame_DOM)
#1 /srv/mediawiki/w/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(901): Scribunto_LuaEngine->executeModule(Scribunto_LuaStandaloneInterpreterFunction, string, PPTemplateFrame_DOM)
#2 /srv/mediawiki/w/extensions/Scribunto/common/Hooks.php(128): Scribunto_LuaModule->invoke(string, PPTemplateFrame_DOM)
#3 /srv/mediawiki/w/includes/parser/Parser.php(3493): ScribuntoHooks::invokeHook(Parser, PPTemplateFrame_DOM, array)
#4 /srv/mediawiki/w/includes/parser/Parser.php(3200): Parser->callParserFunction(PPTemplateFrame_DOM, string, array)
#5 /srv/mediawiki/w/includes/parser/Preprocessor_DOM.php(1279): Parser->braceSubstitution(array, PPTemplateFrame_DOM)
#6 /srv/mediawiki/w/includes/parser/Parser.php(3374): PPFrame_DOM->expand(DOMElement)
#7 /srv/mediawiki/w/includes/parser/Preprocessor_DOM.php(1279): Parser->braceSubstitution(array, PPTemplateFrame_DOM)
#8 /srv/mediawiki/w/includes/parser/Preprocessor_DOM.php(1729): PPFrame_DOM->expand(DOMElement, integer)
#9 /srv/mediawiki/w/includes/parser/Parser.php(3371): PPTemplateFrame_DOM->cachedExpand(string, PPNode_DOM)
#10 /srv/mediawiki/w/includes/parser/Preprocessor_DOM.php(1279): Parser->braceSubstitution(array, PPFrame_DOM)
#11 /srv/mediawiki/w/includes/parser/Parser.php(3014): PPFrame_DOM->expand(DOMElement, integer)
#12 /srv/mediawiki/w/includes/parser/Parser.php(1350): Parser->replaceVariables(string)
#13 /srv/mediawiki/w/includes/parser/Parser.php(476): Parser->internalParse(string)
#14 /srv/mediawiki/w/includes/content/WikitextContent.php(341): Parser->parse(string, Title, ParserOptions, boolean, boolean, integer)
#15 /srv/mediawiki/w/includes/content/AbstractContent.php(517): WikitextContent->fillParserOutput(Title, integer, ParserOptions, boolean, ParserOutput)
#16 /srv/mediawiki/w/includes/Revision/RenderedRevision.php(242): AbstractContent->getParserOutput(Title, integer, ParserOptions, boolean)
#17 /srv/mediawiki/w/includes/Revision/RenderedRevision.php(211): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached(WikitextContent, boolean)
#18 /srv/mediawiki/w/includes/Revision/RevisionRenderer.php(175): MediaWiki\Revision\RenderedRevision->getSlotParserOutput(string)
#19 /srv/mediawiki/w/includes/Revision/RevisionRenderer.php(128): MediaWiki\Revision\RevisionRenderer->combineSlotOutput(MediaWiki\Revision\RenderedRevision, array)
#20 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}(MediaWiki\Revision\RenderedRevision, array)
#21 /srv/mediawiki/w/includes/Revision/RenderedRevision.php(175): call_user_func(Closure, MediaWiki\Revision\RenderedRevision, array)
#22 /srv/mediawiki/w/includes/poolcounter/PoolWorkArticleView.php(194): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()
#23 /srv/mediawiki/w/includes/poolcounter/PoolCounterWork.php(123): PoolWorkArticleView->doWork()
#24 /srv/mediawiki/w/includes/page/Article.php(774): PoolCounterWork->execute()
#25 /srv/mediawiki/w/includes/actions/ViewAction.php(68): Article->view()
#26 /srv/mediawiki/w/includes/MediaWiki.php(501): ViewAction->show()
#27 /srv/mediawiki/w/includes/MediaWiki.php(294): MediaWiki->performAction(Article, Title)
#28 /srv/mediawiki/w/includes/MediaWiki.php(860): MediaWiki->performRequest()
#29 /srv/mediawiki/w/includes/MediaWiki.php(517): MediaWiki->main()
#30 /srv/mediawiki/w/index.php(42): MediaWiki->run()
#31 {main}

Also shown on pages such as Help:Contents.

Restricted Application added subscribers: Liuxinyu970226, TerraCodes. · View Herald TranscriptMar 7 2019, 9:48 AM
Mainframe98 renamed this task from Wikitech static: InvalidArgumentException from load.php to Wikitech static: InvalidArgumentException from load.php and some content pages show Class 'ScopedCallback' not found.Mar 7 2019, 9:52 AM

I do not think that this unbreak now if it only happens on https://wikitech-static.wikimedia.org/

Anomie added a subscriber: Anomie.

According to https://wikitech-static.wikimedia.org/wiki/Special:Version. the wiki is running MediaWiki 1.32 and Scribunto with git hash a665621, which is the version for MediaWiki 1.28. That's not supported. Someone needs to upgrade the extensions on wikitech-static to 1.32 versions to match the version of MediaWiki.

bd808 lowered the priority of this task from Unbreak Now! to High.Mar 8 2019, 12:47 AM
ArielGlenn closed this task as Resolved.Fri, Jun 7, 4:08 PM
ArielGlenn claimed this task.
ArielGlenn added a subscriber: ArielGlenn.

These are fixed as of today, see T204840