Page MenuHomePhabricator

PHP Deprecated: str_ends_with(): Passing null to parameter #1 ($haystack) of type string is deprecated
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   PHP Deprecated: str_ends_with(): Passing null to parameter #1 ($haystack) of type string is deprecated
FrameLocationCall
from/srv/mediawiki/php-1.44.0-wmf.19/includes/config/SiteConfiguration.php(513)
#0[internal function]MWExceptionHandler::handleError(int, string, string, int)
#1/srv/mediawiki/php-1.44.0-wmf.19/includes/config/SiteConfiguration.php(513)str_ends_with(null, string)
#2/srv/mediawiki/php-1.44.0-wmf.19/includes/WikiMap/WikiMap.php(59)MediaWiki\Config\SiteConfiguration->siteFromDB(null)
#3/srv/mediawiki/php-1.44.0-wmf.19/includes/WikiMap/WikiMap.php(40)MediaWiki\WikiMap\WikiMap::getWikiReferenceFromWgConf(null)
#4/srv/mediawiki/php-1.44.0-wmf.19/extensions/CentralAuth/includes/Special/SpecialCentralAutoLogin.php(869)MediaWiki\WikiMap\WikiMap::getWiki(null)
#5/srv/mediawiki/php-1.44.0-wmf.19/extensions/CentralAuth/includes/Special/SpecialCentralAutoLogin.php(359)MediaWiki\Extension\CentralAuth\Special\SpecialCentralAutoLogin->assertLocalWikiIsValid(null)
#6/srv/mediawiki/php-1.44.0-wmf.19/includes/specialpage/SpecialPage.php(729)MediaWiki\Extension\CentralAuth\Special\SpecialCentralAutoLogin->execute(string)
#7/srv/mediawiki/php-1.44.0-wmf.19/includes/specialpage/SpecialPageFactory.php(1737)MediaWiki\SpecialPage\SpecialPage->run(string)
#8/srv/mediawiki/php-1.44.0-wmf.19/includes/actions/ActionEntryPoint.php(503)MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, MediaWiki\Context\RequestContext)
#9/srv/mediawiki/php-1.44.0-wmf.19/includes/actions/ActionEntryPoint.php(145)MediaWiki\Actions\ActionEntryPoint->performRequest()
#10/srv/mediawiki/php-1.44.0-wmf.19/includes/MediaWikiEntryPoint.php(202)MediaWiki\Actions\ActionEntryPoint->execute()
#11/srv/mediawiki/php-1.44.0-wmf.19/index.php(58)MediaWiki\MediaWikiEntryPoint->run()
#12/srv/mediawiki/w/index.php(3)require(string)
#13{main}
Impact
Notes

Details

Request URL
https://login.wikimedia.org/wiki/Special:CentralAutoLogin/checkLoggedIn?useformat=*
Related Changes in Gerrit:

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

rECAU9f8ff1156fed: Special: Add support for central autologin in SUL3 mode made assertLocalWikiIsValid accept a nullable string, but WikiMap::getWiki isn't defined to take a null(able string)...

Change #1125487 had a related patch set uploaded (by D3r1ck01; author: Derick Alangi):

[mediawiki/extensions/CentralAuth@master] SpecialCentralAutoLogin: Handle nullable wiki ID

https://gerrit.wikimedia.org/r/1125487

rECAU9f8ff1156fed: Special: Add support for central autologin in SUL3 mode made assertLocalWikiIsValid accept a nullable string, but WikiMap::getWiki isn't defined to take a null(able string)...

Thank you Reedy! 🙏🏽

Change #1125487 merged by jenkins-bot:

[mediawiki/extensions/CentralAuth@master] SpecialCentralAutoLogin: Handle nullable wiki ID

https://gerrit.wikimedia.org/r/1125487

Change #1126050 had a related patch set uploaded (by Gergő Tisza; author: Derick Alangi):

[mediawiki/extensions/CentralAuth@wmf/1.44.0-wmf.19] SpecialCentralAutoLogin: Handle nullable wiki ID

https://gerrit.wikimedia.org/r/1126050

Change #1126050 merged by jenkins-bot:

[mediawiki/extensions/CentralAuth@wmf/1.44.0-wmf.19] SpecialCentralAutoLogin: Handle nullable wiki ID

https://gerrit.wikimedia.org/r/1126050

Mentioned in SAL (#wikimedia-operations) [2025-03-10T14:49:53Z] <tgr@deploy2002> tgr: Backport for [[gerrit:1126050|SpecialCentralAutoLogin: Handle nullable wiki ID (T388252)]], [[gerrit:1126049|SUL3: Attach SUL mode to the return URL of local wiki (T388067)]], [[gerrit:1126051|Log and add user IDs that mismatch in the runtime exception (T388177)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2025-03-10T14:58:12Z] <tgr@deploy2002> Finished scap sync-world: Backport for [[gerrit:1126050|SpecialCentralAutoLogin: Handle nullable wiki ID (T388252)]], [[gerrit:1126049|SUL3: Attach SUL mode to the return URL of local wiki (T388067)]], [[gerrit:1126051|Log and add user IDs that mismatch in the runtime exception (T388177)]] (duration: 15m 48s)