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: XIEpFApAICwAACPoRzcAAABQ

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.20/extensions/Wikibase/repo/includes/LinkedData/EntityDataSerializationService.php(261): NO_FUNCTION_GIVEN()
#1 /srv/mediawiki/php-1.33.0-wmf.20/extensions/Wikibase/repo/includes/LinkedData/EntityDataSerializationService.php(237): Wikibase\Repo\LinkedData\EntityDataSerializationService->addIncomingRedirects(Wikibase\MediaInfo\DataModel\MediaInfoId, NULL, array, Wikibase\Rdf\RdfBuilder)
#2 /srv/mediawiki/php-1.33.0-wmf.20/extensions/Wikibase/repo/includes/LinkedData/EntityDataSerializationService.php(175): Wikibase\Repo\LinkedData\EntityDataSerializationService->rdfSerialize(Wikibase\Lib\Store\EntityRevision, NULL, array, Wikibase\Rdf\RdfBuilder, NULL)
#3 /srv/mediawiki/php-1.33.0-wmf.20/extensions/Wikibase/repo/includes/LinkedData/EntityDataRequestHandler.php(503): Wikibase\Repo\LinkedData\EntityDataSerializationService->getSerializedData(string, Wikibase\Lib\Store\EntityRevision, NULL, array, NULL)
#4 /srv/mediawiki/php-1.33.0-wmf.20/extensions/Wikibase/repo/includes/LinkedData/EntityDataRequestHandler.php(254): Wikibase\Repo\LinkedData\EntityDataRequestHandler->showData(WebRequest, OutputPage, string, Wikibase\MediaInfo\DataModel\MediaInfoId, integer)
#5 /srv/mediawiki/php-1.33.0-wmf.20/extensions/Wikibase/repo/includes/Specials/SpecialEntityData.php(154): Wikibase\Repo\LinkedData\EntityDataRequestHandler->handleRequest(string, WebRequest, OutputPage)
#6 /srv/mediawiki/php-1.33.0-wmf.20/includes/specialpage/SpecialPage.php(569): Wikibase\Repo\Specials\SpecialEntityData->execute(string)
#7 /srv/mediawiki/php-1.33.0-wmf.20/includes/specialpage/SpecialPageFactory.php(558): SpecialPage->run(string)
#8 /srv/mediawiki/php-1.33.0-wmf.20/includes/MediaWiki.php(288): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)
#9 /srv/mediawiki/php-1.33.0-wmf.20/includes/MediaWiki.php(867): MediaWiki->performRequest()
#10 /srv/mediawiki/php-1.33.0-wmf.20/includes/MediaWiki.php(517): MediaWiki->main()
#11 /srv/mediawiki/php-1.33.0-wmf.20/index.php(42): MediaWiki->run()
#12 /srv/mediawiki/w/index.php(3): include(string)
#13 {main}

Impact

Example: https://commons.wikimedia.org/wiki/Special:EntityData/M22857511.rdf

Which gives back to the user:

Internal error

[XIEuRQpAIDEAAHhYSB0AAACG] 2019-03-07 14:44:21: Fatal exception of type "TypeError"

Notes