Page MenuHomePhabricator

InvalidArgumentException: Scalar parameter must be a string, number, Stringable, or MessageSpecifier; got bool (via SpecialPasswordPolicies)
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
labels.normalized_message
[{reqId}] {exception_url}   InvalidArgumentException: Scalar parameter must be a string, number, Stringable, or MessageSpecifier; got bool
FrameLocationCall
from/srv/mediawiki/php-1.43.0-wmf.28/includes/libs/Message/ScalarParam.php(52)
#0/srv/mediawiki/php-1.43.0-wmf.28/includes/Message/Message.php(1221)Wikimedia\Message\ScalarParam->__construct(string, bool)
#1/srv/mediawiki/php-1.43.0-wmf.28/includes/Message/Message.php(622)MediaWiki\Message\Message::numParam(bool)
#2/srv/mediawiki/php-1.43.0-wmf.28/includes/specials/SpecialPasswordPolicies.php(158)MediaWiki\Message\Message->numParams(bool)
#3/srv/mediawiki/php-1.43.0-wmf.28/includes/specials/SpecialPasswordPolicies.php(123)MediaWiki\Specials\SpecialPasswordPolicies->formatPolicies(array, string)
#4/srv/mediawiki/php-1.43.0-wmf.28/includes/specialpage/SpecialPage.php(728)MediaWiki\Specials\SpecialPasswordPolicies->execute(null)
#5/srv/mediawiki/php-1.43.0-wmf.28/includes/specialpage/SpecialPageFactory.php(1726)MediaWiki\SpecialPage\SpecialPage->run(null)
#6/srv/mediawiki/php-1.43.0-wmf.28/includes/actions/ActionEntryPoint.php(504)MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, MediaWiki\Context\RequestContext)
#7/srv/mediawiki/php-1.43.0-wmf.28/includes/actions/ActionEntryPoint.php(146)MediaWiki\Actions\ActionEntryPoint->performRequest()
#8/srv/mediawiki/php-1.43.0-wmf.28/includes/MediaWikiEntryPoint.php(200)MediaWiki\Actions\ActionEntryPoint->execute()
#9/srv/mediawiki/php-1.43.0-wmf.28/index.php(58)MediaWiki\MediaWikiEntryPoint->run()
#10/srv/mediawiki/w/index.php(3)require(string)
#11{main}
Impact

Special:PasswordPolicies not accessible: https://en.wikipedia.org/wiki/Special:PasswordPolicies

Notes

Details

Event Timeline

Ammarpad changed the task status from Open to In Progress.Oct 24 2024, 7:28 PM
Ammarpad claimed this task.

Change #1082845 had a related patch set uploaded (by Ammarpad; author: Ammarpad):

[mediawiki/core@master] specials: Do not pass boolean to Message::numParams

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

Ammarpad updated the task description. (Show Details)
Umherirrender renamed this task from InvalidArgumentException: Scalar parameter must be a string, number, Stringable, or MessageSpecifier; got bool to InvalidArgumentException: Scalar parameter must be a string, number, Stringable, or MessageSpecifier; got bool (via SpecialPasswordPolicies).Oct 26 2024, 3:46 PM

Change #1082845 merged by jenkins-bot:

[mediawiki/core@master] specials: Do not pass boolean to Message::numParams

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

Change #1083374 had a related patch set uploaded (by Bartosz Dziewoński; author: Ammarpad):

[mediawiki/core@REL1_43] specials: Do not pass boolean to Message::numParams

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

Change #1083374 merged by jenkins-bot:

[mediawiki/core@REL1_43] specials: Do not pass boolean to Message::numParams

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

matmarex subscribed.