Page MenuHomePhabricator

TypeError: Argument 2 passed to Parser::parse() must implement interface MediaWiki\Page\PageReference, null given, called in /srv/mediawiki/php-1.40.0-wmf.21/extensions/Wikibase/lib/includes/Formatters/CachingKartographerEmbedd
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   TypeError: Argument 2 passed to Parser::parse() must implement interface MediaWiki\Page\PageReference, null given, called in /srv/mediawiki/php-1.40.0-wmf.21/extensions/Wikibase/lib/includes/Formatters/CachingKartographerEmbedd
exception.trace
from /srv/mediawiki/php-1.40.0-wmf.21/includes/parser/Parser.php(689)
#0 /srv/mediawiki/php-1.40.0-wmf.21/extensions/Wikibase/lib/includes/Formatters/CachingKartographerEmbeddingHandler.php(122): Parser->parse(string, NULL, ParserOptions)
#1 /srv/mediawiki/php-1.40.0-wmf.21/extensions/Wikibase/repo/includes/ParserOutput/GlobeCoordinateKartographerDataUpdater.php(75): Wikibase\Lib\Formatters\CachingKartographerEmbeddingHandler->getParserOutput(array, LanguageEn)
#2 /srv/mediawiki/php-1.40.0-wmf.21/extensions/Wikibase/repo/includes/ParserOutput/CompositeStatementDataUpdater.php(32): Wikibase\Repo\ParserOutput\GlobeCoordinateKartographerDataUpdater->updateParserOutput(ParserOutput)
#3 /srv/mediawiki/php-1.40.0-wmf.21/extensions/Wikibase/repo/includes/ParserOutput/ItemParserOutputUpdater.php(34): Wikibase\Repo\ParserOutput\CompositeStatementDataUpdater->updateParserOutput(ParserOutput)
#4 /srv/mediawiki/php-1.40.0-wmf.21/extensions/Wikibase/repo/includes/ParserOutput/ItemParserOutputUpdater.php(25): Wikibase\Repo\ParserOutput\ItemParserOutputUpdater->updateParserOutputForItem(ParserOutput, Wikibase\DataModel\Entity\Item)
#5 /srv/mediawiki/php-1.40.0-wmf.21/extensions/Wikibase/repo/includes/ParserOutput/EntityParserOutputDataUpdaterCollection.php(44): Wikibase\Repo\ParserOutput\ItemParserOutputUpdater->updateParserOutput(ParserOutput, Wikibase\DataModel\Entity\Item)
#6 /srv/mediawiki/php-1.40.0-wmf.21/extensions/Wikibase/repo/includes/ParserOutput/FullEntityParserOutputGenerator.php(105): Wikibase\Repo\ParserOutput\EntityParserOutputDataUpdaterCollection->updateParserOutput(Wikibase\DataModel\Entity\Item)
#7 /srv/mediawiki/php-1.40.0-wmf.21/extensions/Wikibase/repo/includes/ParserOutput/StatsdTimeRecordingEntityParserOutputGenerator.php(53): Wikibase\Repo\ParserOutput\FullEntityParserOutputGenerator->getParserOutput(Wikibase\Lib\Store\EntityRevision, boolean)
#8 /srv/mediawiki/php-1.40.0-wmf.21/extensions/Wikibase/repo/includes/Content/EntityHandler.php(859): Wikibase\Repo\ParserOutput\StatsdTimeRecordingEntityParserOutputGenerator->getParserOutput(Wikibase\Lib\Store\EntityRevision, boolean)
#9 /srv/mediawiki/php-1.40.0-wmf.21/extensions/Wikibase/repo/includes/Content/ItemHandler.php(305): Wikibase\Repo\Content\EntityHandler->getParserOutputFromEntityView(Wikibase\Repo\Content\ItemContent, integer, ParserOptions, boolean)
#10 /srv/mediawiki/php-1.40.0-wmf.21/extensions/Wikibase/repo/includes/Content/EntityHandler.php(794): Wikibase\Repo\Content\ItemHandler->getParserOutputFromEntityView(Wikibase\Repo\Content\ItemContent, integer, ParserOptions, boolean)
#11 /srv/mediawiki/php-1.40.0-wmf.21/includes/content/ContentHandler.php(1747): Wikibase\Repo\Content\EntityHandler->fillParserOutput(Wikibase\Repo\Content\ItemContent, MediaWiki\Content\Renderer\ContentParseParams, ParserOutput)
#12 /srv/mediawiki/php-1.40.0-wmf.21/includes/content/Renderer/ContentRenderer.php(47): ContentHandler->getParserOutput(Wikibase\Repo\Content\ItemContent, MediaWiki\Content\Renderer\ContentParseParams)
#13 /srv/mediawiki/php-1.40.0-wmf.21/includes/Revision/RenderedRevision.php(260): MediaWiki\Content\Renderer\ContentRenderer->getParserOutput(Wikibase\Repo\Content\ItemContent, Title, integer, ParserOptions, boolean)
#14 /srv/mediawiki/php-1.40.0-wmf.21/includes/Revision/RenderedRevision.php(232): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached(Wikibase\Repo\Content\ItemContent, boolean)
#15 /srv/mediawiki/php-1.40.0-wmf.21/includes/Revision/RevisionRenderer.php(227): MediaWiki\Revision\RenderedRevision->getSlotParserOutput(string, array)
#16 /srv/mediawiki/php-1.40.0-wmf.21/includes/Revision/RevisionRenderer.php(164): MediaWiki\Revision\RevisionRenderer->combineSlotOutput(MediaWiki\Revision\RenderedRevision, array)
#17 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}(MediaWiki\Revision\RenderedRevision, array)
#18 /srv/mediawiki/php-1.40.0-wmf.21/includes/Revision/RenderedRevision.php(199): call_user_func(Closure, MediaWiki\Revision\RenderedRevision, array)
#19 /srv/mediawiki/php-1.40.0-wmf.21/extensions/Wikibase/repo/includes/Content/EntityHandler.php(739): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput(array)
#20 /srv/mediawiki/php-1.40.0-wmf.21/extensions/CirrusSearch/includes/BuildDocument/ParserOutputPageProperties.php(89): Wikibase\Repo\Content\EntityHandler->getParserOutputForIndexing(WikiPage, ParserCache, MediaWiki\Revision\RevisionStoreRecord)
#21 /srv/mediawiki/php-1.40.0-wmf.21/extensions/CirrusSearch/includes/BuildDocument/ParserOutputPageProperties.php(64): CirrusSearch\BuildDocument\ParserOutputPageProperties->finalizeReal(Elastica\Document, WikiPage, ParserCache, CirrusSearch\CirrusSearch, MediaWiki\Revision\RevisionStoreRecord)
#22 /srv/mediawiki/php-1.40.0-wmf.21/extensions/CirrusSearch/includes/BuildDocument/BuildDocument.php(202): CirrusSearch\BuildDocument\ParserOutputPageProperties->finalize(Elastica\Document, Title, MediaWiki\Revision\RevisionStoreRecord)
#23 /srv/mediawiki/php-1.40.0-wmf.21/extensions/CirrusSearch/includes/DataSender.php(272): CirrusSearch\BuildDocument\BuildDocument->finalize(Elastica\Document)
#24 /srv/mediawiki/php-1.40.0-wmf.21/extensions/CirrusSearch/includes/Job/ElasticaWrite.php(160): CirrusSearch\DataSender->sendData(string, array)
#25 /srv/mediawiki/php-1.40.0-wmf.21/extensions/CirrusSearch/includes/Job/JobTraits.php(138): CirrusSearch\Job\ElasticaWrite->doJob()
#26 /srv/mediawiki/php-1.40.0-wmf.21/extensions/CirrusSearch/includes/Updater.php(452): CirrusSearch\Job\CirrusGenericJob->run()
#27 /srv/mediawiki/php-1.40.0-wmf.21/extensions/CirrusSearch/includes/Updater.php(227): CirrusSearch\Updater->pushElasticaWriteJobs(array, Closure)
#28 /srv/mediawiki/php-1.40.0-wmf.21/extensions/CirrusSearch/includes/Updater.php(81): CirrusSearch\Updater->updatePages(array, integer)
#29 /srv/mediawiki/php-1.40.0-wmf.21/extensions/CirrusSearch/includes/Job/LinksUpdate.php(51): CirrusSearch\Updater->updateFromTitle(Title)
#30 /srv/mediawiki/php-1.40.0-wmf.21/extensions/CirrusSearch/includes/Job/JobTraits.php(138): CirrusSearch\Job\LinksUpdate->doJob()
#31 /srv/mediawiki/php-1.40.0-wmf.21/extensions/EventBus/includes/JobExecutor.php(79): CirrusSearch\Job\CirrusTitleJob->run()
#32 /srv/mediawiki/rpc/RunSingleJob.php(77): MediaWiki\Extension\EventBus\JobExecutor->execute(array)
#33 {main}
Impact

781 previously unseen errors in the last 20 minutes.

Notes

This error started appearing at a rate of 717 in 15 minutes while rolling the 1.40.0-wmf.21 train (T325584) to group1. I rolled group1 back to 1.40.0-wmf.20.

Event Timeline

Jdforrester-WMF triaged this task as Unbreak Now! priority.Feb 1 2023, 8:18 PM
Jdforrester-WMF subscribed.

Train blockers are UBN.

I'm immediately suspicious of https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Wikibase/+/803578/ (T309695) mostly because it was 5 days ago and is touching the precise argument that's erroring.

Change 885875 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[mediawiki/extensions/Wikibase@master] CachingKartographerEmbeddingHandler: Fall back to Special:BlankPage title

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

It is https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Wikibase/+/803578 (T309695)

The global context (RequestContext::getMain()->getTitle()) has no title on the job runners (here by CirrusSearch)

Change 885875 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] CachingKartographerEmbeddingHandler: Fall back to Special:BlankPage title

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

Change 885781 had a related patch set uploaded (by Zabe; author: Kosta Harlan):

[mediawiki/extensions/Wikibase@wmf/1.40.0-wmf.21] CachingKartographerEmbeddingHandler: Fall back to Special:BlankPage title

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

Change 885781 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@wmf/1.40.0-wmf.21] CachingKartographerEmbeddingHandler: Fall back to Special:BlankPage title

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

Mentioned in SAL (#wikimedia-operations) [2023-02-01T22:53:30Z] <zabe@deploy1002> Started scap: Backport for [[gerrit:885781|CachingKartographerEmbeddingHandler: Fall back to Special:BlankPage title (T328601)]]

Mentioned in SAL (#wikimedia-operations) [2023-02-01T22:55:25Z] <zabe@deploy1002> zabe: Backport for [[gerrit:885781|CachingKartographerEmbeddingHandler: Fall back to Special:BlankPage title (T328601)]] synced to the testservers: mwdebug1002.eqiad.wmnet, mwdebug2002.codfw.wmnet, mwdebug1001.eqiad.wmnet, mwdebug2001.codfw.wmnet

Mentioned in SAL (#wikimedia-operations) [2023-02-01T23:01:16Z] <zabe@deploy1002> Finished scap: Backport for [[gerrit:885781|CachingKartographerEmbeddingHandler: Fall back to Special:BlankPage title (T328601)]] (duration: 07m 45s)

Zabe assigned this task to kostajh.

should be fixed

Thanks everyone for jumping on this! The train has been rolled forward to group1 and everything looks good.