Envira Gallery Blog

Digital Photography Tips, Tutorials and Resources

How to Fix Broken Image Links After a WordPress Migration

How to Fix Broken Image Links After a WordPress Migration

Last updated on Oct 4, 2021 by Waseem Abbas

Do you want to fix broken image links in your galleries? You may not see your images after a site migration because the link structure has changed. In this article, we will share how to fix broken image links after a WordPress migration.

By default, there is no feature in WordPress to fix broken image links or other issues after a migration. In some cases, your image files didn’t get transferred over at all. In that case, you should check out our guide on how to import external images in WordPress. However, for this tutorial, we will explain how to fix broken images when you know your images files have been transferred over.

Since the issue is very common, we added this feature to Envira Gallery. Now, you can fix the broken image issue in just a few clicks.

All you have to do to fix broken image links after a WordPress migration is:

  • Step 1. Install Envira Gallery
  • Step 2. Go to Envira Gallery settings and click the Fix button
  • Step 3. Save your settings

Ready to fix your broken images? Let’s go!

Step 1: Install Envira Gallery

First thing you need to do is install and activate the Envira Gallery plugin.

You can do this by going to Plugins » Add New and search for ‘Envira’. It will show you the option to install the Enivra Gallery plugin.

Install Envira Gallery Lite

In the next step, go ahead and activate the plugin to start creating beautiful image galleries.

Activate Envira Lite Plugin

Step 2: Fix Broken Image Links

After activation, you can go to Envira Gallery » Settings and scroll down to find the green color Fix button.

Fix Broken Image Links

Simply click on this button to Fix broken image links. It works magically to solve your broken image issues after a WordPress migration.

Step 3: Save Your Settings

Don’t forget to save the settings, so all of your broken image URLs will be fixed.

We also recommended that next time you migrate your site, use a WordPress migration plugin or manual scripts. That way, you won’t have the broken image issue in the future.

We hope this article has helped you to learn how to fix broken image links after a WordPress migration. You may also want to check out our guide on how to customize permalinks in WordPress or how to create a photography website in WordPress.

If you like this article, then please follow us on Facebook and Twitter for more free WordPress tutorials.

Using WordPress and want to get Envira Gallery free?

Envira Gallery helps photographers create beautiful photo and video galleries in just a few clicks so that they can showcase and sell their work.


  1. If you would like to migrate your website to WordPress then this article might be perfect for you. Sometimes image link broken for the migration time. Here you will get in details guideline How to Fix Broken Image Links After a WordPress. Thanks a lot for sharing this content with us.

  2. I am using the latest version o WP and the lastest version of Envira Lite. I just moved my site and all the pictures are gone from the gallery. I must be missing something because I cannot find the settings under Envira Gallery->Settings. I have checked the config area of some galleries, but to no avail. Am I just not seeing something?

      1. John, Katie and Val,

        Yes, that is correct– this feature is only available in Pro accounts. Regardless, we would be happy to help you fix your broken migration! If you are using Envira Lite, please contact us here:


        Make a note that Mary Fernandez sent you, so that we can easily identify you. Then, one of our developers will give you a hand.

        Thank you so much for using Envira Gallery!


  3. Trying out the Envira gallery that is bundled with X theme. It will not save any meta data and light box links to images suddenly disappeared while trying to save meta date – It worked initially and I was considering a 3 site license – but now, not so much. 🙁

    1. Hey Carla! It sounds like you may be having a compatibility issue with another plugin. I would try disabling all plugins except for Envira and see if that fixes the problem (then systematically turn them back on to see which one is causing the issue).

      If that doesn’t resolve the issue, then you’ll want to contact X theme. Since it’s bundled, it could be a theme issue.

  4. I am having the same issue as John Wright – “Envira Gallery->Settings” does not show up. Has there been any resolution to this issue?

  5. Mary, I have another problem. My WP site scarab13.co was performing great, but now most of the images are broken links. I checked and realized that most of my images are somehow renamed in media library (from regular names to something like o-u-oyz2qau.jpg). I have no idea how did this happen or how to fix it. Is this something you plugin could help me with? thanks

  6. Hi – I built my site on a staging version with envira pro and then when it was moved to the public url, the images disappeared from the galleries. The Fix button does not solve this. The galleries are still listed in the Envira tab and they have shortcode numbers and the pictures are there in the media library – just not in the galleries.

  7. This post seems a bit misleading. It gives instructions that do not exist unless you go pro (which you only find out about if you read through the comments).

    Was this function available for free before? If so, why have you taken it out? Is it available on an older free version? If so, where can we download an older free version?

  8. Functionality not available any more it looks like.. Even pro features does not have it listed. Fixed my issue with regenerate thumbnails plugin..

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.