Content & publishing
Why are images missing after a WordPress migration?
The full-size photo opens on the new site, but the smaller image is broken and a linked PDF has disappeared. Follow one post from its WordPress export to the destination uploads folder to find out what made the move.

Start with one broken image and its exact address
Imagine opening a fictional nature journal after a move. The “Spring field guide” article displays a large meadow photograph on a laptop. On a phone, a reader sees the photo’s description in an empty space. The “Download the trail map” link also opens an error page. Those two failures have different fixes, even though they belong to the same post.
Open the affected page on the new site. In your browser’s developer tools, open Network, reload the page and select the request for the missing picture. Record the requested address, its final destination and the response. If someone else is handling the move, send them the page URL, the failing file URL and where the problem appeared. A screenshot of the empty space alone leaves them guessing which file to look for. Chrome’s guide to inspecting network requests.
Look at the last part of the address. Here the full-size file is meadow.jpg and the phone requested meadow-300x200.jpg. WordPress can generate several sizes of the same photo. An image’s srcset lists alternative files, and the browser can select one according to the layout and screen density. Opening the original in its own tab tests only that one file. WordPress’s responsive image guide.
Compare the post’s references with the destination uploads
Download the WordPress media migration example (ZIP) and extract it. The folder contains a sample WordPress export, before-and-after file lists and a copy of the first repair report. The filenames stand in for the media you would find on a real server. You can do the exercise without a WordPress account.
- Open the WordPress Media Migration Checker. Under Original WordPress site, choose spring-field-guide.xml.
- Under Destination uploads, expand Open a saved path list and select uploads-before.txt. Select Check media references.
- The result shows one content item, one destination path and two references missing a file or size. Under Show, choose Everything needing review, then Download repair CSV. Compare it with first-pass-repair-list.csv in the ZIP. Both have a row for the small image and a row for the PDF.
For your own check, use Tools → Export → All content on the source WordPress site to include available attachment records. Pair its XML with a local copy of the destination uploads folder or a list of the paths actually present there. If both inputs come from the original site, the report tells you little about what arrived. The XML export describes content and its references. Keep the actual uploads and a database backup for recovery. WordPress export documentation.
Read the three filenames in the repair report
Switch back to All references. This sample has four rows for three distinct files. The difference matters when someone is assigned the work.
- meadow.jpg — Found. The post uses this path twice, once as its main image and once as the wider option in its responsive image list. The checker reports the two uses separately. Both match the one file in the destination inventory.
- meadow-300x200.jpg — Thumbnail absent. The post calls for this specific size, and the destination list contains the corresponding original in the same dated folder. The full-size photograph is a possible source for the repair.
- map.pdf — Missing file. The post links to a document in the April 2025 uploads folder. The checker found neither that path nor a file with the same name elsewhere in the list. The photograph cannot supply the missing map.
On a larger move, you may also see Check location. If the report finds a file with the same name under a different year or month, open it and confirm the contents. An old map and its current replacement can share the filename map.pdf. A matching name is only a lead.
Restore the missing size and recover the right PDF
For the small image, first check the source uploads or a known-good backup for the exact requested file. If it is there, restore a copy at the same relative path on staging. That preserves the crop a reader saw before the move. If only the original survives, have the person maintaining WordPress regenerate the relevant size for that attachment on staging. Check that the new site still defines the intended size and that the generated filename and crop agree with the page. WordPress supports regeneration for an individual attachment and image size. WordPress media regeneration reference.
For map.pdf, locate the approved document in the old uploads or backup. Open it and check the title and edition before restoring it. If its public address can stay the same, restoring the file there can repair both the article and a reader’s bookmark. If it now belongs at a different address, update the link in the post. When the document has permanently moved, redirect the old public path to its replacement so saved links still work. The guide to changing existing URLs covers checking both destinations.
Sometimes the file is already present and the failing request still goes to the old domain. Look for the stale reference in the post, block, theme or media configuration that produced it. Make the correction in a backed-up staging copy and test one affected page before applying it more broadly. WordPress migration guidance.
Verify the files, then test the page as a reader
In the exercise, keep the XML loaded and select uploads-after.txt as the new path list. Run the check again. The revised inventory has three destination paths, all four reference rows read Found, and zero references are missing a file or size. For a real move, take a fresh listing from the repaired destination. Editing an inventory can change the report without putting a single file back on the server.
Open the destination post in a signed-out browser and reload it at a wide and a narrow width. Inspect the image actually requested at each width. Open the smaller file directly as well, since a particular device can choose the larger image at either width. Confirm the photo displays with the expected crop. Follow the trail-map link from the post and check that the file opens as the correct PDF. A branded error page can look like a successful page load until someone checks its contents.
Record the repaired page, the tested file addresses and any exceptions. The checker compares supported references in the supplied XML with destination filenames. A theme, plugin or CDN can add other image URLs when a page is rendered. Sample a real post and its downloads with each layout you intend to keep. The CMS planning walkthrough shows where that rehearsal fits in a wider content move.
WordPress media
Questions about missing media after a move
Why can a photo appear in the Media Library while the post still shows a broken image?
The library preview and the public post can request different files. Compare the public request’s domain, dated folder, filename and image size with the file that opens from the library. A current preview cannot confirm that every older crop or URL still works.
Will a WordPress XML export bring back a missing photo or PDF?
An export can identify a post, an attachment and an address that help you locate the file. Recovery needs a readable copy of the media, such as the original uploads or a backup. A WordPress importer trying to fetch an attachment also needs access to the source file.
What does External host mean for a CDN image?
The checker identified an address on another host that it could not associate with a local uploads path. Open the file through the public page and check the configured media host or CDN. An intentionally hosted image may still be working.
The checker says Found, but the browser returns 403. What does that mean?
Found means the path is present in the inventory. A 403 response means the server is refusing the request. Ask the site or storage administrator to check access for that specific public file, then try it again while signed out. Keep any intentionally private files restricted.
Should the site cache be cleared first?
First check whether the requested file exists and whether the page uses its current address. After correcting the file or reference, refresh the affected page or CDN entry if an older response persists. Clearing a cache cannot recreate an absent upload.
How should a report with an unresolved featured image be handled?
A post can identify a featured image by its attachment ID. If the export omitted that attachment record, the checker may have no filename to compare. Use an All content export that includes the record, or identify the image in the original post and check the destination file directly.