Last modified: 2014-07-12 10:31:57 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 T49270, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 47270 - importDump should emit a helpful message if some ContentHandler is missing
importDump should emit a helpful message if some ContentHandler is missing
Status: NEW
Product: MediaWiki
Classification: Unclassified
Export/Import (Other open bugs)
1.22.0
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-16 01:08 UTC by Ori Livneh
Modified: 2014-07-12 10:31 UTC (History)
5 users (show)

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


Attachments

Description Ori Livneh 2013-04-16 01:08:47 UTC
If you try to import a dump with (for example) Scribunto modules into a wiki that does not have Scribunto installed, you get "No handler for model 'Scribunto'' registered in $wgContentHandlers", followed by a big scary stack trace. We should catch that and emit something more useful, like a hint to go look for an appropriate extension.

Maybe we should create a MediaWiki.org mapping of ContentHandler types to their canonical implementation..
Comment 1 Ori Livneh 2013-04-16 01:21:16 UTC
(In reply to comment #0)
> Maybe we should create a MediaWiki.org mapping of ContentHandler types to
> their canonical implementation..

OK, started: http://www.mediawiki.org/wiki/Content_handlers
Comment 2 db [inactive,noenotif] 2013-04-20 08:19:03 UTC
See also bug 47238
Comment 3 Southparkfan 2014-07-12 10:31:57 UTC
This bug still occurs here, while importing an XML file containing some 200000 (or something like that) pages. Is the only solution here installing Extension:Scribunto?

[a795deac] [no req]   Exception from line 324 of [PATH]\in
cludes\content\ContentHandler.php: No handler for model 'Scribunto' registered i
n $wgContentHandlers
Backtrace:
#0 [PATH]\includes\content\ContentHandler.php(154): Conten
tHandler::getForModelID(string)
#1 [PATH]\includes\Import.php(1264): ContentHandler::makeC
ontent(string, Title, string, string)
#2 [PATH]\includes\Import.php(255): WikiRevision->getConte
nt()
#3 [internal function]: WikiImporter->importRevision(WikiRevision)
#4 [PATH]\maintenance\importDump.php(165): call_user_func(
array, WikiRevision)
#5 [internal function]: BackupReader->handleRevision(WikiRevision, WikiImporter)

#6 [PATH]\includes\Import.php(363): call_user_func_array(a
rray, array)
#7 [PATH]\includes\Import.php(718): WikiImporter->revision
Callback(WikiRevision)
#8 [PATH]\includes\Import.php(670): WikiImporter->processR
evision(array, array)
#9 [PATH]\includes\Import.php(621): WikiImporter->handleRe
vision(array)
#10 [PATH]\includes\Import.php(485): WikiImporter->handleP
age()
#11 [PATH]\maintenance\importDump.php(286): WikiImporter->
doImport()
#12 [PATH]\maintenance\importDump.php(253): BackupReader->
importFromHandle(resource)
#13 [PATH]\maintenance\importDump.php(97): BackupReader->i
mportFromStdin()
#14 [PATH]\maintenance\doMaintenance.php(104): BackupReade
r->execute()
#15 [PATH]\maintenance\importDump.php(291): require_once(s
tring)
#16 {main}

MediaWiki: 1.23.1
PHP: 5.5.9 (apache2handler)
MySQL: 5.6.16
XAMPP: v3.2.1, wiki not public available

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


Navigation
Links