Page MenuHomePhabricator

MWException: Format text/x-wiki is not supported for content model Scribunto
Closed, DuplicatePublicPRODUCTION ERROR

Description

Error
labels.normalized_message
[{reqId}] {exception_url}   MWException: Format text/x-wiki is not supported for content model Scribunto
error.stack_trace
from /srv/mediawiki/php-1.41.0-wmf.26/includes/content/ContentHandler.php(529)
#0 /srv/mediawiki/php-1.41.0-wmf.26/includes/content/TextContentHandler.php(52): ContentHandler->checkFormat(string)
#1 /srv/mediawiki/php-1.41.0-wmf.26/includes/content/AbstractContent.php(178): TextContentHandler->serializeContent(MediaWiki\Extension\Scribunto\ScribuntoContent, string)
#2 /srv/mediawiki/php-1.41.0-wmf.26/includes/editpage/EditPage.php(2912): AbstractContent->serialize(string)
#3 /srv/mediawiki/php-1.41.0-wmf.26/includes/editpage/EditPage.php(1425): MediaWiki\EditPage\EditPage->toEditText(MediaWiki\Extension\Scribunto\ScribuntoContent)
#4 /srv/mediawiki/php-1.41.0-wmf.26/includes/editpage/EditPage.php(732): MediaWiki\EditPage\EditPage->initialiseForm()
#5 /srv/mediawiki/php-1.41.0-wmf.26/includes/actions/EditAction.php(66): MediaWiki\EditPage\EditPage->edit()
#6 /srv/mediawiki/php-1.41.0-wmf.26/includes/actions/SubmitAction.php(38): EditAction->show()
#7 /srv/mediawiki/php-1.41.0-wmf.26/includes/MediaWiki.php(572): SubmitAction->show()
#8 /srv/mediawiki/php-1.41.0-wmf.26/includes/MediaWiki.php(351): MediaWiki->performAction(Article, MediaWiki\Title\Title)
#9 /srv/mediawiki/php-1.41.0-wmf.26/includes/MediaWiki.php(944): MediaWiki->performRequest()
#10 /srv/mediawiki/php-1.41.0-wmf.26/includes/MediaWiki.php(592): MediaWiki->main()
#11 /srv/mediawiki/php-1.41.0-wmf.26/index.php(50): MediaWiki->run()
#12 /srv/mediawiki/php-1.41.0-wmf.26/index.php(46): wfIndexMain()
#13 /srv/mediawiki/w/index.php(3): require(string)
#14 {main}
Impact
Notes

Seeing 5 of these in the last hour. Submitting edit form via GET params; appears to be a hand-crafted request. This presumably should be returning an error to the client before it reaches this level.

Details

Request URL
https://bs.wikipedia.org/w/index.php?action=submit&altBaseRevId=*&baseRevId=*&create=*&editRevId=*&editingStatsId=*&format=*&mode=*&model=*&mw-twocolconflict-js=*&oldid=*&parentRevId=*&preload=*&redirect=*&title=*&undidRev=*&veaction=*&wikieditorUsed=*&wpAntispam=*&wpAutoSummary=*&wpEditToken=*&wpEdittime=*&wpScrolltop=*&wpSection=*&wpStarttime=*&wpSummary=*&wpTemplateSandboxPage=*&wpTemplateSandboxTemplate=*&wpTextbox1=*&wpUltimateParam=*&wpUnicodeCheck=*&wpWatchlistExpiry=*&wpWatchthis=*

Event Timeline

Seeing a fairly similar one here in 1.46.0-wmf.19 (T413810), for a couple of wikiquote wikis:

Error
  • service.version: 1.46.0-wmf.19
  • timestamp: 2026-03-12T15:01:02.437Z
  • labels.phpversion: 8.3.30
  • trace.id: 05743ebd-d120-4758-9dec-feafae8a5e2c
  • Find trace.id in Logstash
labels.normalized_message
[{reqId}] {exception_url}   MediaWiki\Exception\MWException: Format text/x-wiki is not supported for content model Scribunto
FrameLocationCall
from/srv/mediawiki/php-1.46.0-wmf.19/includes/Content/ContentHandler.php(393)
#0/srv/mediawiki/php-1.46.0-wmf.19/includes/Content/TextContentHandler.php(41)MediaWiki\Content\ContentHandler->checkFormat(string)
#1/srv/mediawiki/php-1.46.0-wmf.19/includes/Content/AbstractContent.php(137)MediaWiki\Content\TextContentHandler->serializeContent(MediaWiki\Extension\Scribunto\ScribuntoContent, string)
#2/srv/mediawiki/php-1.46.0-wmf.19/includes/EditPage/PageEditingHelper.php(122)MediaWiki\Content\AbstractContent->serialize(string)
#3/srv/mediawiki/php-1.46.0-wmf.19/includes/EditPage/EditPage.php(975)MediaWiki\EditPage\PageEditingHelper->toEditText(MediaWiki\Extension\Scribunto\ScribuntoContent, string, bool)
#4/srv/mediawiki/php-1.46.0-wmf.19/includes/EditPage/EditPage.php(636)MediaWiki\EditPage\EditPage->displayViewSourcePage(MediaWiki\Extension\Scribunto\ScribuntoContent, string)
#5/srv/mediawiki/php-1.46.0-wmf.19/includes/Actions/EditAction.php(55)MediaWiki\EditPage\EditPage->edit()
#6/srv/mediawiki/php-1.46.0-wmf.19/includes/Actions/ActionEntryPoint.php(739)MediaWiki\Actions\EditAction->show()
#7/srv/mediawiki/php-1.46.0-wmf.19/includes/Actions/ActionEntryPoint.php(510)MediaWiki\Actions\ActionEntryPoint->performAction(MediaWiki\Page\Article, MediaWiki\Title\Title)
#8/srv/mediawiki/php-1.46.0-wmf.19/includes/Actions/ActionEntryPoint.php(144)MediaWiki\Actions\ActionEntryPoint->performRequest()
#9/srv/mediawiki/php-1.46.0-wmf.19/includes/MediaWikiEntryPoint.php(180)MediaWiki\Actions\ActionEntryPoint->execute()
#10/srv/mediawiki/php-1.46.0-wmf.19/index.php(44)MediaWiki\MediaWikiEntryPoint->run()
#11/srv/mediawiki/w/index.php(3)require(string)
#12{main}

The error in the task description is likely caused by passing a specific format to the format parameter, so it's unrelated to T419883