Closed (fixed)
Project:
WordPress Migrate
Version:
7.x-2.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
6 Jan 2013 at 16:22 UTC
Updated:
2 Jul 2013 at 16:51 UTC
Good Day
I try import from file
But i have error message "The uploaded file is not a valid WordPress export"
But, i import from this file to wordpress.com, its imported correctly
Comments
Comment #1
Valeratal commentedModule "WordPress Migrate" need
and
But why?
Comment #2
mikeryanIs there any more information you can give? There's not much here to go on...
Comment #3
Valeratal commentedSorry, tags not showed
Module WordPress Migrate need "link" and "wp:base_blog_url"
Comment #4
cafuego commentedI've had this problem (with an export file that was not from wordpress.com) and the problem turned out to be two empty lines that wordpress puts at the top of the exported XML file. These cause the file to fail validation and the export to never run.
I found the problem after running
xmllintas suggested by http://atendesigngroup.com/blog/painlessly-migrate-wordpress-drupalIt might be nice to add a reference to xmllint in the docs of this module, as the libxml errors are, as far as I can tell, generally less than helpful.
Comment #5
mikeryan@Valeratel: Sorry, didn't review your response because the issue status was postponed, when responding be sure to set the issue status to "active" if you want it reviewed. Not to "needs review", which is used when submitting patches.
The wordpress_migrate module uses the link and base_blog_url values to identify the source blog, both to internally distinguish it from others (some people will import multiple WordPress blogs into one Drupal installation) and to display in the UI so you know which blog you're importing. These should always be present in any exported WordPress file, are they not present in yours?
@cafuego: We should be able to easily have wordpress_migrate strip empty lines from the beginning of the file.
Comment #6
cafuego commentedYay :-)
Comment #7
mikeryanComment #8
mikeryanOK, finally got around to doing this, empty lines at the beginning now discarded.