Page MenuHomePhabricator

Internal error when trying to mark a page for translation not yet in translation system
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   Error: Call to a member function makeGroupKeys() on null
exception.trace
from /srv/mediawiki/php-1.43.0-wmf.4/extensions/Translate/src/PageTranslation/TranslatablePageMarker.php(324)
#0 /srv/mediawiki/php-1.43.0-wmf.4/extensions/Translate/src/PageTranslation/PageTranslationSpecialPage.php(295): MediaWiki\Extension\Translate\PageTranslation\TranslatablePageMarker->markForTranslation(MediaWiki\Extension\Translate\PageTranslation\TranslatablePageMarkOperation, MediaWiki\Extension\Translate\PageTranslation\TranslatablePageSettings, MediaWiki\User\User)
#1 /srv/mediawiki/php-1.43.0-wmf.4/extensions/Translate/src/PageTranslation/PageTranslationSpecialPage.php(157): MediaWiki\Extension\Translate\PageTranslation\PageTranslationSpecialPage->onActionMark(MediaWiki\Title\Title, integer)
#2 /srv/mediawiki/php-1.43.0-wmf.4/includes/specialpage/SpecialPage.php(719): MediaWiki\Extension\Translate\PageTranslation\PageTranslationSpecialPage->execute(NULL)
#3 /srv/mediawiki/php-1.43.0-wmf.4/includes/specialpage/SpecialPageFactory.php(1672): MediaWiki\SpecialPage\SpecialPage->run(NULL)
#4 /srv/mediawiki/php-1.43.0-wmf.4/includes/actions/ActionEntryPoint.php(502): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, MediaWiki\Context\RequestContext)
#5 /srv/mediawiki/php-1.43.0-wmf.4/includes/actions/ActionEntryPoint.php(145): MediaWiki\Actions\ActionEntryPoint->performRequest()
#6 /srv/mediawiki/php-1.43.0-wmf.4/includes/MediaWikiEntryPoint.php(199): MediaWiki\Actions\ActionEntryPoint->execute()
#7 /srv/mediawiki/php-1.43.0-wmf.4/index.php(58): MediaWiki\MediaWikiEntryPoint->run()
#8 /srv/mediawiki/w/index.php(3): require(string)
#9 {main}
Impact

Pages not previously marked for translation cannot be marked for translation.

Notes

Steps to replicate the issue (include links if applicable):

  • Set up a page with Translate extension code
  • Attempt to mark for translation

What happens?:
Internal error:

Screenshot 2024-05-09 at 1.55.53 AM.png (288×1 px, 35 KB)

What should have happened instead?:
Completion of setting up for translation.

Other information (browser name/version, screenshots, etc.):
Attempted in both Firefox and Safari for these two pages with same result:

Does not appear to be a problem with existing pages:

Event Timeline

Varnent triaged this task as Unbreak Now! priority.May 9 2024, 5:58 AM
Varnent renamed this task from Internal error when trying to mark a page on Governance Wiki for translation to Internal error when trying to mark a page for translation not yet in translation system.May 9 2024, 6:02 AM
Varnent updated the task description. (Show Details)
Nikerabbit changed the subtype of this task from "Bug Report" to "Production Error".May 9 2024, 6:03 AM

Thank you, @Nikerabbit, for quick response. Greatly appreciated! :)

I did wait like an hour between first seeing error, trying again, and reporting. So does not appear to be "momentary blip" - although could obviously be some sort of temporary server-side issue (although - sort of seems unlikely?)

Change #1029438 had a related patch set uploaded (by Nikerabbit; author: Nikerabbit):

[mediawiki/extensions/Translate@master] Fix error when marking a new page for translations

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

Change #1029257 had a related patch set uploaded (by Abijeet Patro; author: Nikerabbit):

[mediawiki/extensions/Translate@wmf/1.43.0-wmf.4] Fix error when marking a new page for translations

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

Change #1029438 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] Fix error when marking a new page for translations

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

Change #1029257 merged by jenkins-bot:

[mediawiki/extensions/Translate@wmf/1.43.0-wmf.4] Fix error when marking a new page for translations

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

Mentioned in SAL (#wikimedia-operations) [2024-05-09T07:43:03Z] <zabe@deploy1002> Started scap: Backport for [[gerrit:1029257|Fix error when marking a new page for translations (T364522)]]

Mentioned in SAL (#wikimedia-operations) [2024-05-09T07:45:42Z] <zabe@deploy1002> zabe and abi: Backport for [[gerrit:1029257|Fix error when marking a new page for translations (T364522)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2024-05-09T08:02:32Z] <zabe@deploy1002> Finished scap: Backport for [[gerrit:1029257|Fix error when marking a new page for translations (T364522)]] (duration: 19m 28s)

abi_ subscribed.

Hi @Varnent, thanks for reporting this issue. A fix has been deployed, and I verified from my side that it works. Let me know if you are still blocked.