bueltge / addquicktag

This plugin makes it easy to add Quicktags to the html - and visual-editor.
http://wordpress.org/extend/plugins/addquicktag/
GNU General Public License v3.0
17 stars 10 forks source link

XML error messages when trying to import #7

Closed SleeplessinDC closed 12 years ago

SleeplessinDC commented 12 years ago

I exported a file from AddQuicktag Version: 2.2.1 from a WordPress installation. I just tried to import it into another WP installation and got the following error messages at the top of the page.

Warning: simplexml_load_file() [function.simplexml-load-file]: /tmp/phpFdEcr9:4: parser error : XML declaration allowed only at the start of the document in /home/**/jobs.stcwdc.org/wp-content/plugins/addquicktag/inc/class-imexport.php on line 194

Warning: simplexml_load_file() [function.simplexml-load-file]: <?xml version="1.0" encoding="UTF-8"?> in /home/**/jobs.stcwdc.org/wp-content/plugins/addquicktag/inc/class-imexport.php on line 194

Warning: simplexml_load_file() [function.simplexml-load-file]: ^ in /home/**/jobs.stcwdc.org/wp-content/plugins/addquicktag/inc/class-imexport.php on line 194

Warning: Invalid argument supplied for foreach() in /home/**/jobs.stcwdc.org/wp-content/plugins/addquicktag/inc/class-imexport.php on line 198

bueltge commented 12 years ago

please see this thread on the support forum; I think is an problem on your server. Can you import on a local mashine or send mie your export file.

SleeplessinDC commented 12 years ago

I solved the problem. I looked in the file and the exported file had 3 blank lines at the top. I deleted them and was then able to import the file. Thanks. That is a lot easier than having to type everything in again for another site.

bueltge commented 12 years ago

Great; I hope this was not a bug. Thanks for reply.