Page MenuHomePhabricator

InvalidArgumentException: Scalar parameter must be a string, number, Stringable, or MessageSpecifier; got bool (via SpecialNotifications/SubscribedNewCommentPresentationModel)
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(1344)Wikimedia\Message\ScalarParam->__construct(string, bool)
#1/srv/mediawiki/php-1.43.0-wmf.28/includes/Message/Message.php(857)MediaWiki\Message\Message::plaintextParam(bool)
#2/srv/mediawiki/php-1.43.0-wmf.28/extensions/DiscussionTools/includes/Notifications/SubscribedNewCommentPresentationModel.php(99)MediaWiki\Message\Message->plaintextParams(bool)
#3/srv/mediawiki/php-1.43.0-wmf.28/extensions/Echo/includes/Formatters/SpecialNotificationsFormatter.php(54)MediaWiki\Extension\DiscussionTools\Notifications\SubscribedNewCommentPresentationModel->getHeaderMessage()
#4/srv/mediawiki/php-1.43.0-wmf.28/extensions/Echo/includes/Formatters/EchoEventFormatter.php(77)MediaWiki\Extension\Notifications\Formatters\SpecialNotificationsFormatter->formatModel(MediaWiki\Extension\DiscussionTools\Notifications\SubscribedNewCommentPresentationModel)
#5/srv/mediawiki/php-1.43.0-wmf.28/extensions/Echo/includes/DataOutputFormatter.php(204)MediaWiki\Extension\Notifications\Formatters\EchoEventFormatter->format(MediaWiki\Extension\Notifications\Model\Event)
#6/srv/mediawiki/php-1.43.0-wmf.28/extensions/Echo/includes/DataOutputFormatter.php(164)MediaWiki\Extension\Notifications\DataOutputFormatter::formatNotification(MediaWiki\Extension\Notifications\Model\Event, MediaWiki\User\User, string, LanguageEn)
#7/srv/mediawiki/php-1.43.0-wmf.28/extensions/Echo/includes/Special/SpecialNotifications.php(71)MediaWiki\Extension\Notifications\DataOutputFormatter::formatOutput(MediaWiki\Extension\Notifications\Model\Notification, string, MediaWiki\User\User, LanguageEn)
#8/srv/mediawiki/php-1.43.0-wmf.28/includes/specialpage/SpecialPage.php(728)MediaWiki\Extension\Notifications\Special\SpecialNotifications->execute(null)
#9/srv/mediawiki/php-1.43.0-wmf.28/includes/specialpage/SpecialPageFactory.php(1726)MediaWiki\SpecialPage\SpecialPage->run(null)
#10/srv/mediawiki/php-1.43.0-wmf.28/includes/actions/ActionEntryPoint.php(504)MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, MediaWiki\Context\RequestContext)
#11/srv/mediawiki/php-1.43.0-wmf.28/includes/actions/ActionEntryPoint.php(146)MediaWiki\Actions\ActionEntryPoint->performRequest()
#12/srv/mediawiki/php-1.43.0-wmf.28/includes/MediaWikiEntryPoint.php(200)MediaWiki\Actions\ActionEntryPoint->execute()
#13/srv/mediawiki/php-1.43.0-wmf.28/index.php(58)MediaWiki\MediaWikiEntryPoint->run()
#14/srv/mediawiki/w/index.php(3)require(string)
#15{main}
Impact

Special:Notifications fatal for users who get notified about a comment that happened in a section where the section title (or revision that introduced/edited the section title) was suppressed/hidden.

Notes

Related Objects

Event Timeline

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 SpecialNotifications/SubscribedNewCommentPresentationModel).Oct 26 2024, 3:46 PM

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

[mediawiki/extensions/DiscussionTools@master] Notifications: Handle suppressed topic titles in notification

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

Change #1083328 merged by jenkins-bot:

[mediawiki/extensions/DiscussionTools@master] Notifications: Handle suppressed topic titles in notification

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

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

[mediawiki/extensions/DiscussionTools@REL1_43] Notifications: Handle suppressed topic titles in notification

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

Change #1083373 merged by jenkins-bot:

[mediawiki/extensions/DiscussionTools@REL1_43] Notifications: Handle suppressed topic titles in notification

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

matmarex added a project: MW-1.43-notes.
matmarex subscribed.

I am having the same issue: [90265f1c-0e5b-4252-8544-18b078989362] 2024-10-27 22:07:14: Excepción grave de tipo "InvalidArgumentException" nothing is solved

The patch has been merged thus resolving. It will get deployed next week.

Still happening, but in different place

Still happening, same place (Special:Notifications) in eswiki

Still happening, same place (Special:Notifications) in eswiki

Note, the eswiki issue as of now is at T378799. Note that the error you'll see is actually the same, but the error origin is not.

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

[mediawiki/extensions/DiscussionTools@master] Handle hidden revision in more places

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

Change #1086092 merged by jenkins-bot:

[mediawiki/extensions/DiscussionTools@master] Handle hidden revision in more places

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

Should be fixed for real this time. Thanks for the patch for this and the other issues, @Ammarpad.

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

[mediawiki/extensions/DiscussionTools@REL1_43] Handle hidden revision in more places

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

Change #1087263 merged by jenkins-bot:

[mediawiki/extensions/DiscussionTools@REL1_43] Handle hidden revision in more places

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