Page MenuHomePhabricator

MWException from line 974 of WikiImporter.php: Missing text field in import
Open, Needs TriagePublic

Description

When running import-wikitech.sh manually for T292342: Wikitech and wikitech-static out of sync...

23900 (61.26 pages/sec 61.26 revs/sec)
24000 (60.81 pages/sec 60.81 revs/sec)
Done!
You might want to run rebuildrecentchanges.php to regenerate RecentChanges,
and initSiteStats.php to update page and revision counts
100 (40.26 pages/sec 40.26 revs/sec)
200 (69.97 pages/sec 69.97 revs/sec)
MWException from line 974 of /srv/mediawiki/w/includes/import/WikiImporter.php: Missing text field in import.
#0 /srv/mediawiki/w/includes/import/WikiImporter.php(1134): WikiImporter->makeContent(Object(Title), '830', Array)
#1 /srv/mediawiki/w/includes/import/WikiImporter.php(1111): WikiImporter->processUpload(Array, Array)
#2 /srv/mediawiki/w/includes/import/WikiImporter.php(863): WikiImporter->handleUpload(Array)
#3 /srv/mediawiki/w/includes/import/WikiImporter.php(678): WikiImporter->handlePage()
#4 /srv/mediawiki/w/maintenance/importDump.php(353): WikiImporter->doImport()
#5 /srv/mediawiki/w/maintenance/importDump.php(286): BackupReader->importFromHandle(Resource id #741)
#6 /srv/mediawiki/w/maintenance/importDump.php(130): BackupReader->importFromFile('compress.zlib:/...')
#7 /srv/mediawiki/w/maintenance/doMaintenance.php(112): BackupReader->execute()
#8 /srv/mediawiki/w/maintenance/importDump.php(358): require_once('/srv/mediawiki/...')
#9 {main}
Rebuilding $wgRCMaxAge=7776000 seconds (90 days)

I'm guessing it's from the step of php maintenance/importDump.php --uploads /srv/imports/labswiki-${DATE}.xml.gz

Event Timeline

I don't know who "owns" the wikitech sync setup these days. WMCS nominally, I suppose?

Yeah.

Not sure at this point whether there's something odd in either the export or the import script (ie a MW bug, which seems possibly more likely), or something wikitech/wikitech-static specific.