Page MenuHomePhabricator

ContentHandler.php error when importing xml-dump to mediawiki 1.28
Open, Needs TriagePublic

Description

Switching my wiki to a new device, and upgrading 1.26.2 to 1.28 at the same time.

Old wiki had scribuntu installed with

require_once "$IP/extensions/Scribunto/Scribunto.php";
$wgScribuntoDefaultEngine = 'luastandalone';
$wgScribuntoEngineConf['luastandalone']['luaPath'] = '/usr/bin/lua';

When importing an xml-dump from 1.26 wiki to the new 1.28 I get this error:

[fd7ed886a8d01441d1fc3650] [no req] MWUnknownContentModelException from line 347 of /var/www/html/MediaWiki/includes/content/ContentHandler.php: The content model 'Scribunto' is not registered on this wiki.
See https://www.mediawiki.org/wiki/Content_handlers to find out which extensions handle this content model.
Backtrace:
#0 /var/www/html/MediaWiki/includes/import/WikiRevision.php(332): ContentHandler::getForModelID(string)
#1 /var/www/html/MediaWiki/includes/import/WikiImporter.php(863): WikiRevision->getContentHandler()
#2 /var/www/html/MediaWiki/includes/import/WikiImporter.php(814): WikiImporter->processRevision(array, array)
#3 /var/www/html/MediaWiki/includes/import/WikiImporter.php(756): WikiImporter->handleRevision(array)
#4 /var/www/html/MediaWiki/includes/import/WikiImporter.php(564): WikiImporter->handlePage()
#5 /var/www/html/MediaWiki/maintenance/importDump.php(318): WikiImporter->doImport()
#6 /var/www/html/MediaWiki/maintenance/importDump.php(277): BackupReader->importFromHandle(resource)
#7 /var/www/html/MediaWiki/maintenance/importDump.php(108): BackupReader->importFromStdin()
#8 /var/www/html/MediaWiki/maintenance/doMaintenance.php(111): BackupReader->execute()
#9 /var/www/html/MediaWiki/maintenance/importDump.php(323): require_once(string)
#10 {main}

The import fails after 800-ish pages.

New wiki runs:
MediaWiki 1.28.0
PHP 5.6.27-0+deb8u1 (apache2handler)
MySQL 5.5.53-0+deb8u1
ICU 52.1

No other customization other than $wgShowExceptionDetails = true; in LocalSettings.php.

Only extensions are the ones installed during setting up the wiki.

Event Timeline

Xyyx created this task.Dec 13 2016, 10:26 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptDec 13 2016, 10:26 AM
saper added a subscriber: saper.Mar 2 2017, 1:18 AM

Kind of duplicate of T49270 ?