Error
MediaWiki version: 1.35.0-wmf.26
Call to undefined method WikiPageMessageGroup::getKeys()
Impact
Happening spikily, roughly once every few minutes.
Exports of message groups for offline translation is broken.
MediaWiki version: 1.35.0-wmf.26
Call to undefined method WikiPageMessageGroup::getKeys()
Happening spikily, roughly once every few minutes.
Exports of message groups for offline translation is broken.
#0 /srv/mediawiki/php-1.35.0-wmf.26/extensions/Translate/specials/SpecialExportTranslations.php(45): SpecialExportTranslations->checkInput() #1 /srv/mediawiki/php-1.35.0-wmf.26/includes/specialpage/SpecialPage.php(575): SpecialExportTranslations->execute(NULL) #2 /srv/mediawiki/php-1.35.0-wmf.26/includes/specialpage/SpecialPageFactory.php(618): SpecialPage->run(NULL) #3 /srv/mediawiki/php-1.35.0-wmf.26/includes/MediaWiki.php(299): MediaWiki\SpecialPage\SpecialPageFactory->executePath(Title, RequestContext) #4 /srv/mediawiki/php-1.35.0-wmf.26/includes/MediaWiki.php(973): MediaWiki->performRequest() #5 /srv/mediawiki/php-1.35.0-wmf.26/includes/MediaWiki.php(535): MediaWiki->main() #6 /srv/mediawiki/php-1.35.0-wmf.26/index.php(47): MediaWiki->run() #7 /srv/mediawiki/w/index.php(3): require(string) #8 {main}
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | Release | jeena | T247774 1.35.0-wmf.27 deployment blockers | ||
Resolved | PRODUCTION ERROR | Nikerabbit | T249258 Call to undefined method WikiPageMessageGroup::getKeys() |
New in wmf.26.
Happens after:
// Do not show this error if no/invalid format is specified for translatable // page groups as we can show a textarea box containing the translation page text // (however it's not currently supported for other groups). if ( !$msgGroup instanceof WikiPageMessageGroup && !in_array( $this->format, self::$validFormats ) ) { $status->fatal( 'translate-export-invalid-format' ); }
Looks like this was caused by rETRA7492129cf85b: Special:ExportTranslations: Disallow exporting huge groups – @Nikerabbit, is this working on TWN?
Yep the issue is also affecting translatewiki.net. I failed to think it would affect production as well. I made a patch for it already: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Translate/+/585444 - alternatively reverting the patch you mention is also okay.
Change 585444 had a related patch set uploaded (by Nikerabbit; owner: Nikerabbit):
[mediawiki/extensions/Translate@master] MessageGroup: Add getKeys method
Change 585583 had a related patch set uploaded (by Jforrester; owner: Jforrester):
[mediawiki/extensions/Translate@master] Revert "Special:ExportTranslations: Disallow exporting huge groups"
Change 585584 had a related patch set uploaded (by Jforrester; owner: Jforrester):
[mediawiki/extensions/Translate@wmf/1.35.0-wmf.26] Revert "Special:ExportTranslations: Disallow exporting huge groups"
Change 585584 merged by jenkins-bot:
[mediawiki/extensions/Translate@wmf/1.35.0-wmf.26] Revert "Special:ExportTranslations: Disallow exporting huge groups"
Mentioned in SAL (#wikimedia-operations) [2020-04-02T19:53:44Z] <jforrester@deploy1001> Synchronized php-1.35.0-wmf.26/extensions/Translate/specials/SpecialExportTranslations.php: T249258: Revert 'Special:ExportTranslations: Disallow exporting huge groups' (duration: 00m 59s)
Change 585444 merged by jenkins-bot:
[mediawiki/extensions/Translate@master] MessageGroup: Add getKeys method
Change 585583 abandoned by Nikerabbit:
Revert "Special:ExportTranslations: Disallow exporting huge groups"
Reason:
Not needed since https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Translate/ /585444 was merged.
Change 586516 had a related patch set uploaded (by Nikerabbit; owner: Nikerabbit):
[mediawiki/extensions/Translate@master] Really fix fatals on Special:ExportTranslations
Change 586516 merged by jenkins-bot:
[mediawiki/extensions/Translate@master] Really fix fatals on Special:ExportTranslations