Error
Request URL: https://commons.wikimedia.org/wiki/File:Susana_Pavon_Instagram.jpg
Request ID: [XT9auwpAIC4AAL1toesAAACE] 2019-07-29 20:44:43: Fatal exception of type "Wikibase\DataModel\Services\Lookup\EntityLookupException"
Updated Example URLs (T229280#5463723):
- https://commons.wikimedia.org/w/index.php?title=File:Buddha_with_Naga_(snake).jpg&redirect=no
- https://commons.wikimedia.org/w/api.php?format=json&formatversion=2&errorformat=plaintext&action=wbgetentities&titles=File%3AKuiper_oort-en.svg&sites=commonswiki
Wikibase\DataModel\Services\Lookup\EntityLookupException from line 76 of /srv/mediawiki/php-1.34.0-wmf.15/extensions/Wikibase/lib/includes/Store/RevisionBasedEntityLookup.php: Call to a member function getTargetId() on a non-object (null)
#0 /srv/mediawiki/php-1.34.0-wmf.15/vendor/wikibase/data-model-services/src/Lookup/RedirectResolvingEntityLookup.php(70): Wikibase\Lib\Store\RevisionBasedEntityLookup->hasEntity(Wikibase\MediaInfo\DataModel\MediaInfoId) #1 /srv/mediawiki/php-1.34.0-wmf.15/extensions/Wikibase/repo/RepoHooks.php(945): Wikibase\DataModel\Services\Lookup\RedirectResolvingEntityLookup->hasEntity(Wikibase\MediaInfo\DataModel\MediaInfoId) #2 /srv/mediawiki/php-1.34.0-wmf.15/includes/Hooks.php(174): Wikibase\RepoHooks::onSkinTemplateBuildNavUrlsNavUrlsAfterPermalink(SkinVector, array, integer, integer) #3 /srv/mediawiki/php-1.34.0-wmf.15/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL) #4 /srv/mediawiki/php-1.34.0-wmf.15/includes/skins/SkinTemplate.php(1308): Hooks::run(string, array) #5 /srv/mediawiki/php-1.34.0-wmf.15/includes/skins/SkinTemplate.php(454): SkinTemplate->buildNavUrls() #6 /srv/mediawiki/php-1.34.0-wmf.15/includes/skins/SkinTemplate.php(217): SkinTemplate->prepareQuickTemplate() #7 /srv/mediawiki/php-1.34.0-wmf.15/includes/OutputPage.php(2580): SkinTemplate->outputPage() #8 /srv/mediawiki/php-1.34.0-wmf.15/includes/MediaWiki.php(899): OutputPage->output(boolean) #9 /srv/mediawiki/php-1.34.0-wmf.15/includes/MediaWiki.php(911): Closure$MediaWiki::main() #10 /srv/mediawiki/php-1.34.0-wmf.15/includes/MediaWiki.php(523): MediaWiki->main() #11 /srv/mediawiki/php-1.34.0-wmf.15/index.php(42): MediaWiki->run() #12 /srv/mediawiki/w/index.php(3): include(string) #13 {main}
Impact
Unclear whether this happens for any other files; appears in Logstash > 2000 times this week.
Notes
Got a bit turned around figuring out where this actually happens, figured others would know much more quickly than I would.