Page MenuHomePhabricator

All pages on Beta Cluster Wikidata and Commons do not load, "Error: invalid magic word 'translation'"
Closed, ResolvedPublic

Description

E.g. https://commons.wikimedia.beta.wmflabs.org/wiki/File:VisualEditor_Toolbar_Lists_and_indentation-pcd.png:

[W@DGBwpEEj4AAAvbGTMAAAAJ] /wiki/File:VisualEditor_Toolbar_Lists_and_indentation-pcd.png MWException from line 182 of /srv/mediawiki/php-master/includes/MagicWord.php: Error: invalid magic word 'translation'

Backtrace:

#0 /srv/mediawiki/php-master/includes/MagicWordFactory.php(221): MagicWord->load(string)
#1 /srv/mediawiki/php-master/includes/parser/Parser.php(4922): MagicWordFactory->get(string)
#2 /srv/mediawiki/php-master/extensions/Translate/TranslateHooks.php(814): Parser->setFunctionHook(string, string)
#3 /srv/mediawiki/php-master/includes/Hooks.php(174): TranslateHooks::setupTranslateParserFunction(Parser)
#4 /srv/mediawiki/php-master/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL)
#5 /srv/mediawiki/php-master/includes/parser/Parser.php(375): Hooks::run(string, array)
#6 /srv/mediawiki/php-master/includes/StubObject.php(112): Parser->firstCallInit()
#7 /srv/mediawiki/php-master/includes/StubObject.php(138): StubObject->_call(string, array)
#8 /srv/mediawiki/php-master/includes/cache/MessageCache.php(1193): StubObject->__call(string, array)
#9 /srv/mediawiki/php-master/includes/cache/MessageCache.php(1224): MessageCache->getParser()
#10 /srv/mediawiki/php-master/includes/Message.php(1254): MessageCache->parse(string, Title, boolean, boolean, LanguageEn)
#11 /srv/mediawiki/php-master/includes/Message.php(878): Message->parseText(string)
#12 /srv/mediawiki/php-master/includes/Message.php(931): Message->toString(string)
#13 /srv/mediawiki/php-master/includes/page/ImagePage.php(405): Message->parse()
#14 /srv/mediawiki/php-master/includes/page/ImagePage.php(135): ImagePage->openShowImage()
#15 /srv/mediawiki/php-master/includes/actions/ViewAction.php(68): ImagePage->view()
#16 /srv/mediawiki/php-master/includes/MediaWiki.php(501): ViewAction->show()
#17 /srv/mediawiki/php-master/includes/MediaWiki.php(294): MediaWiki->performAction(ImagePage, Title)
#18 /srv/mediawiki/php-master/includes/MediaWiki.php(862): MediaWiki->performRequest()
#19 /srv/mediawiki/php-master/includes/MediaWiki.php(517): MediaWiki->main()
#20 /srv/mediawiki/php-master/index.php(42): MediaWiki->run()
#21 /srv/mediawiki/w/index.php(3): include(string)
#22 {main}

I'm guessing this was caused by the initial patches to move the Translate extension to have an extension.json file, and Wikibase magically requiring it to be loaded earlier, or something similar.

Event Timeline

Addshore updated the task description. (Show Details)Nov 5 2018, 10:41 PM
Jdforrester-WMF renamed this task from WBMI broken, throws 'Argument 2 passed to Wikibase\MediaInfo\WikibaseMediaInfoHooks::__invoke() must implement interface Wikibase\DataModel\Services\Lookup\LabelDescriptionLookup, Wikibase\LanguageFallbackChain given' to All pages on Beta Cluster Wikidata and Commons do not load, "Error: invalid magic word 'translation'".Nov 5 2018, 10:41 PM
Jdforrester-WMF triaged this task as Unbreak Now! priority.
Jdforrester-WMF updated the task description. (Show Details)
Restricted Application added subscribers: Liuxinyu970226, TerraCodes. · View Herald TranscriptNov 5 2018, 10:41 PM

Given the likelihood that this will break Wikidata.org entirely, I'm declaring this a train blocker until proven otherwise.

Adam is provisionally reverting cf3622ce39e780c7066274ada15a79fe440a298f and 647eb452f541620a4dc69a55ec32824f63d4e6e4 in Wikibase / WikibaseLexeme to see if this fixes it.

Adam is provisionally reverting cf3622ce39e780c7066274ada15a79fe440a298f and 647eb452f541620a4dc69a55ec32824f63d4e6e4 in Wikibase / WikibaseLexeme to see if this fixes it.

I believe this resolved the initial exception that we saw but not the one now described in this ticket.

Change 471882 had a related patch set uploaded (by Jforrester; owner: Jforrester):
[mediawiki/extensions/Translate@master] Follow-up 57083b1: Don't move the magic word over just yet

https://gerrit.wikimedia.org/r/471882

Change 471883 had a related patch set uploaded (by Jforrester; owner: Jforrester):
[mediawiki/extensions/Translate@master] Revert "Move i18n files to extension.json"

https://gerrit.wikimedia.org/r/471883

Change 471882 abandoned by Jforrester:
Follow-up 57083b1: Don't move the magic word over just yet

Reason:
Apparently we just have to revert. Lame.

https://gerrit.wikimedia.org/r/471882

Change 471883 merged by jenkins-bot:
[mediawiki/extensions/Translate@master] Revert "Move i18n files to extension.json"

https://gerrit.wikimedia.org/r/471883