Error
Request ID: W99G7QpAEMMAAK@IFH8AAAAY
BadMethodCallException: Call to a member function getNamespace() on a non-object (null)
#0 /srv/mediawiki/php-1.33.0-wmf.1/extensions/PageViewInfo/includes/ApiQueryMostViewed.php(58): ApiQueryBase::addTitleInfo(array, NULL) #1 /srv/mediawiki/php-1.33.0-wmf.1/extensions/PageViewInfo/includes/ApiQueryMostViewed.php(20): MediaWiki\Extensions\PageViewInfo\ApiQueryMostViewed->run() #2 /srv/mediawiki/php-1.33.0-wmf.1/includes/api/ApiQuery.php(249): MediaWiki\Extensions\PageViewInfo\ApiQueryMostViewed->execute() #3 /srv/mediawiki/php-1.33.0-wmf.1/includes/api/ApiMain.php(1570): ApiQuery->execute() #4 /srv/mediawiki/php-1.33.0-wmf.1/includes/api/ApiMain.php(531): ApiMain->executeAction() #5 /srv/mediawiki/php-1.33.0-wmf.1/includes/api/ApiMain.php(502): ApiMain->executeActionWithErrorHandling() #6 /srv/mediawiki/php-1.33.0-wmf.1/api.php(87): ApiMain->execute() #7 /srv/mediawiki/w/api.php(3): include(string)
Impact
Certain user queries to the API are consistently unavailable due to an error.
The queries are publicly exposed and produce an HTTP 500 error (fatal exception, uncached).
Notes
One of the affected urls is https://de.wikipedia.org/w/api.php?action=query&format=json&list=mostviewed&pvimlimit=500, from which it can be consistently reproduced:
{"error":{"code":"internal_api_error_BadMethodCallException","info":"[W99b9wpAIDcAAEbvWToAAACY] Caught exception of type BadMethodCallException"},"servedby":"mw1343"}