I am running into one or two issues.
Some of the posts and comments, as well as the tags and categories are importing well. Thanks.
But the import is incomplete, with errors in the log:
Invalid argument supplied for foreach() in sites/all/modules/wordpress_import/wordpress_import.module on line 768.
and later:
XMLReader::read() [xmlreader.read]: /sites/default/files/wordpress/wordpress.2010-02-13-SG.xml:11935: parser error : Opening and ending tag mismatch: encoded line 0 and script in /sites/all/modules/wordpress_import/wordpress_import.module on line 939.
followed by 3 other errors
Thanks
Comments
Comment #1
Alan.Guggenheim commentedLooking into the XML file, here is the block that seems to be creating the (first) problem:
// // //]]>
Any recommandation?
Comment #2
lavamind commentedCould you please provide a sample WXR export file ?
Also, what version of Wordpress are you exporting from ?
Comment #3
Alan.Guggenheim commentedI was exporting from the latest: 2.9.1
It looks like there were about a dozen or so thst were creating problems. I edited my xml file, deleting all of them between and , and then the import went very well.
Thanks for a great module.
Also I was able to save time by just going through the first step (loading the xmr file), then looking in the log report. The first error had the offending line number. Just deleted the item in question, then repeated until it found all the offending ones.
Looks like most of them if not all are very long lines, often with embedded java scripts.
The file is about 10MB, let me know if you want it all, or just one or more of the offending items.
Comment #4
J-Chance commentedsubscribing. Having the same issue
Comment #5
lavamind commentedFor XMLReader errors, please see #693220: Import chokes on XML errors produced by Wordpress. A fix for this is present in 6.x-2.x-dev. (see updated README file from that version as well)
If the problem persists after reading README and using 6.x-2.x-dev, feel free to reopen.
Comment #6
joncianciullo commentedI had similar problems - to fix the XML file I had to do search/replace the following:
1. In Wordpress purge all spam comments prior to downloading exporting file.
2. Search (regex) the export file and replace with empty string:
<wp:meta_value>(.*)</wp:meta_value>3. Search (regex) the export file and replace with empty string:
<excerpt:encoded>(.*)</excerpt:encoded>4. Search (text) the export file and replace with empty string:
<![CDATA[]]>I'm on a windows machine and used PowerGrep to do these changes.