Page MenuHomePhabricator

TypeError: MediaWiki\Output\OutputPage::addPostProcessedParserOutput(): Argument #1 ($parserOutput) must be of type MediaWiki\Parser\ParserOutput, MediaWiki\Status\Status given, called in /srv/mediawiki/php-1.47.0-wmf.20/extens
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
  • service.version: 1.47.0-wmf.20
  • timestamp: 2026-09-16T11:29:37.770Z
  • labels.phpversion: 8.3.33
  • trace.id: d77570e5-edc1-4773-8a7f-99d6e807f167
  • Find trace.id in Logstash
labels.normalized_message
[{reqId}] {exception_url}   TypeError: MediaWiki\Output\OutputPage::addPostProcessedParserOutput(): Argument #1 ($parserOutput) must be of type MediaWiki\Parser\ParserOutput, MediaWiki\Status\Status given, called in /srv/mediawiki/php-1.47.0-wmf.20/extens
FrameLocationCall
from/srv/mediawiki/php-1.47.0-wmf.20/includes/Output/OutputPage.php(2515)
#0/srv/mediawiki/php-1.47.0-wmf.20/extensions/FlaggedRevs/includes/frontend/FlaggablePageView.php(680)MediaWiki\Output\OutputPage->addPostProcessedParserOutput(MediaWiki\Status\Status)
#1/srv/mediawiki/php-1.47.0-wmf.20/extensions/FlaggedRevs/includes/frontend/FlaggablePageView.php(339)FlaggablePageView->showStableVersion(FlaggedRevision, string)
#2/srv/mediawiki/php-1.47.0-wmf.20/extensions/FlaggedRevs/includes/frontend/FlaggedRevsUIHooks.php(295)FlaggablePageView->setPageContent(null, bool)
#3/srv/mediawiki/php-1.47.0-wmf.20/includes/HookContainer/HookContainer.php(127)FlaggedRevsUIHooks->onArticleViewHeader(MediaWiki\Page\Article, null, bool)
#4/srv/mediawiki/php-1.47.0-wmf.20/includes/HookContainer/HookRunner.php(903)MediaWiki\HookContainer\HookContainer->run(string, array)
#5/srv/mediawiki/php-1.47.0-wmf.20/includes/Page/Article.php(705)MediaWiki\HookContainer\HookRunner->onArticleViewHeader(MediaWiki\Page\Article, null, bool)
#6/srv/mediawiki/php-1.47.0-wmf.20/includes/Page/Article.php(545)MediaWiki\Page\Article->generateContentOutput(MediaWiki\User\User, MediaWiki\Parser\ParserOptions, int, MediaWiki\Output\OutputPage, array)
#7/srv/mediawiki/php-1.47.0-wmf.20/includes/Actions/ViewAction.php(71)MediaWiki\Page\Article->view()
#8/srv/mediawiki/php-1.47.0-wmf.20/includes/Actions/ActionEntryPoint.php(753)MediaWiki\Actions\ViewAction->show()
#9/srv/mediawiki/php-1.47.0-wmf.20/includes/Actions/ActionEntryPoint.php(511)MediaWiki\Actions\ActionEntryPoint->performAction(MediaWiki\Page\Article, MediaWiki\Title\Title)
#10/srv/mediawiki/php-1.47.0-wmf.20/includes/Actions/ActionEntryPoint.php(145)MediaWiki\Actions\ActionEntryPoint->performRequest()
#11/srv/mediawiki/php-1.47.0-wmf.20/includes/MediaWikiEntryPoint.php(180)MediaWiki\Actions\ActionEntryPoint->execute()
#12/srv/mediawiki/php-1.47.0-wmf.20/index.php(44)MediaWiki\MediaWikiEntryPoint->run()
#13/srv/mediawiki/w/index.php(3)require(string)
#14{main}
Notes

English wikibooks and russian wikisource affected after rolling out 1.47.0-wmf.20 to group1.

Root cause seems to be this chain of changes:

Rendering is affected so I'm marking this as a blocker and rolling back:

image.png (986×231 px, 34 KB)

Details

Request URL
https://en.wikibooks.org/w/index.php?section=*&title=*&veaction=*
Related Changes in Gerrit:

Event Timeline

Another possible candidate for this problem might be T421629.

Change #1342262 had a related patch set uploaded (by Jgiannelos; author: Jgiannelos):

[mediawiki/extensions/FlaggedRevs@master] Fix parser output truthy value

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

I am very not familiar with FlaggedRevs but it looks like this might be problematic:

I'd note there's a sec patch in production right now related to some components here, but I don't believe it would cause this error at all.

I am very not familiar with FlaggedRevs but it looks like this might be problematic:

Yiannis is right.

Change #1342262 merged by jenkins-bot:

[mediawiki/extensions/FlaggedRevs@master] Use parser output value instead of status

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

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

[mediawiki/extensions/FlaggedRevs@wmf/1.47.0-wmf.20] Use parser output value instead of status

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

Change #1342279 merged by jenkins-bot:

[mediawiki/extensions/FlaggedRevs@wmf/1.47.0-wmf.20] Use parser output value instead of status

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

Mentioned in SAL (#wikimedia-operations) [2026-09-16T15:03:31Z] <jnuche@deploy1003> Started scap sync-world: Backport for [[gerrit:1342279|Use parser output value instead of status (T438154)]]

Mentioned in SAL (#wikimedia-operations) [2026-09-16T15:23:46Z] <jnuche@deploy1003> jnuche, jforrester: Backport for [[gerrit:1342279|Use parser output value instead of status (T438154)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2026-09-16T15:36:53Z] <jnuche@deploy1003> Finished scap sync-world: Backport for [[gerrit:1342279|Use parser output value instead of status (T438154)]] (duration: 33m 21s)

We're at group1 and problem is no longer showing up in the logs, thank you everyone