Page MenuHomePhabricator

action=edit on a revision of a page whose content model is different than the current content model fails with "Fatal exception of type MWException"
Closed, DuplicatePublic

Description

https://commons.wikimedia.org/w/index.php?title=User:CommonsMaintenanceBot/wgCopyUploadsDomains.json&action=edit&oldid=164571146 yields in [af4e9bf2] 2015-07-01 21:07:54: Fatal exception of type MWException

Can someone lookup the error hash?


See also: T72592

Event Timeline

Rillke raised the priority of this task from to Needs Triage.
Rillke updated the task description. (Show Details)
Rillke subscribed.
Krenair subscribed.
2015-07-01 21:07:54 mw1183 commonswiki exception INFO: [af4e9bf2] /w/index.php?title=User:CommonsMaintenanceBot/wgCopyUploadsDomains.json&action=edit&oldid=164571146   MWException from line 596 of /srv/mediawiki/php-1.26wmf12/includes/content/ContentHandler.php: Format application/json is not supported for content model wikitext
#0 /srv/mediawiki/php-1.26wmf12/includes/content/TextContentHandler.php(49): ContentHandler->checkFormat()
#1 /srv/mediawiki/php-1.26wmf12/includes/content/AbstractContent.php(151): TextContentHandler->serializeContent()
#2 /srv/mediawiki/php-1.26wmf12/includes/EditPage.php(2320): AbstractContent->serialize()
#3 /srv/mediawiki/php-1.26wmf12/includes/EditPage.php(978): EditPage->toEditText()
#4 /srv/mediawiki/php-1.26wmf12/includes/EditPage.php(566): EditPage->initialiseForm()
#5 /srv/mediawiki/php-1.26wmf12/includes/actions/EditAction.php(56): EditPage->edit()
#6 /srv/mediawiki/php-1.26wmf12/includes/MediaWiki.php(447): EditAction->show()
#7 /srv/mediawiki/php-1.26wmf12/includes/MediaWiki.php(255): MediaWiki->performAction()
#8 /srv/mediawiki/php-1.26wmf12/includes/MediaWiki.php(668): MediaWiki->performRequest()
#9 /srv/mediawiki/php-1.26wmf12/includes/MediaWiki.php(465): MediaWiki->main()
#10 /srv/mediawiki/php-1.26wmf12/index.php(41): MediaWiki->run()
#11 /srv/mediawiki/w/index.php(3): include()
#12 {main} {"private":false}

I consider this lowest priority because it only appears to happen after history merging.

demon subscribed.

Other variants on the logs (so they can be searched on phabricator):

"Format text/x-wiki is not supported for content model javascript"
"Format text/javascript is not supported for content model css"

I found another slightly different case editing this page: https://fi.wikisource.org/w/index.php?title=K%C3%A4ytt%C3%A4j%C3%A4:Hunsvotti/Gadget-Wikiviite.js&action=edit

Glaisher raised the priority of this task from Low to Medium.Jul 26 2015, 10:41 AM
This comment was removed by Mvolz.
Nemo_bis set Security to None.