Wordpress Error "Failed to import Media"

June 11, 2014 4.4k views
I followed the instructions "How To Install Wordpress, Nginx, PHP, and Varnish on Ubuntu 12.04" here: https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-nginx-php-and-varnish-on-ubuntu-12-04 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
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
  • I edited my answer above to have another suggestion. Is there anymore to the error message?
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.

Have another answer? Share your knowledge.