Page MenuHomePhabricator

PHP Fatal Error: Argument 1 passed to Wikibase\Rdf\RdfBuilder::addEntityRedirect() must be an instance of Wikibase\DataModel\Entity\EntityId, null given
Closed, DuplicatePublic

Description

Error

Request ID: XJKppgpAICIAALJuLTAAAADF

message
PHP Fatal Error: Argument 1 passed to Wikibase\Rdf\RdfBuilder::addEntityRedirect() must be an instance of Wikibase\DataModel\Entity\EntityId, null given
trace
#0 /srv/mediawiki/php-1.33.0-wmf.22/extensions/Wikibase/repo/includes/LinkedData/EntityDataSerializationService.php(268): NO_FUNCTION_GIVEN()
#1 /srv/mediawiki/php-1.33.0-wmf.22/extensions/Wikibase/repo/includes/LinkedData/EntityDataSerializationService.php(244): Wikibase\Repo\LinkedData\EntityDataSerializationService->addIncomingRedirects(Wikibase\MediaInfo\DataModel\MediaInfoId, NULL, array, Wikibase\Rdf\RdfBuilder)
#2 /srv/mediawiki/php-1.33.0-wmf.22/extensions/Wikibase/repo/includes/LinkedData/EntityDataSerializationService.php(182): Wikibase\Repo\LinkedData\EntityDataSerializationService->rdfSerialize(Wikibase\Lib\Store\EntityRevision, NULL, array, Wikibase\Rdf\RdfBuilder, NULL)
#3 /srv/mediawiki/php-1.33.0-wmf.22/extensions/Wikibase/repo/includes/LinkedData/EntityDataRequestHandler.php(514): Wikibase\Repo\LinkedData\EntityDataSerializationService->getSerializedData(string, Wikibase\Lib\Store\EntityRevision, NULL, array, NULL)
#4 /srv/mediawiki/php-1.33.0-wmf.22/extensions/Wikibase/repo/includes/LinkedData/EntityDataRequestHandler.php(261): Wikibase\Repo\LinkedData\EntityDataRequestHandler->showData(WebRequest, OutputPage, string, Wikibase\MediaInfo\DataModel\MediaInfoId, integer)
#5 /srv/mediawiki/php-1.33.0-wmf.22/extensions/Wikibase/repo/includes/Specials/SpecialEntityData.php(156): Wikibase\Repo\LinkedData\EntityDataRequestHandler->handleRequest(string, WebRequest, OutputPage)
#6 /srv/mediawiki/php-1.33.0-wmf.22/includes/specialpage/SpecialPage.php(569): Wikibase\Repo\Specials\SpecialEntityData->execute(string)
#7 /srv/mediawiki/php-1.33.0-wmf.22/includes/specialpage/SpecialPageFactory.php(558): SpecialPage->run(string)
#8 /srv/mediawiki/php-1.33.0-wmf.22/includes/MediaWiki.php(288): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)
#9 /srv/mediawiki/php-1.33.0-wmf.22/includes/MediaWiki.php(867): MediaWiki->performRequest()
#10 /srv/mediawiki/php-1.33.0-wmf.22/includes/MediaWiki.php(517): MediaWiki->main()
#11 /srv/mediawiki/php-1.33.0-wmf.22/index.php(42): MediaWiki->run()
#12 /srv/mediawiki/w/index.php(3): include(string)
#13 {main}

Impact

Notes

Event Timeline

zeljkofilipin triaged this task as Unbreak Now! priority.
Restricted Application added subscribers: Liuxinyu970226, TerraCodes, Aklapper. · View Herald TranscriptMar 20 2019, 9:14 PM

Caused by 493096?

Does not look like it, i think.

Same as T213483?

I believe so, yes

Yes, agree, this is the same as T213483

Restricted Application removed a subscriber: Liuxinyu970226. · View Herald TranscriptMar 21 2019, 12:14 PM

/me facepalms 🤦‍♂️

Thanks everybody. I blame phabricator for this duplicate. 😜 I have searched for PHP Fatal Error: Argument 1 passed to Wikibase\Rdf\RdfBuilder::addEntityRedirect() must be an instance of Wikibase\DataModel\Entity\EntityId, null given and found nothing, so I have created this task. See https://phabricator.wikimedia.org/search/query/dWFmxNpW4ZHG/#R