I'm trying to import a dump, so I know to use importDump.
However, that's all I know.
Now, I know the answer is "How do you expect to do anything without reading the documentation?" but importDump doesn't even tell me which Wiki page to look at. Plus, I'm a cowboy. Running software without reading the docs has worked pretty well for me in the past, so why shouldn't it this time?
So I go to the command line and run it, but it just sits there, waiting for input, I suppose. Asking it for --help does nothing. Feeding it /dev/null with the vain hope of getting some useful error message only spews (in my xdebug-enabled installation) the following errors:
PHP Warning: XMLReader::read(): uploadsource://b9c91e0b515c5d3cc26e72bfe3e2c3e7:1: parser error : Extra content at the end of the document in includes/Import.php on line 347
PHP Stack trace:
PHP 1. {main}() maintenance/importDump.php:0
PHP 2. BackupReader->importFromStdin() maintenance/importDump.php:184
PHP 3. BackupReader->importFromHandle() maintenance/importDump.php:134
PHP 4. WikiImporter->doImport() maintenance/importDump.php:156
PHP 5. XMLReader->read() includes/Import.php:347
Warning: XMLReader::read(): uploadsource://b9c91e0b515c5d3cc26e72bfe3e2c3e7:1: parser error : Extra content at the end of the document in includes/Import.php on line 347
Call Stack:
0.0005 718336 1. {main}() maintenance/importDump.php:0 0.0366 6141008 2. BackupReader->importFromStdin() maintenance/importDump.php:184 0.0366 6141840 3. BackupReader->importFromHandle() maintenance/importDump.php:134 0.0392 6736824 4. WikiImporter->doImport() maintenance/importDump.php:156 0.0392 6736904 5. XMLReader->read() includes/Import.php:347
PHP Warning: XMLReader::read(): in includes/Import.php on line 347
PHP Stack trace:
PHP 1. {main}() maintenance/importDump.php:0
PHP 2. BackupReader->importFromStdin() maintenance/importDump.php:184
PHP 3. BackupReader->importFromHandle() maintenance/importDump.php:134
PHP 4. WikiImporter->doImport() maintenance/importDump.php:156
PHP 5. XMLReader->read() includes/Import.php:347
Warning: XMLReader::read(): in includes/Import.php on line 347
Call Stack:
0.0005 718336 1. {main}() maintenance/importDump.php:0 0.0366 6141008 2. BackupReader->importFromStdin() maintenance/importDump.php:184 0.0366 6141840 3. BackupReader->importFromHandle() maintenance/importDump.php:134 0.0392 6736824 4. WikiImporter->doImport() maintenance/importDump.php:156 0.0392 6736904 5. XMLReader->read() includes/Import.php:347
PHP Warning: XMLReader::read(): ^ in includes/Import.php on line 347
PHP Stack trace:
PHP 1. {main}() maintenance/importDump.php:0
PHP 2. BackupReader->importFromStdin() maintenance/importDump.php:184
PHP 3. BackupReader->importFromHandle() maintenance/importDump.php:134
PHP 4. WikiImporter->doImport() maintenance/importDump.php:156
PHP 5. XMLReader->read() includes/Import.php:347
Warning: XMLReader::read(): ^ in includes/Import.php on line 347
Call Stack:
0.0005 718336 1. {main}() maintenance/importDump.php:0 0.0366 6141008 2. BackupReader->importFromStdin() maintenance/importDump.php:184 0.0366 6141840 3. BackupReader->importFromHandle() maintenance/importDump.php:134 0.0392 6736824 4. WikiImporter->doImport() maintenance/importDump.php:156 0.0392 6736904 5. XMLReader->read() includes/Import.php:347
PHP Warning: XMLReader::read(): An Error Occured while reading in includes/Import.php on line 347
PHP Stack trace:
PHP 1. {main}() maintenance/importDump.php:0
PHP 2. BackupReader->importFromStdin() maintenance/importDump.php:184
PHP 3. BackupReader->importFromHandle() maintenance/importDump.php:134
PHP 4. WikiImporter->doImport() maintenance/importDump.php:156
PHP 5. XMLReader->read() includes/Import.php:347
Warning: XMLReader::read(): An Error Occured while reading in includes/Import.php on line 347
Call Stack:
0.0005 718336 1. {main}() maintenance/importDump.php:0 0.0366 6141008 2. BackupReader->importFromStdin() maintenance/importDump.php:184 0.0366 6141840 3. BackupReader->importFromHandle() maintenance/importDump.php:134 0.0392 6736824 4. WikiImporter->doImport() maintenance/importDump.php:156 0.0392 6736904 5. XMLReader->read() includes/Import.php:347
Expected <mediawiki> tag, got
Backtrace:
#0 maintenance/importDump.php(156): WikiImporter->doImport()
#1 maintenance/importDump.php(134): BackupReader->importFromHandle(Resource id #30)
#2 maintenance/importDump.php(184): BackupReader->importFromStdin()
#3 {main}
Fine. Time to use Google, read the source, and file a bug.
Version: 1.18.x
Severity: enhancement