Page MenuHomePhabricator

Error: Call to a member function getPrefixedText() on null
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   Error: Call to a member function getPrefixedText() on null
exception.trace
from /srv/mediawiki/php-1.40.0-wmf.5/extensions/ContentTranslation/includes/ActionApi/ApiSectionTranslationSave.php(113)
#0 /srv/mediawiki/php-1.40.0-wmf.5/includes/api/ApiMain.php(1900): ContentTranslation\ActionApi\ApiSectionTranslationSave->execute()
#1 /srv/mediawiki/php-1.40.0-wmf.5/includes/api/ApiMain.php(875): ApiMain->executeAction()
#2 /srv/mediawiki/php-1.40.0-wmf.5/includes/api/ApiMain.php(846): ApiMain->executeActionWithErrorHandling()
#3 /srv/mediawiki/php-1.40.0-wmf.5/api.php(90): ApiMain->execute()
#4 /srv/mediawiki/php-1.40.0-wmf.5/api.php(45): wfApiMain()
#5 /srv/mediawiki/w/api.php(3): require(string)
#6 {main}
Impact

Only one occurrence apparently. Something is off by one in ContentTranslation

Notes

Event Timeline

Change 844927 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/extensions/ContentTranslation@master] SX save api: Die with an error when target title cannot be created

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

Nikerabbit moved this task from Needs Triage to Bugs on the ContentTranslation board.

Change 844927 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] SX save api: Die with an error when target title cannot be created

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

Test status: QA PASS

Able to use the CX tool without observing the above named error

Since this patch is only a backend fix for an issue that only occasionally occurred, it is very difficult to be properly verified by the QA. Since we have added the proper check to avoid the error, and the error has not appeared again in Logstash, we can consider it done.