Page MenuHomePhabricator

TypeError: Argument 2 passed to ContentTranslation\Store\TranslationStore::findTranslationsByTitles() must be of the type string, null given
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
labels.normalized_message
[{reqId}] {exception_url}   TypeError: Argument 2 passed to ContentTranslation\Store\TranslationStore::findTranslationsByTitles() must be of the type string, null given, called in /srv/mediawiki/php-1.42.0-wmf.1/extensions/ContentTranslation/includes/Acti
error.stack_trace
from /srv/mediawiki/php-1.42.0-wmf.1/extensions/ContentTranslation/includes/Store/TranslationStore.php(188)
#0 /srv/mediawiki/php-1.42.0-wmf.1/extensions/ContentTranslation/includes/ActionApi/ApiQueryContentTranslationSuggestions.php(187): ContentTranslation\Store\TranslationStore->findTranslationsByTitles(array, NULL, NULL)
#1 /srv/mediawiki/php-1.42.0-wmf.1/extensions/ContentTranslation/includes/ActionApi/ApiQueryContentTranslationSuggestions.php(129): ContentTranslation\ActionApi\ApiQueryContentTranslationSuggestions->getOngoingTranslations(array)
#2 /srv/mediawiki/php-1.42.0-wmf.1/extensions/ContentTranslation/includes/ActionApi/ApiQueryContentTranslationSuggestions.php(45): ContentTranslation\ActionApi\ApiQueryContentTranslationSuggestions->run()
#3 /srv/mediawiki/php-1.42.0-wmf.1/includes/api/ApiQuery.php(695): ContentTranslation\ActionApi\ApiQueryContentTranslationSuggestions->execute()
#4 /srv/mediawiki/php-1.42.0-wmf.1/includes/api/ApiMain.php(1931): ApiQuery->execute()
#5 /srv/mediawiki/php-1.42.0-wmf.1/includes/api/ApiMain.php(908): ApiMain->executeAction()
#6 /srv/mediawiki/php-1.42.0-wmf.1/includes/api/ApiMain.php(879): ApiMain->executeActionWithErrorHandling()
#7 /srv/mediawiki/php-1.42.0-wmf.1/api.php(95): ApiMain->execute()
#8 /srv/mediawiki/php-1.42.0-wmf.1/api.php(48): wfApiMain()
#9 /srv/mediawiki/w/api.php(3): require(string)
#10 {main}
Impact

Unclear.

Notes

6 of these since deploy of 1.42.0-wmf.1 (T348354) to group2.

Related to T349311: TypeError: Argument 9 passed to ContentTranslation\DTO\CXDraftTranslationDTO::__construct() must be of the type array or null, string given?

Event Timeline

I expect this issue to be resolved after deploying the new CX build. I'll keep an eye on it.

Nikerabbit triaged this task as High priority.
Nikerabbit moved this task from Needs Triage to Bugs on the ContentTranslation board.

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

[mediawiki/extensions/ContentTranslation@master] CX: Return empty ongoing translations if source/target language is empty

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

Change 972326 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX: Return empty ongoing translations if source/target language is empty

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

Nikerabbit changed the task status from Open to In Progress.Nov 23 2023, 8:51 AM