Email VPS
Troubleshooting and repair

Images do not show on the site, how to find where they went

Images do not show on a website

A broken image means the browser asked for a file and did not get it. The image may well be sitting on the server even though it does not show, so before uploading everything again it is worth finding out where the request fails.

In short

  • Open the image address directly in the browser, the answer tells you immediately what is going on.
  • The most common causes are old addresses left after a migration and file permissions.
  • If the images disappeared from every page at once, suspect the media library path.

1. Open the image address itself

Right click the broken image and open it in a new tab. The answer narrows the cause down at once.

What you getWhat it means
404There is no file at that address. The path is wrong or the file is missing.
403The file is there but permissions prevent reading it.
The image opens normallyThe fault is in the page referring to the image, not in the image.

2. If the answer is 404

Look at the address the image points to. If it contains an old domain or an old server path, this is a migration that left old addresses in the database. The fix belongs in the database, not page by page. If the address is right but the file is missing, the images did not come along with the move. Then they are recovered from a backup, see our guide on backing up a site.

3. If the answer is 403

Check the permissions on the wp-content/uploads directory. A working baseline is 755 for directories and 644 for files. Permissions usually go wrong when files have been copied to the server with the wrong account. This is covered in our guide on 403 Forbidden.

4. Check protection against other sites

Some servers block images from being loaded by other sites. If your own site fetches images from another address, for example an old subdomain, that protection can hit your own site. You notice it because the image opens directly but not inside the page.

5. Rule out caching and performance plugins

Lazy loading and automatic conversion to a newer image format are common reasons why an image shows for some visitors and not others. Turn the plugin image features off for a moment and clear the cache. If the images return, enable the settings one at a time.

6. If images are missing only in the admin

Then the media library thumbnails are missing while the originals are intact. Thumbnails can be regenerated, and it is a safe operation because the originals are not touched.

What not to do

Do not upload every image again before you know whether the old ones are still there. Re-uploading creates duplicates and leaves the old references broken anyway.

If you would rather not do it yourself

We find out whether the images are still there and fix either the addresses or the permissions. If they really are gone, we recover them from a backup and tell you why they disappeared.

See how we repair a broken site »