Error
Request URL: GET /w/api.php?…
Request ID: XOAvHQpAAEsAACjWhGcAAABX
PHP Warning: htmlspecialchars() expects parameter 1 to be string, object given
#0 /srv/mediawiki/php-1.34.0-wmf.5/includes/Message.php(1344): MWExceptionHandler::handleError(integer, string, string, integer, array, array) #1 /srv/mediawiki/php-1.34.0-wmf.5/includes/Message.php(1202): Message->formatPlaintext(CommentStoreComment, string) #2 /srv/mediawiki/php-1.34.0-wmf.5/includes/Message.php(1154): Message->extractParam(array, string) #3 /srv/mediawiki/php-1.34.0-wmf.5/includes/Message.php(886): Message->replaceParameters(string, string, string) #4 /srv/mediawiki/php-1.34.0-wmf.5/includes/Message.php(992): Message->toString(string) #5 /srv/mediawiki/php-1.34.0-wmf.5/extensions/Echo/includes/formatters/EventPresentationModel.php(533): Message->escaped() #6 /srv/mediawiki/php-1.34.0-wmf.5/extensions/Echo/includes/formatters/EchoModelFormatter.php(13): EchoEventPresentationModel->jsonSerialize() #7 /srv/mediawiki/php-1.34.0-wmf.5/extensions/Echo/includes/formatters/EchoEventFormatter.php(72): EchoModelFormatter->formatModel(EchoEditUserTalkPresentationModel) #8 /srv/mediawiki/php-1.34.0-wmf.5/extensions/Echo/includes/DataOutputFormatter.php(189): EchoEventFormatter->format(EchoEvent) #9 /srv/mediawiki/php-1.34.0-wmf.5/extensions/Echo/includes/DataOutputFormatter.php(149): EchoDataOutputFormatter::formatNotification(EchoEvent, User, string, LanguageEn) #10 /srv/mediawiki/php-1.34.0-wmf.5/extensions/Echo/includes/DataOutputFormatter.php(167): EchoDataOutputFormatter::formatOutput(EchoNotification, string, User, LanguageEn) #11 [internal function]: Closure$EchoDataOutputFormatter::formatOutput#3(EchoNotification) #12 /srv/mediawiki/php-1.34.0-wmf.5/extensions/Echo/includes/DataOutputFormatter.php(170): array_map(Closure$EchoDataOutputFormatter::formatOutput#3;2309, array) #13 /srv/mediawiki/php-1.34.0-wmf.5/extensions/Echo/includes/api/ApiEchoNotifications.php(289): EchoDataOutputFormatter::formatOutput(EchoNotification, string, User, LanguageEn) #14 /srv/mediawiki/php-1.34.0-wmf.5/extensions/Echo/includes/api/ApiEchoNotifications.php(109): ApiEchoNotifications->getPropList(User, array, array, integer, NULL, string, NULL, boolean, boolean) #15 /srv/mediawiki/php-1.34.0-wmf.5/extensions/Echo/includes/api/ApiEchoNotifications.php(40): ApiEchoNotifications->getLocalNotifications(array) #16 /srv/mediawiki/php-1.34.0-wmf.5/includes/api/ApiQuery.php(249): ApiEchoNotifications->execute() #17 /srv/mediawiki/php-1.34.0-wmf.5/includes/api/ApiMain.php(1593): ApiQuery->execute() #18 /srv/mediawiki/php-1.34.0-wmf.5/includes/api/ApiMain.php(531): ApiMain->executeAction() #19 /srv/mediawiki/php-1.34.0-wmf.5/includes/api/ApiMain.php(502): ApiMain->executeActionWithErrorHandling() #20 /srv/mediawiki/php-1.34.0-wmf.5/api.php(87): ApiMain->execute() #21 /srv/mediawiki/w/api.php(3): include(string)
Impact
Unknown.
I suspect users are seeing pages with the incorrect content shown. Instead of seeing an edit summary, they are probably seeing the word "object" or "CommentStoreComment" instead due to PHP being forced to cast the object to a string.
Notes
This is a high-confidence regression that started with wmf.5 this week.
