Page MenuHomePhabricator

Error when importing JavaScript pages: Can't save non-default content model with $wgContentHandlerUseDB disabled: model is wikitext, default for MediaWiki:Gadget-libUtil.js is javascript
Closed, InvalidPublic

Description

Tried to import a JS file from Commonswiki to testwiki using [[Special:Import]]. Testwiki runs 1.21wmf8 (2227cd7).

Page was imported but no indication in the revision history (usually there is a "User imported \d+ revisions from <wiki>").

Also the following error message was shown:

Import failed: Can't save non-default content model with $wgContentHandlerUseDB disabled: model is wikitext , default for MediaWiki:Gadget-libUtil.js is javascript


Version: 1.21.x
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=45750

Details

Reference
bz44156

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:27 AM
bzimport set Reference to bz44156.
bzimport added a subscriber: Unknown Object (MLST).
  • Bug 47238 has been marked as a duplicate of this bug. ***

Encountered this problem today while trying to import a module page [1] from english wikipedia to hindi wikipedia. I received the following error message:

इम्पोर्ट असफल रहा Can't save non-default content model with $wgContentHandlerUseDB disabled: model is wikitext , default for Module:Convert/text is Scribunto

The beginning hindi part is "Import failed".

Despite this message, the import has completed successfully (there's an entry in the import log[2] and the page is now on hi-wp[3])

However, there is no entry in the module page's history of the import[4] (separate bug?)

[1]: https://en.wikipedia.org/wiki/Module:Convert/text
[2]: https://hi.wikipedia.org/wiki/%E0%A4%B5%E0%A4%BF%E0%A4%B6%E0%A5%87%E0%A4%B7:%E0%A4%B2%E0%A5%89%E0%A4%97/import
[3]: https://hi.wikipedia.org/wiki/Module:Convert/text
[4]: https://hi.wikipedia.org/w/index.php?title=Module:Convert/text&action=history

Jdforrester-WMF subscribed.

wgContentHandlerUseDB has been deprecated as of MediaWiki 1.34 and removed as of MediaWiki 1.35.