Page MenuHomePhabricator

DerivedPageDataUpdater emits "PHP Notice: Undefined index: 1" from LinksUpdate.php
Closed, DuplicatePublic

Description

/srv/mediawiki/php-1.32.0-wmf.22/includes/deferred/LinksUpdate.php:140

PHP Notice: Undefined index: 1
#0 /srv/mediawiki/php-1.32.0-wmf.22/includes/deferred/LinksUpdate.php(140): MWExceptionHandler::handleError(integer, string, string, integer, array, array)
#1 /srv/mediawiki/php-1.32.0-wmf.22/includes/content/AbstractContent.php(238): LinksUpdate->__construct(Title, ParserOutput, boolean)
#2 /srv/mediawiki/php-1.32.0-wmf.22/includes/Storage/DerivedPageDataUpdater.php(1313): AbstractContent->getSecondaryDataUpdates(Title, NULL, boolean, ParserOutput)
#3 /srv/mediawiki/php-1.32.0-wmf.22/includes/Storage/DerivedPageDataUpdater.php(1549): MediaWiki\Storage\DerivedPageDataUpdater->getSecondaryDataUpdates(boolean)
#4 /srv/mediawiki/php-1.32.0-wmf.22/includes/Storage/DerivedPageDataUpdater.php(1393): MediaWiki\Storage\DerivedPageDataUpdater->doSecondaryDataUpdates(array)
#5 /srv/mediawiki/php-1.32.0-wmf.22/includes/Storage/PageUpdater.php(1193): MediaWiki\Storage\DerivedPageDataUpdater->doUpdates()
#6 /srv/mediawiki/php-1.32.0-wmf.22/includes/libs/rdbms/database/Database.php(3746): Closure$MediaWiki\Storage\PageUpdater::getAtomicSectionUpdate(Wikimedia\Rdbms\DatabaseMysqli, string)
#7 /srv/mediawiki/php-1.32.0-wmf.22/includes/libs/rdbms/database/DBConnRef.php(49): Wikimedia\Rdbms\Database->doAtomicSection(string, Closure$MediaWiki\Storage\PageUpdater::getAtomicSectionUpdate;2898)
#8 /srv/mediawiki/php-1.32.0-wmf.22/includes/libs/rdbms/database/DBConnRef.php(529): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#9 /srv/mediawiki/php-1.32.0-wmf.22/includes/deferred/AtomicSectionUpdate.php(35): Wikimedia\Rdbms\DBConnRef->doAtomicSection(string, Closure$MediaWiki\Storage\PageUpdater::getAtomicSectionUpdate;2898)
#10 /srv/mediawiki/php-1.32.0-wmf.22/includes/deferred/DeferredUpdates.php(268): AtomicSectionUpdate->doUpdate()
#11 /srv/mediawiki/php-1.32.0-wmf.22/includes/deferred/DeferredUpdates.php(226): DeferredUpdates::runUpdate(AtomicSectionUpdate, Wikimedia\Rdbms\LBFactoryMulti, string, integer)
#12 /srv/mediawiki/php-1.32.0-wmf.22/includes/deferred/DeferredUpdates.php(130): DeferredUpdates::execute(array, string, integer)
#13 /srv/mediawiki/php-1.32.0-wmf.22/includes/MediaWiki.php(607): DeferredUpdates::doUpdates(string, integer)
#14 /srv/mediawiki/php-1.32.0-wmf.22/includes/api/ApiMain.php(548): MediaWiki::preOutputCommit(DerivativeContext)
#15 /srv/mediawiki/php-1.32.0-wmf.22/includes/api/ApiMain.php(502): ApiMain->executeActionWithErrorHandling()
#16 /srv/mediawiki/php-1.32.0-wmf.22/api.php(87): ApiMain->execute()
#17 /srv/mediawiki/w/api.php(3): include(string)
#18 {main}

Details

Release Date
1548230400

Event Timeline

hashar created this task.Sep 18 2018, 7:27 PM
Krinkle renamed this task from /srv/mediawiki/php-1.32.0-wmf.22/includes/deferred/LinksUpdate.php:140 PHP Notice: Undefined index: 1 to DerivedPageDataUpdater emits "PHP Notice: Undefined index: 1" from LinksUpdate.php.Sep 18 2018, 11:54 PM
Krinkle removed Release Version.
Krinkle removed Release Date.
Krinkle updated the task description. (Show Details)
Krinkle edited subscribers, added: daniel; removed: Stashbot.
Anomie added a subscriber: Anomie.Sep 19 2018, 1:23 AM

I'm not sure this actually comes from DerivedPageDataUpdater. The line indicated is trying to explode "iw:Target"-format language links, so the fault may lie in whatever called $parserOutput->addLanguageLink() with something not following the format.

Restricted Application removed a subscriber: Liuxinyu970226. · View Herald TranscriptSep 19 2018, 3:17 AM
Restricted Application changed the subtype of this task from "Release" to "Task". · View Herald TranscriptJan 24 2019, 5:33 AM
Krinkle set Due Date to Jan 23 2019, 8:00 AM.
Restricted Application changed the subtype of this task from "Task" to "Deadline". · View Herald TranscriptJan 24 2019, 5:35 AM
Krinkle removed Due Date.Jan 24 2019, 5:35 AM
Restricted Application changed the subtype of this task from "Deadline" to "Task". · View Herald TranscriptJan 24 2019, 5:35 AM
Krinkle set Due Date to Jan 23 2019, 8:00 AM.Jan 24 2019, 5:36 AM
Krinkle set Release Date to 1548230400.
Restricted Application changed the subtype of this task from "Task" to "Deadline". · View Herald TranscriptJan 24 2019, 5:36 AM
Krinkle removed Due Date.Jan 24 2019, 5:36 AM
Restricted Application changed the subtype of this task from "Deadline" to "Task". · View Herald TranscriptJan 24 2019, 5:36 AM
mmodell changed the subtype of this task from "Task" to "Production Error".Aug 28 2019, 11:09 PM