Last modified: 2014-07-26 08:56:31 UTC
Trying to import an XML file that uses a prefix, e.g. "mw", for the namespace "http://www.mediawiki.org/xml/export-0.3.xsd" fails (exception messages are shown). However, the Special:Import page reports that all pages were imported.
Can you provide a sample file to test with?
(In reply to comment #1) > Can you provide a sample file to test with? I'll send you one per Email. It looks like this: <mw:mediawiki xmlns:mw="http://www.mediawiki.org/xml/export-0.3/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mediawiki.org/xml/export-0.3/ http://www.mediawiki.org/xml/export-0.3.xsd" version="0.3" xml:lang="en"> <mw:page> <mw:title>Test</mw:title> <mw:revision> <mw:timestamp>2010-12-31T00:00:00Z</mw:timestamp> <mw:contributor><mw:username>WikiSysop</mw:username><mw:id>1</mw:id></mw:contributo r> <mw:text xml:space="preserve">Test</mw:text> </mw:revision> </mw:page> </mw:mediawiki> And the results is: Warning: xml_parse() [function.xml-parse]: Unable to call handler () in C:\Programme\XAMPP 1.5.0 pl1\xampp\htdocs\prothesaurus\includes\SpecialImport.php on line 276 Warning: xml_parse() [function.xml-parse]: Unable to call handler () in C:\Programme\XAMPP 1.5.0 pl1\xampp\htdocs\prothesaurus\includes\SpecialImport.php on line 276 Warning: xml_parse() [function.xml-parse]: Unable to call handler () in C:\Programme\XAMPP 1.5.0 pl1\xampp\htdocs\prothesaurus\includes\SpecialImport.php on line 276 Warning: xml_parse() [function.xml-parse]: Unable to call handler () in C:\Programme\XAMPP 1.5.0 pl1\xampp\htdocs\prothesaurus\includes\SpecialImport.php on line 276 Warning: xml_parse() [function.xml-parse]: Unable to call handler () in C:\Programme\XAMPP 1.5.0 pl1\xampp\htdocs\prothesaurus\includes\SpecialImport.php on line 276 Warning: xml_parse() [function.xml-parse]: Unable to call handler () in C:\Programme\XAMPP 1.5.0 pl1\xampp\htdocs\prothesaurus\includes\SpecialImport.php on line 276 Warning: xml_parse() [function.xml-parse]: Unable to call handler () in C:\Programme\XAMPP 1.5.0 pl1\xampp\htdocs\prothesaurus\includes\SpecialImport.php on line 276 Warning: xml_parse() [function.xml-parse]: Unable to call handler () in C:\Programme\XAMPP 1.5.0 pl1\xampp\htdocs\prothesaurus\includes\SpecialImport.php on line 276 Warning: xml_parse() [function.xml-parse]: Unable to call handler () in C:\Programme\XAMPP 1.5.0 pl1\xampp\htdocs\prothesaurus\includes\SpecialImport.php on line 276 Import pages From ProThesaurus Import succeeded!
Mass compoment change: <some> -> Export/Import
(In reply to comment #2) > (In reply to comment #1) > > Can you provide a sample file to test with? > > I'll send you one per Email. It looks like this: > You can probably attach that to the bug.
Some work done in r44246; some further work needed (see comments on revision).
Change 149508 had a related patch set uploaded by TTO: Use XML localName when importing https://gerrit.wikimedia.org/r/149508