Page MenuHomePhabricator

Deleting a translation unit page with invalid language codes throws exception: Cannot render translation page for X
Open, NormalPublic

Description

On MediaWiki.org, on deleting [[Translations:Help:CirrusSearch/Page display title/fil]], the following exception occurred:

Cannot render translation page for Help:CirrusSearch/fil!
#0 /srv/mediawiki/php-1.34.0-wmf.17/extensions/Translate/tag/PageTranslationHooks.php(217): TranslateRenderJob->run()
#1 /srv/mediawiki/php-1.34.0-wmf.17/extensions/Translate/tag/PageTranslationHooks.php(1315): PageTranslationHooks::updateTranslationPage(TranslatablePage, string, User, integer, string)
#2 [internal function]: Closure$PageTranslationHooks::onDeleteTranslationUnit(integer, Wikimedia\Rdbms\DatabaseMysqli)
#3 /srv/mediawiki/php-1.34.0-wmf.17/includes/libs/rdbms/database/Database.php(3615): call_user_func(Closure$PageTranslationHooks::onDeleteTranslationUnit;1064, integer, Wikimedia\Rdbms\DatabaseMysqli)
#4 /srv/mediawiki/php-1.34.0-wmf.17/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1698): Wikimedia\Rdbms\Database->runOnTransactionIdleCallbacks(integer)
#5 /srv/mediawiki/php-1.34.0-wmf.17/includes/libs/rdbms/loadbalancer/LoadBalancer.php(2020): Closure$Wikimedia\Rdbms\LoadBalancer::runMasterTransactionIdleCallbacks#2(Wikimedia\Rdbms\DatabaseMysqli)
#6 /srv/mediawiki/php-1.34.0-wmf.17/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1703): Wikimedia\Rdbms\LoadBalancer->forEachOpenMasterConnection(Closure$Wikimedia\Rdbms\LoadBalancer::runMasterTransactionIdleCallbacks#2;432)
#7 /srv/mediawiki/php-1.34.0-wmf.17/includes/libs/rdbms/lbfactory/LBFactory.php(322): Wikimedia\Rdbms\LoadBalancer->runMasterTransactionIdleCallbacks(string, integer)
#8 /srv/mediawiki/php-1.34.0-wmf.17/includes/libs/rdbms/lbfactory/LBFactoryMulti.php(368): Closure$Wikimedia\Rdbms\LBFactory::executePostTransactionCallbacks(Wikimedia\Rdbms\LoadBalancer)
#9 /srv/mediawiki/php-1.34.0-wmf.17/includes/libs/rdbms/lbfactory/LBFactory.php(324): Wikimedia\Rdbms\LBFactoryMulti->forEachLB(Closure$Wikimedia\Rdbms\LBFactory::executePostTransactionCallbacks;201)
#10 /srv/mediawiki/php-1.34.0-wmf.17/includes/libs/rdbms/lbfactory/LBFactory.php(294): Wikimedia\Rdbms\LBFactory->executePostTransactionCallbacks()
#11 /srv/mediawiki/php-1.34.0-wmf.17/includes/MediaWiki.php(604): Wikimedia\Rdbms\LBFactory->commitMasterChanges(string, array)
#12 /srv/mediawiki/php-1.34.0-wmf.17/includes/MediaWiki.php(574): MediaWiki::preOutputCommit(RequestContext, Closure$MediaWiki::main;400)
#13 /srv/mediawiki/php-1.34.0-wmf.17/includes/MediaWiki.php(908): MediaWiki->doPreOutputCommit(Closure$MediaWiki::main;400)
#14 /srv/mediawiki/php-1.34.0-wmf.17/includes/MediaWiki.php(523): MediaWiki->main()
#15 /srv/mediawiki/php-1.34.0-wmf.17/index.php(42): MediaWiki->run()
#16 /srv/mediawiki/w/index.php(3): include(string)
#17 {main}

Notes:

  • "fil" is not a valid language code
  • the corresponding [[Help:CirrusSearch/fil]] did not exist

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 17 2019, 1:03 AM
Shirayuki updated the task description. (Show Details)Aug 17 2019, 1:07 AM
Nikerabbit updated the task description. (Show Details)Aug 17 2019, 9:40 AM
Nikerabbit renamed this task from Fatal MWException exception to Deleting a translation unit page with invalid language codes throws exception: Cannot render translation page for X.Aug 17 2019, 9:44 AM
Nikerabbit triaged this task as Normal priority.
Nikerabbit added a subscriber: abi_.
mmodell changed the subtype of this task from "Bug Report" to "Production Error".Aug 28 2019, 11:06 PM