Last modified: 2013-09-04 15:05:53 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T43658, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 41658 - Bad content model: expected javascript but got wikitext.
Bad content model: expected javascript but got wikitext.
Status: VERIFIED FIXED
Product: MediaWiki
Classification: Unclassified
ContentHandler (Other open bugs)
unspecified
All All
: High normal (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-01 20:05 UTC by Sam Reed (reedy)
Modified: 2013-09-04 15:05 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Sam Reed (reedy) 2012-11-01 20:05:51 UTC
2012-11-01 19:57:15 srv225 enwiki: [b7ada502] /wiki/Special:ComparePages?page1=User%3AMabdul%2Fafc+beta.js&rev1=&page2=User%3ANathan2055%2Fafc.js&rev2=&action=&diffonly=&unhide=   Exception from line 463 of /usr/local/apache/common-local/php-1.21wmf2/includes/content/ContentHandler.php: Bad content model: expected javascript but got wikitext.
#0 /usr/local/apache/common-local/php-1.21wmf2/includes/content/ContentHandler.php(570): ContentHandler->checkModelID('wikitext')
#1 /usr/local/apache/common-local/php-1.21wmf2/includes/specials/SpecialComparePages.php(124): ContentHandler->createDifferenceEngine(Object(RequestContext), 518748752, 520943479, NULL, false, false)
#2 [internal function]: SpecialComparePages::showDiff(Array, Object(HTMLForm))
#3 /usr/local/apache/common-local/php-1.21wmf2/includes/HTMLForm.php(410): call_user_func(Array, Array, Object(HTMLForm))
#4 /usr/local/apache/common-local/php-1.21wmf2/includes/specials/SpecialComparePages.php(106): HTMLForm->trySubmit()
#5 /usr/local/apache/common-local/php-1.21wmf2/includes/SpecialPage.php(599): SpecialComparePages->execute(NULL)
#6 /usr/local/apache/common-local/php-1.21wmf2/includes/SpecialPageFactory.php(497): SpecialPage->run(NULL)
#7 /usr/local/apache/common-local/php-1.21wmf2/includes/Wiki.php(291): SpecialPageFactory::executePath(Object(Title), Object(RequestContext))
#8 /usr/local/apache/common-local/php-1.21wmf2/includes/Wiki.php(554): MediaWiki->performRequest()
#9 /usr/local/apache/common-local/php-1.21wmf2/includes/Wiki.php(447): MediaWiki->main()
#10 /usr/local/apache/common-local/php-1.21wmf2/index.php(59): MediaWiki->run()
#11 /usr/local/apache/common-local/live-1.5/index.php(3): require('/usr/local/apac...')
#12 {main}
Comment 1 Daniel Kinzler 2012-11-02 11:56:34 UTC
On a first glance, this looks like someone comparing two pages with different content models. It's clear that this would cause issues, though perhaps it can be allowed if both content models are text based. Also this should not cause a fatal error. I'll look into it.
Comment 2 Daniel Kinzler 2012-11-05 16:24:06 UTC
should be fixed by I6b385fcd
Comment 3 db [inactive,noenotif] 2012-11-11 13:29:57 UTC
(In reply to comment #2)
> should be fixed by I6b385fcd

Status Merged
Comment 4 abraham.taherivand 2013-09-04 15:05:53 UTC
Verified in Wikidata demo time

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links