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.24/includes/config/SiteConfiguration.php(513)
#0[internal function]MediaWiki\Exception\MWExceptionHandler::handleError(int, string, string, int)
#1/srv/mediawiki/php-1.44.0-wmf.24/includes/config/SiteConfiguration.php(513)str_ends_with(null, string)
#2/srv/mediawiki/php-1.44.0-wmf.24/extensions/SecurePoll/includes/User/RemoteMWAuth.php(65)MediaWiki\Config\SiteConfiguration->siteFromDB(null)
#3/srv/mediawiki/php-1.44.0-wmf.24/extensions/SecurePoll/includes/User/Auth.php(181)MediaWiki\Extension\SecurePoll\User\RemoteMWAuth->requestLogin(MediaWiki\Extension\SecurePoll\Entities\Election)
#4/srv/mediawiki/php-1.44.0-wmf.24/extensions/SecurePoll/includes/Pages/LoginPage.php(31)MediaWiki\Extension\SecurePoll\User\Auth->newRequestedSession(MediaWiki\Extension\SecurePoll\Entities\Election)
#5/srv/mediawiki/php-1.44.0-wmf.24/extensions/SecurePoll/includes/SpecialSecurePoll.php(66)MediaWiki\Extension\SecurePoll\Pages\LoginPage->execute(array)
#6/srv/mediawiki/php-1.44.0-wmf.24/includes/specialpage/SpecialPage.php(729)MediaWiki\Extension\SecurePoll\SpecialSecurePoll->execute(string)
#7/srv/mediawiki/php-1.44.0-wmf.24/includes/specialpage/SpecialPageFactory.php(1738)MediaWiki\SpecialPage\SpecialPage->run(string)
#8/srv/mediawiki/php-1.44.0-wmf.24/includes/actions/ActionEntryPoint.php(499)MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, MediaWiki\Context\RequestContext)
#9/srv/mediawiki/php-1.44.0-wmf.24/includes/actions/ActionEntryPoint.php(143)MediaWiki\Actions\ActionEntryPoint->performRequest()
#10/srv/mediawiki/php-1.44.0-wmf.24/includes/MediaWikiEntryPoint.php(202)MediaWiki\Actions\ActionEntryPoint->execute()
#11/srv/mediawiki/php-1.44.0-wmf.24/index.php(58)MediaWiki\MediaWikiEntryPoint->run()
#12/srv/mediawiki/w/index.php(3)require(string)
#13{main}
Impact
Notes

Related Objects

View Standalone Graph
This task is connected to more than 200 other tasks. Only direct parents and subtasks are shown here. Use View Standalone Graph to show more of the graph.

Event Timeline

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

Change #1138717 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/core@master] SiteConfiguration::siteFromDb: Don't risk passing null into str_ends_with

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

Jdforrester-WMF changed the task status from Open to In Progress.Apr 24 2025, 11:28 AM
Jdforrester-WMF claimed this task.

Change #1138826 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):

[mediawiki/extensions/SecurePoll@master] Handle missing 'wiki' parameter

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

Change #1138862 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):

[mediawiki/core@master] Deprecate calling public methods of SiteConfig with incorrect typed args

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

Change #1138826 merged by jenkins-bot:

[mediawiki/extensions/SecurePoll@master] Handle missing 'wiki' parameter

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

Change #1138717 abandoned by Jforrester:

[mediawiki/core@master] SiteConfiguration::siteFromDb: Don't risk passing null into str_ends_with

Reason:

Let's go with I8df48a00e1b5c043bed95efdeab42ed99a5b98da.

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

Change #1138862 merged by jenkins-bot:

[mediawiki/core@master] Deprecate calling public methods of SiteConfiguration with incorrect typed args

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