Page MenuHomePhabricator

Error: Typed property MediaWiki\Extension\Translate\TranslatorInterface\Aid\TTMServerAid::$services must not be accessed before initialization
Closed, ResolvedPublic2 Estimated Story PointsPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   Error: Typed property MediaWiki\Extension\Translate\TranslatorInterface\Aid\TTMServerAid::$services must not be accessed before initialization
exception.trace
from /srv/mediawiki/php-1.43.0-wmf.21/extensions/Translate/src/TranslatorInterface/Aid/TTMServerAid.php(184)
#0 /srv/mediawiki/php-1.43.0-wmf.21/extensions/Translate/src/TranslatorInterface/Aid/TTMServerAid.php(171): MediaWiki\Extension\Translate\TranslatorInterface\Aid\TTMServerAid->getQueryableServices()
#1 /srv/mediawiki/php-1.43.0-wmf.21/extensions/Translate/src/TranslatorInterface/Aid/TTMServerAid.php(52): MediaWiki\Extension\Translate\TranslatorInterface\Aid\TTMServerAid->getWebServices()
#2 /srv/mediawiki/php-1.43.0-wmf.21/extensions/Translate/src/TranslatorInterface/Aid/TranslationAidsActionApi.php(90): MediaWiki\Extension\Translate\TranslatorInterface\Aid\TTMServerAid->populateQueries()
#3 /srv/mediawiki/php-1.43.0-wmf.21/includes/api/ApiMain.php(1948): MediaWiki\Extension\Translate\TranslatorInterface\Aid\TranslationAidsActionApi->execute()
#4 /srv/mediawiki/php-1.43.0-wmf.21/includes/api/ApiMain.php(926): ApiMain->executeAction()
#5 /srv/mediawiki/php-1.43.0-wmf.21/includes/api/ApiMain.php(897): ApiMain->executeActionWithErrorHandling()
#6 /srv/mediawiki/php-1.43.0-wmf.21/includes/api/ApiEntryPoint.php(153): ApiMain->execute()
#7 /srv/mediawiki/php-1.43.0-wmf.21/includes/MediaWikiEntryPoint.php(200): MediaWiki\Api\ApiEntryPoint->execute()
#8 /srv/mediawiki/php-1.43.0-wmf.21/api.php(44): MediaWiki\MediaWikiEntryPoint->run()
#9 /srv/mediawiki/w/api.php(3): require(string)
#10 {main}
Impact
Notes

Showing up at a low rate (~16/15 minutes) since rolling 1.43.0-wmf.21 to group0 today.

Event Timeline

Jdforrester-WMF triaged this task as Unbreak Now! priority.Sep 3 2024, 6:45 PM
Jdforrester-WMF subscribed.

Train blocker; this makes viewing (all?) translate pages fatal. Example URL: https://www.mediawiki.org/wiki/Help:RestSandbox

Change #1070314 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/extensions/Translate@master] TTMServerAid: Tell PHP that we're OK with $services starting out null

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

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

[mediawiki/extensions/Translate@wmf/1.43.0-wmf.21] TTMServerAid: Tell PHP that we're OK with $services starting out null

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

Change #1070314 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] TTMServerAid: Tell PHP that we're OK with $services starting out null

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

Change #1070370 merged by jenkins-bot:

[mediawiki/extensions/Translate@wmf/1.43.0-wmf.21] TTMServerAid: Tell PHP that we're OK with $services starting out null

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

Mentioned in SAL (#wikimedia-operations) [2024-09-04T07:47:28Z] <kartik@deploy1003> Started scap sync-world: Backport for [[gerrit:1070370|TTMServerAid: Tell PHP that we're OK with $services starting out null (T373921)]]

Mentioned in SAL (#wikimedia-operations) [2024-09-04T07:49:56Z] <kartik@deploy1003> kartik, abi: Backport for [[gerrit:1070370|TTMServerAid: Tell PHP that we're OK with $services starting out null (T373921)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2024-09-04T07:56:51Z] <kartik@deploy1003> Finished scap sync-world: Backport for [[gerrit:1070370|TTMServerAid: Tell PHP that we're OK with $services starting out null (T373921)]] (duration: 09m 23s)

hashar assigned this task to abi_.
hashar subscribed.

I went to that URL after the patch has been deployed and the error no more shows up in the log.