Hello
I did a XML backup of a Wiki database using phpMyAdmin.
Then I tried to import it in a new empty Wiki. I tried php importDump.php wiki.xml
1. I got a series of Warnings I do not understand :
PHP Warning: xml_parse(): Unable to call handler () in ../mediawiki/includes/specials/SpecialImport.php on line 560
2 an an error :
Erreur lors de l’analyse de l’import XML à la ligne 6586, col 77 (octet 255543; "</cl_sortkey> ") : Invalid character
(Error when analyzing the XML import a line 6586, col 77 ...)
Is this procedure the good one to import such an XML database ?
Thanks François Colonna
phpMyAdmin isn't how you export to XML, AFAIK there's a script in the maintenance directory for exporting in batch.
Darren VanBuren ------------------------- Sent from my iPod
Try Fedora 10 today. Fire it up. http://fedoraproject.org/
On Mar 16, 2009, at 2:09, Frames Project frames@lct.jussieu.fr wrote:
Hello
I did a XML backup of a Wiki database using phpMyAdmin.
Then I tried to import it in a new empty Wiki. I tried php importDump.php wiki.xml
- I got a series of Warnings I do not understand :
PHP Warning: xml_parse(): Unable to call handler () in ../mediawiki/includes/specials/SpecialImport.php on line 560
2 an an error :
Erreur lors de l’analyse de l’import XML à la ligne 6586, col 77 (octet 255543; "</cl_sortkey> ") : Invalid character
(Error when analyzing the XML import a line 6586, col 77 ...)
Is this procedure the good one to import such an XML database ?
Thanks François Colonna
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Darren VanBuren wrote:
phpMyAdmin isn't how you export to XML, AFAIK there's a script in the maintenance directory for exporting in batch.
Darren VanBuren
Right. It is called dumpBackup.php No idea what you did from phpMyAdmin, but it wasn't a MediaWiki XML Dump. You may be able to reimport it using phpMyAdmin, though.
I think https://bugzilla.wikimedia.org/show_bug.cgi?id=18022 (Special:Import will eat all ampersands!) is a serious bug that deserves more attention (than I can give today).
It will introduce corruptions to one's wiki pages that will only be noticed months later, by which time they will be intertwined with other edits.
That is much worse than if it just stopped working.
On 3/18/09 12:44 PM, jidanni@jidanni.org wrote:
I think https://bugzilla.wikimedia.org/show_bug.cgi?id=18022 (Special:Import will eat all ampersands!) is a serious bug that deserves more attention (than I can give today).
This is a combination of bugs in the particular versions of PHP and libxml2 you have installed, and has been fixed in the most recent versions of those libraries.
See https://bugzilla.wikimedia.org/show_bug.cgi?id=16554
-- brion vibber (brion @ wikimedia.org)
"BV" == Brion Vibber brion@wikimedia.org writes:
BV> On 3/18/09 12:44 PM, jidanni@jidanni.org wrote:
I think https://bugzilla.wikimedia.org/show_bug.cgi?id=18022 (Special:Import will eat all ampersands!) is a serious bug that deserves more attention (than I can give today).
BV> This is a combination of bugs in the particular versions of PHP and BV> libxml2 you have installed, and has been fixed in the most recent BV> versions of those libraries.
BV> See https://bugzilla.wikimedia.org/show_bug.cgi?id=16554
OK, I added to that bug:
I would issue an announcement:
"If you have used Special:Import, ...., ...., since approximately ..... please check your imported pages for subtle corruptions, e.g., < Please see my [http://example.com/index.php?title=Resume&uselang=en resume]
Please see my [http://example.com/index.php?title=Resumeuselang=en resume]
Unnoticed, there corruptions may become entangled in later edits, making repair even more frustrating. Users are advised to upgrade to MediaWiki 1.14.xx, 1.13.yy,.. The new versions of Special:Import,... contain a test that will terminate with an error message: The following faulty libraries out of MediaWiki's control and must be updated first to avoid data corruption: ..."
I hope I'm not overdoing it, but subtle data corruption is one of the most insidious bugs.
Hello
I am using :
* MediaWiki: 1.11.0 * PHP: 5.1.3RC4-dev (cgi-fcgi) * MySQL: 5.0.67
I have a problem with the mixture of <includeonly> and subst in a Template :
"Template:S" looks like : <includeonly>{{subst:A page template}}</includeonly>
and "Template:A page template" looks like This is the content of a page template
when, after saving, I edit again "Template:S" it now contains :
<includeonly>This is the content of a page template</includeonly>
The subst has been done, as if <includeonly> has no effect.
This uncorrect behaviour appears and disappears, I do not know why, there may be some conflict with extensions ?
Could someone help me to understand this very annoying phenomenon ?
The wiki is http://comprendrelactualite.free.fr/mediawiki/index.php so, you can look at what is implemented in.
Thanks Francois Colonna
mediawiki-l@lists.wikimedia.org