Images not working after migration from self-hosted to WP.com

  • Unknown's avatar

    Hello!

    I just finished migrating my blog from self-hosted to wordpress.com last night, and I have already finished mapping my domain and made it the primary address of the new WP.com blog. (I was tired of paying for self-hosting and realized my blog was small enough to host on WP.com and then just map the domain.)

    Unfortunately, none of the images of the imported posts work because they are all sourced (img src=) from the wrong address, using the old directory structure from self-hosting: micapie.com/wp-content/uploads/2016/01/[assetfile.jpg]

    I know that the images imported, but none of the posts were updated reflect the new location of these assets. The new directory structure is micapieblog.files.wordpress.com/2016/01/[assetfile.jpg]

    What should I do to get the images to display correctly?

    Thanks so much!

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    (Wasn’t sure if I was supposed to tag this, so I added “staffhelp” and “support” tags. Sorry if this was the wrong thing to do.)

  • Unknown's avatar

    “Modlook”, which I’ve added, is the forum tag that will bring a staff member to this thread.

  • Unknown's avatar
  • Unknown's avatar

    I also realized that the images, as now stored at micablog.files.wordpress.com are now lowercase, so IMG_# is now img_#. This will also affect the source attributes when inserting into posts.

  • Hi there,

    Two questions:

    1) Is your self-hosted site still online?

    2) Is it still at the same domain it was when you created the export files?

    If your answers are ‘yes’, we might be able to help.

    The export file doesn’t contain the images, but only links to where they are hosted. After the import completes, we go looking for the files on the source site and start transferring them over, but it takes a bit longer than importing the content.

    If you took that site down or removed/edited the domain before that process completed, it means we couldn’t find the images there when we tried to fetch them. This will also prevent us from fetching them now.

  • Unknown's avatar

    Thank you for responding. That makes sense. I didn’t know to WAIT before re-mapping my DNS once the import was finished.

    1) The self-hosted site is still online but not accessible as I have re-mapped the domain name micapie.com to point to the wordpress.com name servers. (And I don’t know the IP address.)

    2) No, because I changed the mappings from ns#.dreamhost.com to ns#.wordpress.com

    Would it be possible for me to re-map the domain back to the dreamhost-hosted blog, “empty” the wordpress.com blog (micapieblog.wordpress.com) and do the export/import process again?

    Thank you!

  • If it’s possible for you to connect your domain to the old site again we might be able to still do this, yes. But I also need to point out it isn’t guaranteed. If the URL structures of the sites are too different, for example, it often fails. Also make sure that the source site is not set to private.

    Let me know when you’ve remapped the domain and I can ask a developer to try and import your images.

  • Unknown's avatar

    Great, thank you! I just changed the DNS back to Dreamhost and changed the primary domain for the target blog back to the wordpress.com address.

    Obviously, the domain remapping will take a big of time.

    I want to make sure I understand what happened. The posts all transferred after doing the XML-file import on WP.com, and I see a lot of images in the media library (so I assume some of them have been transferred.) However, none of the HTML for the posts was updated to reflect where the images files are stored on WP.com vs. how the corresponding image files were stored on my self-hosted blog. Will this get changed?

    What should I have done differently?

    Thanks so much!

  • From what you described, I think you just removed the domain from the source site before the process could complete. And the actual src links not updating is a common issue when importing from a .org site, so there’s nothing you could do to prevent that.

    I’m just going to wait a while for your domain’s name servers to update again, then I’ll put in a request that someone looks at this for you.

  • Unknown's avatar

    Fantastic, thank you so much for your prompt response! It looks like the source site is now accessible via the domain name. Much appreciated!

  • Thanks for letting me know. I’ve submitted a request and will update you when I hear back.

  • Hi there,

    I’ve just heard back from the person who was working on this, and it looks like we were able to import all of your images.

    To be on the safe side, please make sure that you have a full backup of your old site, but from what we can tell everything made it across.

    You can now map your domain to your WordPress.com site again and everything should keep working.

  • Unknown's avatar

    Thank you very much!

  • The topic ‘Images not working after migration from self-hosted to WP.com’ is closed to new replies.