How to Recover Missing WordPress Media After a Migration
Backup and Restore Services

How to Recover Missing WordPress Media After a Migration

You open your site after a move, and half the pictures are gone. The media library looks empty, or it shows thumbnails that will not load. Do not panic. In most cases the files still exist, and you can recover missing WordPress media without starting over. This guide explains why it happens and how to fix it step by step.

How to Recover Missing WordPress Media After a Migration

It applies after a migration, a restore from backup, or a failed update. In short, you find out where the files are, compare them with the database, and reconnect what is missing.

Why WordPress Media Goes Missing

WordPress keeps media in two places. The files sit in the uploads folder, and the details live in the database. The media library screen only shows items that have a database entry. If either part is missing, the image disappears from view.

Several events break that link:

  • A migration that copied the database but not the uploads folder.
  • A restore that brought back files but not the media entries.
  • A changed folder path or year and month setting.
  • Files uploaded by FTP, which WordPress never registered.

Signs That Your Media Is Missing, Not Gone

Not every broken image is a lost image. Look for clues before you start. If the library grid is empty but your pages still show pictures, the database entries are missing while the files remain. If pages show broken image icons, the files or the addresses are wrong.

Open one broken image in a new tab and read the address. A wrong domain points to a URL problem. A right domain with a missing file points to a missing upload. This quick test tells you which of the steps below you actually need, and it can save you hours when you want to recover missing WordPress media on a big site.

Step 1: Check That the Files Still Exist

Before you try to recover missing WordPress media, look at the server. Connect with FTP or your host’s file manager and open the uploads folder. If the year and month folders are full of images, the files survived. If the folder is empty, you need a backup instead.

Step 2: Check the Upload Settings

Next, look at the media settings screen. A different folder structure after a move can make WordPress look in the wrong place. Confirm the settings match the folders you found in Step 1.

Step 3: Fix Old URLs in Your Content

Sometimes the files are fine, but your posts still point to the old domain. In that case, images look missing because the address is wrong. Update the stored URLs, as described in my other site’s guide to changing a WordPress domain name without breaking your site. Always back up before a replace.

Step 4: Bring Back Files That WordPress Does Not Know About

If files exist on the server but not in the library, they need new media entries. Doing this by hand means re-uploading each image, which is slow and loses the original dates. A recovery tool does it faster. Media Library Recovery for WordPress scans your folders, lists only what is missing, and adds proper library entries, so you can restore files in bulk instead of one by one.

Whatever tool you pick, test it on a copy of the site first. Then run it on the live site once you trust the result.

Step 5: Reconnect Images to Your Posts

Large libraries need patience. Work in batches, and check a sample after each one, so a mistake never spreads across thousands of files. Even after the files are back in the library, they may not appear in the right posts. Check your key pages and featured images. Reattach images where needed, and regenerate thumbnails if sizes look wrong. This step takes the longest on large sites, so start with your most visited pages.

Step 6: Restore From a Backup If Nothing Remains

If the uploads folder is empty and no copy exists elsewhere, only a backup can help. Check your host’s backups, your backup plugin, and any local copies. When you plan your next move, compare tools in this review of Backup Copilot Pro and Duplicator Pro, and follow a proven process such as this WordPress migration and cloning tutorial.

How to Avoid Losing Media Again

A few habits prevent most of these problems. Always include the full uploads folder in every migration, and verify it before you switch the domain. Keep regular backups of both files and database, and store a copy away from the server. The official guide to moving WordPress lists the steps in the right order.

Finally, avoid uploading files by FTP unless you plan to register them. Unregistered files are invisible to WordPress, and they are the most common reason people need to recover missing WordPress media later.

Quick Checklist

Use this short list when you are in a hurry.

  • Check that the uploads folder still has your files.
  • Match the media settings to the folder structure.
  • Fix old domain addresses in your content.
  • Register unknown files in the library.
  • Reconnect images to posts and regenerate thumbnails.
  • Restore from a backup only if the files are gone.

Conclusion

You can recover missing WordPress media in most cases, because the files usually still exist. Check the uploads folder, confirm the settings, fix old URLs, register unknown files, and reconnect images to your posts. Keep a tested backup for the rare case where nothing remains. Did a migration ever eat your images? Tell us how you fixed it in the comments.

Written by

Krasen Slavov

WordPress plugin developer, blogger, ultra-distance runner, and mountain lover. I have developed and used WordPress since its first steps but recently have started to get involved in the community and have created some open-source plugins.

Visit website

Leave a Reply

Your email address will not be published. Required fields are marked *

Forgot password? 0 View Cart