Trying to import a Wordpress 3.0 export file. Here are the errors:
* warning: XMLReader::read() [xmlreader.read]: /var/www/html/BASC/testsite/sites/default/files/wordpress/wordpress.2010-07-12(2).xml:22658: parser error : Opening and ending tag mismatch: encoded line 0 and script in /var/www/html/BASC/testsite/sites/all/modules/wordpress_import/wordpress_import.module on line 1424.
* warning: XMLReader::read() [xmlreader.read]: // ]]>
Any ideas?
Comments
Comment #1
DrupalKing commentedsorry, should have used this for the code:
Comment #3
yan commentedI'm getting this with a WordPress 2.9.2 export:
Comment #4
yan commentedI solved my problem by deleting some javascript from two articles of the original source.
Comment #5
lavamind commentedI would need to examine your Wordpress export file to determine what's going on here.
Comment #6
ParisLiakos commentedi had the same error:
Sorry i cant attach XML file here its bigger than 1mb.
if you want it though i can make it available through an external link
Comment #7
lavamind commented@parisz: Yes if you can provide the file either here or via an external link, it would help.
Comment #8
rodneykgary commentedI am getting the same error message as above as well.
I have loaded my file to the following site to view.
https://files.me.com/rodneykgary/5i6dtw
Comment #9
ParisLiakos commentedi solved this..i started importing by month and that helped me locate the problem.
It was indeed Opening and ending tag mismatch thanks to blogger's/wordpress awfully bad-written code.
Anyone having this error,open the xml file with a nice html editor so you can see the tags opening/closing.Then locate the mismatches/bad closures (it will be near the lines that error points)and fix them.
i fixed the tags and import worked as charm!
Thanks
Comment #10
lavamind commentedPHP's XML Reader, which is used in Wordpress Import, doesn't really tolerate bad XML.
However you don't have to look everywhere in your file to find the problem. In the first line of the error message, the problematic line number is output. Example :
parser error : Opening and ending tag mismatch: encoded line 12873. So you just need to open a text editor and jump to the line indicated here and fix the XML problem.