Last modified: 2014-11-12 03:58:31 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 45750 - Special:Import fails poorly if ContentHandler models don't match
Special:Import fails poorly if ContentHandler models don't match
Status: NEW
Product: MediaWiki
Classification: Unclassified
Export/Import (Other open bugs)
All All
: Normal major with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
: 51504 (view as bug list)
Depends on:
Blocks: 72214
  Show dependency treegraph
Reported: 2013-03-05 20:10 UTC by Robert Rohde
Modified: 2014-11-12 03:58 UTC (History)
11 users (show)

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


Description Robert Rohde 2013-03-05 20:10:11 UTC
I'm not sure if this is a Scribunto problem or a something else problem, but I tried to use Special:Import to move a module from test2wiki, and I got the following error:

Import failed: No handler for model 'Scribunto'' registered in $wgContentHandlers

My test settings were:


Copy all
Destination all
comment: test import.

No entry is created in the import log.  However, a broken page is created at the destination saying:

The revision #0 of the page named "Headnote" does not exist.
</p><p>This is usually caused by following an outdated history link to a page that has been deleted.
Details can be found in the <a class="external text" href="//;page=Module:Headnote">deletion log</a>.

And it won't let one save anything to the page, instead giving a bogus edit conflict that can't be resolved.  The broken page can be removed using page deletion.

The import log does show that some Module pages were imported previously (abotu two weeks ago), so maybe this is a recent problem, or maybe my specific request is triggering it in some way.
Comment 1 Brad Jorsch 2013-03-05 23:19:48 UTC
The general cause is a version incompatibility. In order to properly support the auto-transclusion of /doc subpages, Scribunto's page handling was changed from "generic wikitext with an overridden display function to do it completely differently" to using ContentHandler with a new page type. test2 was updated yesterday, but enwiki won't be until next week.

But Special:Import shouldn't be creating a broken page like that, no matter what else is going on. So I'm going to poke this bug in that direction.
Comment 2 bennylin 2013-07-08 15:37:42 UTC
I had the same error and stumbled here. I've downloaded MW 1.21.0rc5, and started to export few templates from id.wp (notably string manipulations), but received the error. I've installed all the bundled extensions (minus two) plus the Scribunto extension.

Disregarding the effect on what I was trying to do, I concluded that from now on, people cannot (easily) export and import some very useful templates from the WMF projects that uses Scribunto to be used on previous installations of MW, thus making lives harder for some people who have to upgrade their sites. Please point me if the effect of Scribunto on non-WMF installations has been discussed and weighed before, because now I think that the way the Wikipedia templates have been used (exported/imported) should not have been "overwritten" with Scribunto (Modules) scripts...

The second thing is, Scribunto should be included in the bundled extensions from now on, because it's become integral part of how complex templates are handled in Wikipedia and other projects. (heck, there should be a list of "core" templates in the future releases!)
Comment 3 Brad Jorsch 2013-07-17 16:07:27 UTC
*** Bug 51504 has been marked as a duplicate of this bug. ***
Comment 4 Stefan Fussan 2013-10-29 08:20:37 UTC
If just tried to import the Module/doc file

- exported from Wikipedia/en (This file: Module:HtmlBuilder/doc)
- tried to import to Wikivoyage/de

got this error:

"Import fehlgeschlagen: Can't save non-default content model with $wgContentHandlerUseDB disabled: model is wikitext , default for Modul:HtmlBuilder/doc is Scribunto"

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