Page MenuHomePhabricator

TypeError: Return value of Title::getInterwiki() must be of the type string, null returned
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   TypeError: Return value of Title::getInterwiki() must be of the type string, null returned
exception.trace
from /srv/mediawiki/php-1.38.0-wmf.6/includes/Title.php(970)
#0 /srv/mediawiki/php-1.38.0-wmf.6/includes/api/ApiPageSet.php(1221): Title->getInterwiki()
#1 /srv/mediawiki/php-1.38.0-wmf.6/includes/api/ApiPageSet.php(1166): ApiPageSet->loadRedirectTargets()
#2 /srv/mediawiki/php-1.38.0-wmf.6/includes/api/ApiPageSet.php(952): ApiPageSet->resolvePendingRedirects()
#3 /srv/mediawiki/php-1.38.0-wmf.6/includes/api/ApiPageSet.php(856): ApiPageSet->initFromTitles(array)
#4 /srv/mediawiki/php-1.38.0-wmf.6/includes/api/ApiQueryPrefixSearch.php(82): ApiPageSet->populateFromTitles(array)
#5 /srv/mediawiki/php-1.38.0-wmf.6/includes/api/ApiQueryPrefixSearch.php(55): ApiQueryPrefixSearch->run(ApiPageSet)
#6 /srv/mediawiki/php-1.38.0-wmf.6/includes/api/ApiPageSet.php(244): ApiQueryPrefixSearch->executeGenerator(ApiPageSet)
#7 /srv/mediawiki/php-1.38.0-wmf.6/includes/api/ApiPageSet.php(208): ApiPageSet->executeInternal(boolean)
#8 /srv/mediawiki/php-1.38.0-wmf.6/includes/api/ApiQuery.php(615): ApiPageSet->execute()
#9 /srv/mediawiki/php-1.38.0-wmf.6/includes/api/ApiMain.php(1886): ApiQuery->execute()
#10 /srv/mediawiki/php-1.38.0-wmf.6/includes/api/ApiMain.php(865): ApiMain->executeAction()
#11 /srv/mediawiki/php-1.38.0-wmf.6/includes/api/ApiMain.php(836): ApiMain->executeActionWithErrorHandling()
#12 /srv/mediawiki/php-1.38.0-wmf.6/api.php(90): ApiMain->execute()
#13 /srv/mediawiki/php-1.38.0-wmf.6/api.php(45): wfApiMain()
#14 /srv/mediawiki/w/api.php(3): require(string)
#15 {main}
Impact
Notes
  • Seeing a number of these of wmf.6
  • Seem to all be happening on wikipedias

Details

Request URL
https://hi.wikipedia.org/w/api.php?format=*&formatversion=*&origin=*&action=query&prop=*&piprop=*&pilimit=*&ppprop=*&generator=*&redirects=*&pithumbsize=*&gpslimit=*&gpsnamespace=*&gpssearch=*

Event Timeline

It still happened last night:

>>> Кулланучы:Lucien leGrey <<<
WARNING: API error internal_api_error_TypeError: [a4aab7c4-3665-4bd0-a8e9-290a6e
1fb31d] Caught exception of type TypeError
ERROR: Detected MediaWiki API exception internal_api_error_TypeError: [a4aab7c4-
3665-4bd0-a8e9-290a6e1fb31d] Caught exception of type TypeError
[errorclass: TypeError;
 servedby: mw1422]; raising

The log entries I can find are all for 1.38.0-wmf.7 and below. I don't really get why this is (what happened to wmf.8?), but it looks like the bugfix is not in any of the currently deployed snapshots.

wmf.8 is not going to happen, see https://wikitech.wikimedia.org/wiki/Deployments/Yearly_calendar. All wikis are still on wmf.7, while the fixing patch linked above is part of wmf.8, which explains why the errors are still happening.