Wordpress Error "Failed to import Media"

Posted June 11, 2014 16.6k views
I followed the instructions "How To Install Wordpress, Nginx, PHP, and Varnish on Ubuntu 12.04" here: and I'm trying to import content form my old wordpress site, but import of media is failing with error "Failed to import Media" and My old site runs on Apache

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
5 answers
How are you trying to import content? Using an xml file exported from the old site? If so, is your old site still reachable on the internet? If you look at the contents of the xml file, you'll see that it includes links for the image files. So to import them, the old site must still be reachable. There are a number of reasons that this could happen. Another one is that the the import file contains custom post types and data related to a specific theme. If that's the case, make sure to switch your new Wordpress site's theme to match the old site's first.
Yes the site is accessible on internet, and I did check the image links in the exported xml file and they are too accessible
Nope I did try your suggestion but did not work, and I have an another droplet with one click install and it works perfectly there
The issue occurs only when I use Nginx, when I try with Apache import goes through smoothly

Did you ever figure this out? I’m having the same problem now and it’s really cramping my style.