To Reproduce: GET https://commons.wikimedia.org/wiki/File:B-2487@PEK_(20190702184032).jpg
Displays an Internal Error Fatal exception of type "Wikibase\DataModel\Services\Lookup\EntityLookupException"
Logstash link ~ 19k requests from a suspected bot.
Sample log:
[XR@y-ApAAD4AAGzBUKgAAACM] /wiki/File:Air_China_B747-89L_(B-2487)_landing_at_Beijing_Capital_International_Airport_in_2019_(7).jpg Wikibase\DataModel\Services\Lookup\EntityLookupException from line 76 of /srv/mediawiki/php-1.34.0-wmf.11/extensions/Wikibase/lib/includes/Store/RevisionBasedEntityLookup.php: Call to a member function getTargetId() on a non-object (null)
exception.previous:
#0 /srv/mediawiki/php-1.34.0-wmf.11/extensions/Wikibase/data-access/src/ByTypeDispatchingEntityRevisionLookup.php(64): Wikibase\Lib\Store\Sql\WikiPageEntityRevisionLookup->getLatestRevisionId(Wikibase\MediaInfo\DataModel\MediaInfoId, string) #1 /srv/mediawiki/php-1.34.0-wmf.11/extensions/Wikibase/lib/includes/Store/TypeDispatchingEntityRevisionLookup.php(70): Wikibase\DataAccess\ByTypeDispatchingEntityRevisionLookup->getLatestRevisionId(Wikibase\MediaInfo\DataModel\MediaInfoId, string) #2 /srv/mediawiki/php-1.34.0-wmf.11/extensions/Wikibase/lib/includes/Store/CacheRetrievingEntityRevisionLookup.php(158): Wikibase\Lib\Store\TypeDispatchingEntityRevisionLookup->getLatestRevisionId(Wikibase\MediaInfo\DataModel\MediaInfoId, string) #3 /srv/mediawiki/php-1.34.0-wmf.11/extensions/Wikibase/lib/includes/Store/CachingEntityRevisionLookup.php(126): Wikibase\Lib\Store\CacheRetrievingEntityRevisionLookup->getLatestRevisionId(Wikibase\MediaInfo\DataModel\MediaInfoId, string) #4 /srv/mediawiki/php-1.34.0-wmf.11/extensions/Wikibase/lib/includes/Store/CacheRetrievingEntityRevisionLookup.php(158): Wikibase\Lib\Store\CachingEntityRevisionLookup->getLatestRevisionId(Wikibase\MediaInfo\DataModel\MediaInfoId, string) #5 /srv/mediawiki/php-1.34.0-wmf.11/extensions/Wikibase/lib/includes/Store/CachingEntityRevisionLookup.php(126): Wikibase\Lib\Store\CacheRetrievingEntityRevisionLookup->getLatestRevisionId(Wikibase\MediaInfo\DataModel\MediaInfoId, string) #6 /srv/mediawiki/php-1.34.0-wmf.11/extensions/Wikibase/lib/includes/Store/RevisionBasedEntityLookup.php(67): Wikibase\Lib\Store\CachingEntityRevisionLookup->getLatestRevisionId(Wikibase\MediaInfo\DataModel\MediaInfoId) #7 /srv/mediawiki/php-1.34.0-wmf.11/vendor/wikibase/data-model-services/src/Lookup/RedirectResolvingEntityLookup.php(70): Wikibase\Lib\Store\RevisionBasedEntityLookup->hasEntity(Wikibase\MediaInfo\DataModel\MediaInfoId) #8 /srv/mediawiki/php-1.34.0-wmf.11/extensions/Wikibase/repo/RepoHooks.php(944): Wikibase\DataModel\Services\Lookup\RedirectResolvingEntityLookup->hasEntity(Wikibase\MediaInfo\DataModel\MediaInfoId) #9 /srv/mediawiki/php-1.34.0-wmf.11/includes/Hooks.php(174): Wikibase\RepoHooks::onSkinTemplateBuildNavUrlsNavUrlsAfterPermalink(SkinVector, array, integer, integer) #10 /srv/mediawiki/php-1.34.0-wmf.11/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL) #11 /srv/mediawiki/php-1.34.0-wmf.11/includes/skins/SkinTemplate.php(1308): Hooks::run(string, array) #12 /srv/mediawiki/php-1.34.0-wmf.11/includes/skins/SkinTemplate.php(455): SkinTemplate->buildNavUrls() #13 /srv/mediawiki/php-1.34.0-wmf.11/includes/skins/SkinTemplate.php(217): SkinTemplate->prepareQuickTemplate() #14 /srv/mediawiki/php-1.34.0-wmf.11/includes/OutputPage.php(2587): SkinTemplate->outputPage() #15 /srv/mediawiki/php-1.34.0-wmf.11/includes/MediaWiki.php(891): OutputPage->output(boolean) #16 /srv/mediawiki/php-1.34.0-wmf.11/includes/MediaWiki.php(903): Closure$MediaWiki::main() #17 /srv/mediawiki/php-1.34.0-wmf.11/includes/MediaWiki.php(515): MediaWiki->main() #18 /srv/mediawiki/php-1.34.0-wmf.11/index.php(42): MediaWiki->run() #19 /srv/mediawiki/w/index.php(3): include(string) #20 {main}
exception
#0 /srv/mediawiki/php-1.34.0-wmf.11/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.11/extensions/Wikibase/repo/RepoHooks.php(944): Wikibase\DataModel\Services\Lookup\RedirectResolvingEntityLookup->hasEntity(Wikibase\MediaInfo\DataModel\MediaInfoId) #2 /srv/mediawiki/php-1.34.0-wmf.11/includes/Hooks.php(174): Wikibase\RepoHooks::onSkinTemplateBuildNavUrlsNavUrlsAfterPermalink(SkinVector, array, integer, integer) #3 /srv/mediawiki/php-1.34.0-wmf.11/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL) #4 /srv/mediawiki/php-1.34.0-wmf.11/includes/skins/SkinTemplate.php(1308): Hooks::run(string, array) #5 /srv/mediawiki/php-1.34.0-wmf.11/includes/skins/SkinTemplate.php(455): SkinTemplate->buildNavUrls() #6 /srv/mediawiki/php-1.34.0-wmf.11/includes/skins/SkinTemplate.php(217): SkinTemplate->prepareQuickTemplate() #7 /srv/mediawiki/php-1.34.0-wmf.11/includes/OutputPage.php(2587): SkinTemplate->outputPage() #8 /srv/mediawiki/php-1.34.0-wmf.11/includes/MediaWiki.php(891): OutputPage->output(boolean) #9 /srv/mediawiki/php-1.34.0-wmf.11/includes/MediaWiki.php(903): Closure$MediaWiki::main() #10 /srv/mediawiki/php-1.34.0-wmf.11/includes/MediaWiki.php(515): MediaWiki->main() #11 /srv/mediawiki/php-1.34.0-wmf.11/index.php(42): MediaWiki->run() #12 /srv/mediawiki/w/index.php(3): include(string) #13 {main}