Last modified: 2014-07-12 10:31:57 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..
(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
See also bug 47238
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