Find answers to your questions

Documentation

Diagnose and fix images that do not display

A missing image can interrupt a page, hide a product or make a button difficult to understand. The right correction depends on the requested file and the response it receives. This guide helps you gather useful evidence before changing your website, whether it uses WordPress or another application.

1. Define the problem

Choose one specific page and image. Note whether the problem affects one image, a particular size or the entire site, then compare desktop and mobile views and test while signed out of your administration area. Record recent changes: a migration, new domain, theme change, plugin or media optimization.

Keep a backup before replacing files or changing configuration. Test one correction at a time, preferably on a staging copy when changes affect several pages. An improvement after several simultaneous changes does not establish which change was necessary.

2. Identify the image actually requested

In WordPress, open Media > Library, select the file and inspect its URL. The Media Library documentation distinguishes the file URL from its attachment page. Compare that address with the one used on the affected page.

For more detail, open your browser’s developer tools, select Network and reload the page. Select the image request to inspect its address, status, preview and any redirects. The Chrome Network guide explains these checks.

A browser may request a thumbnail or a different variant depending on the screen, including through srcset or picture. A background image may come from CSS. A working original in the Media Library therefore does not prove that the file requested by the page exists.

3. Interpret the result

  • 404 or 410: the file is unavailable at that address or has been removed. Check the path, filename, capitalization, extension and files transferred during a migration. An old domain or missing thumbnail deserves investigation.
  • 403: access is denied. File permissions, an access rule, hotlink protection or a security control may be involved. This status alone does not identify which setting should change.
  • Redirect: inspect the final destination. An image redirected to a login or error page will not provide the expected file.
  • 500, 502, 503 or 504: a server or gateway error requires investigation. Record the time and affected address to help locate relevant log entries.
  • 200 but no visible image: check the preview and content type. The response may contain HTML instead of an image, or the file may be damaged. If the image arrives correctly, next examine how the theme, CSS and lazy loading display it.

The HTTP status reference explains these response groups. A DNS error, certificate problem or browser block can also prevent a usable HTTP response.

4. Correct the affected address or media file

If the link is wrong, correct it in the page, block, theme or setting that generates it. Compare the exact filename, including capitalization: Logo.jpg and logo.jpg are not necessarily interchangeable. After a migration, also confirm that the media files were actually copied.

If only one format or size is missing, identify the tool that produces that variant before regenerating it. Preserve originals and avoid bulk database replacements or deleting media without a backup. For an image hosted by a third party, confirm that you are allowed to use it and embed it on your website.

5. Check HTTPS and access rules

On an HTTPS page, an HTTP image address may be automatically upgraded to HTTPS or blocked, depending on its use. Correct the source to use a working HTTPS address with a valid certificate. Check console messages and the mixed content guide without disabling browser protections.

If cPanel Hotlink Protection is available and enabled, check the permitted domains, including your own subdomains. Opening an image on its own and embedding it in a page are not always equivalent tests: rules can treat direct requests differently.

An image CSP policy can also restrict permitted sources. Have the relevant rule confirmed before making a targeted adjustment. Do not make files writable by everyone or globally disable the firewall, ownership checks or server protections.

6. Check caches and optimizations

After correcting the cause, refresh the affected page or file cache in the tools actually in use: browser, plugin and, if applicable, CDN. A cache may still reference an old address. Repeatedly purging everything does not repair a missing file.

If you use LiteSpeed Cache for WordPress, inspect media features according to the symptoms: a missing WebP or AVIF variant, image replacement or lazy loading. The media troubleshooting documentation provides relevant checks. Test a targeted exclusion on a copy of the site when lazy loading is suspected, then restore the setting if the test does not confirm a cause.

7. Validate and get help

Repeat the original scenario, including on mobile and while signed out of WordPress. Check several pages using the same media and the affected variants.

If the issue persists, open a request in your Nuagerie Client Area with the affected page, image address, observed status, time and recent changes. Remove personal data, cookies, tokens and private access parameters from screenshots or addresses you share. Our team can help direct the investigation toward hosting, media delivery or the application. If a theme correction or broader repair is needed, we can assess its scope with you. To discuss a project, use our contact form.

Related Articles

What is cPanel and how do you access it? cPanel is the administration interface for your hosting account. It provides the tools available to that account without granting full server-administration access. Common toolsManage website files, domains and databases.Administer email accounts when mail is hosted within that service.Review storage and resource... cURL error 6: diagnose a hostname resolution failure The error curl: (6) Could not resolve host means cURL could not resolve the requested hostname. It can interrupt an update, download or API connection. On its own, it does not prove that your DNS resolver is faulty. For a Nuagerie hosting service, start by recording the error and its context. Do not change the... How can I activate my paid license after a trial? You can do this by running this command in SSH: /usr/local/cpanel/cpkeyclt It should look something like this: [root@cpanel home]# /usr/local/cpanel/cpkeyclt Updating cPanel license...Done. Update succeeded. Building global cache for cpanel...Done [root@cpanel home]# For help with a Nuagerie service, open or follow... When /cpanel, /webmail or /whm shortcuts do not work The /cpanel, /webmail and /whm shortcuts provide routes from a domain address to hosting management interfaces. An error on that route does not automatically mean your account is inaccessible. Identify the failing step so you can find the appropriate access method and give support useful observations. Start with a... How to protect a folder with a password Anyone can access subdirectories of public_html (folder containing all the public files of your hosting account) using a web browser. To restrict access to a particular directory under public_html: Connect to cPanel Click Directory Confidentiality in the Security topic. There you will find a list of subfolders....