Krakengr / wp-to-bludit

Converts the wordpress database xml file to the bludit's data structure
MIT License
2 stars 2 forks source link

Failed loading XML #1

Open boogiewoo opened 6 years ago

boogiewoo commented 6 years ago

Failed loading XML

got a 53mb xml file and this error message...i guess it comes from WordPress 3.7 any suggestion?

the php message looks like this [Sat Mar 3 21:17:12 2018] PHP Warning: simplexml_load_string(): Entity: line 613361: parser error : Premature end of data in tag meta_value line 613361 in /media/surveillance/CCC9-E4A3/bludit/bl-plugins/wp-to-bludit/plugin.php on line 107 [Sat Mar 3 21:17:12 2018] PHP Warning: simplexml_load_string(): Entity: line 613361: parser error : Premature end of data in tag commentmeta line 613359 in /media/surveillance/CCC9-E4A3/bludit/bl-plugins/wp-to-bludit/plugin.php on line 107 [Sat Mar 3 21:17:12 2018] PHP Warning: simplexml_load_string(): Entity: line 613361: parser error : Premature end of data in tag comment line 613277 in /media/surveillance/CCC9-E4A3/bludit/bl-plugins/wp-to-bludit/plugin.php on line 107 [Sat Mar 3 21:17:12 2018] PHP Warning: simplexml_load_string(): Entity: line 613361: parser error : Premature end of data in tag item line 380555 in /media/surveillance/CCC9-E4A3/bludit/bl-plugins/wp-to-bludit/plugin.php on line 107 [Sat Mar 3 21:17:12 2018] PHP Warning: simplexml_load_string(): Entity: line 613361: parser error : Premature end of data in tag channel line 28 in /media/surveillance/CCC9-E4A3/bludit/bl-plugins/wp-to-bludit/plugin.php on line 107 [Sat Mar 3 21:17:12 2018] PHP Warning: simplexml_load_string(): Entity: line 613361: parser error : Premature end of data in tag rss line 20 in /media/surveillance/CCC9-E4A3/bludit/bl-plugins/wp-to-bludit/plugin.php on line 107

Krakengr commented 6 years ago

I tried it with a big file with no errors at all. Maybe is the xml structure that causes the problem. One solution is to install the latest WP (or create a free one at wordpress.com) and import the xml file and then export the file and retry. Or send me a dummy (v3.7) xml file with random posts, to test it.

boogiewoo commented 6 years ago

thanks a lot. wordpress.com also crashed :p i try to get a smaller xml file and retry the import process.

Krakengr commented 6 years ago

Use this tool to split your file: http://rangerpretzel.com/content/view/20/1/