{"id":34415,"date":"2023-07-29T06:57:39","date_gmt":"2023-07-29T06:57:39","guid":{"rendered":"https:\/\/www.wpstaq.com\/?post_type=knowledgebase&#038;p=34415"},"modified":"2026-05-02T03:32:00","modified_gmt":"2026-05-02T03:32:00","slug":"images-do-not-show-when-im-logged-out","status":"publish","type":"knowledgebase","link":"https:\/\/www.wpstaq.com\/hk\/knowledgebase\/images-do-not-show-when-im-logged-out\/","title":{"rendered":"Images do not show when I&#8217;m logged out"},"content":{"rendered":"<h2>Question<\/h2>\n<p><span data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Images dissapperaring when logged out of WP&quot;}\" data-sheets-userformat=\"{&quot;2&quot;:513,&quot;3&quot;:{&quot;1&quot;:0},&quot;12&quot;:0}\">When I log out of WordPress, images have disappeared but when I log back in, those images appear. Why is that and how can I fix this?<\/span><\/p>\n<h2>Solution<\/h2>\n<p>Since you&#8217;re using Staq Cache, our solution rewrites the HTML and replaces your images with either:<\/p>\n<ul>\n<li>CDN based URLs;<\/li>\n<li>WebP formatted URLs.<\/li>\n<\/ul>\n<p>To rectify this, please follow the steps below.<\/p>\n<h2>Diagnosing images via Inspect Console<\/h2>\n<ol>\n<li><strong>Navigate to the Page with the Broken Image:<\/strong> Open the webpage where the image appears broken.<\/li>\n<li><strong>Open the Inspect Console:<\/strong> Right-click on the broken image and select &#8216;Inspect&#8217; or &#8216;Inspect Element&#8217;. This will open the browser&#8217;s developer tools, specifically the &#8216;Elements&#8217; tab.<\/li>\n<li><strong>Locate the Image Source:<\/strong> In the &#8216;Elements&#8217; tab, look for the <code>img<\/code> tag related to the broken image. It will have an attribute named <code>src<\/code> which indicates the source URL of the image.<\/li>\n<li><strong>View the Console Tab:<\/strong> Navigate to the &#8216;Console&#8217; tab in the developer tools. This is where any errors related to the page will be displayed.<\/li>\n<li><strong>Identify the Error:<\/strong> Look for errors related to the image. These will usually be colored red and may contain the source URL of the broken image. Note down the error message.<\/li>\n<\/ol>\n<h3><strong>Understanding Server Errors<\/strong><\/h3>\n<ul>\n<li><strong>404 Not Found:<\/strong> This means that the server couldn&#8217;t find the requested image. It&#8217;s possible the image has been deleted or the URL is incorrect.<\/li>\n<li><strong>403 Forbidden:<\/strong> The server understood the request, but it&#8217;s refusing to fulfill it. This could be due to permissions or security settings.<\/li>\n<li><strong>500 Internal Server Error:<\/strong> A generic error message indicating that the server encountered an unexpected condition that prevented it from fulfilling the request.<\/li>\n<li><strong>504 Gateway Timeout:<\/strong> The server, while acting as a gateway or proxy, did not receive a timely response from the upstream server or some other auxiliary server it needed to access to complete the request.<\/li>\n<\/ul>\n<p>Note: These are some common server errors related to images, but there can be other errors as well. It&#8217;s essential to understand the specific error to take appropriate action.<\/p>\n","protected":false},"featured_media":34416,"parent":0,"template":"","class_list":["post-34415","knowledgebase","type-knowledgebase","status-publish","has-post-thumbnail","hentry","categories-cdn-aws","categories-media-diagnose"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Images do not show when I&#039;m logged out - Managed Hosting Platform for WordPress<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wpstaq.com\/knowledgebase\/images-do-not-show-when-im-logged-out\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Images do not show when I&#039;m logged out - Managed Hosting Platform for WordPress\" \/>\n<meta property=\"og:description\" content=\"Question When I log out of WordPress, images have disappeared but when I log back in, those images appear. Why is that and how can I fix this? Solution Since you&#8217;re using Staq Cache, our solution rewrites the HTML and replaces your images with either: CDN based URLs; WebP formatted URLs. To rectify this, please&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wpstaq.com\/knowledgebase\/images-do-not-show-when-im-logged-out\/\" \/>\n<meta property=\"og:site_name\" content=\"Managed Hosting Platform for WordPress\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/staqhosting\/\" \/>\n<meta property=\"article:modified_time\" content=\"2026-05-02T03:32:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/07\/image-broken-s3.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"500\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/images-do-not-show-when-im-logged-out\\\/\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/images-do-not-show-when-im-logged-out\\\/\",\"name\":\"Images do not show when I'm logged out - Managed Hosting Platform for WordPress\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/images-do-not-show-when-im-logged-out\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/images-do-not-show-when-im-logged-out\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/image-broken-s3.png\",\"datePublished\":\"2023-07-29T06:57:39+00:00\",\"dateModified\":\"2026-05-02T03:32:00+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/images-do-not-show-when-im-logged-out\\\/#breadcrumb\"},\"inLanguage\":\"en-hk\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/images-do-not-show-when-im-logged-out\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-hk\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/images-do-not-show-when-im-logged-out\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/image-broken-s3.png\",\"contentUrl\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/image-broken-s3.png\",\"width\":1000,\"height\":500},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/images-do-not-show-when-im-logged-out\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.wpstaq.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Images do not show when I&#8217;m logged out\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#website\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/\",\"name\":\"Managed Hosting Platform for WordPress\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.wpstaq.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-hk\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#organization\",\"name\":\"Staq\",\"alternateName\":\"WPStaq\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-hk\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/cropped-LogoNoText.png\",\"contentUrl\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/cropped-LogoNoText.png\",\"width\":512,\"height\":512,\"caption\":\"Staq\"},\"image\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/staqhosting\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/wpstaq\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Images do not show when I'm logged out - Managed Hosting Platform for WordPress","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wpstaq.com\/knowledgebase\/images-do-not-show-when-im-logged-out\/","og_locale":"en_US","og_type":"article","og_title":"Images do not show when I'm logged out - Managed Hosting Platform for WordPress","og_description":"Question When I log out of WordPress, images have disappeared but when I log back in, those images appear. Why is that and how can I fix this? Solution Since you&#8217;re using Staq Cache, our solution rewrites the HTML and replaces your images with either: CDN based URLs; WebP formatted URLs. To rectify this, please&hellip;","og_url":"https:\/\/www.wpstaq.com\/knowledgebase\/images-do-not-show-when-im-logged-out\/","og_site_name":"Managed Hosting Platform for WordPress","article_publisher":"https:\/\/www.facebook.com\/staqhosting\/","article_modified_time":"2026-05-02T03:32:00+00:00","og_image":[{"width":1000,"height":500,"url":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/07\/image-broken-s3.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/images-do-not-show-when-im-logged-out\/","url":"https:\/\/www.wpstaq.com\/knowledgebase\/images-do-not-show-when-im-logged-out\/","name":"Images do not show when I'm logged out - Managed Hosting Platform for WordPress","isPartOf":{"@id":"https:\/\/www.wpstaq.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/images-do-not-show-when-im-logged-out\/#primaryimage"},"image":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/images-do-not-show-when-im-logged-out\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/07\/image-broken-s3.png","datePublished":"2023-07-29T06:57:39+00:00","dateModified":"2026-05-02T03:32:00+00:00","breadcrumb":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/images-do-not-show-when-im-logged-out\/#breadcrumb"},"inLanguage":"en-hk","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wpstaq.com\/knowledgebase\/images-do-not-show-when-im-logged-out\/"]}]},{"@type":"ImageObject","inLanguage":"en-hk","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/images-do-not-show-when-im-logged-out\/#primaryimage","url":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/07\/image-broken-s3.png","contentUrl":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/07\/image-broken-s3.png","width":1000,"height":500},{"@type":"BreadcrumbList","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/images-do-not-show-when-im-logged-out\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.wpstaq.com\/"},{"@type":"ListItem","position":2,"name":"Images do not show when I&#8217;m logged out"}]},{"@type":"WebSite","@id":"https:\/\/www.wpstaq.com\/#website","url":"https:\/\/www.wpstaq.com\/","name":"Managed Hosting Platform for WordPress","description":"","publisher":{"@id":"https:\/\/www.wpstaq.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wpstaq.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-hk"},{"@type":"Organization","@id":"https:\/\/www.wpstaq.com\/#organization","name":"Staq","alternateName":"WPStaq","url":"https:\/\/www.wpstaq.com\/","logo":{"@type":"ImageObject","inLanguage":"en-hk","@id":"https:\/\/www.wpstaq.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/cropped-LogoNoText.png","contentUrl":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/cropped-LogoNoText.png","width":512,"height":512,"caption":"Staq"},"image":{"@id":"https:\/\/www.wpstaq.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/staqhosting\/","https:\/\/www.linkedin.com\/company\/wpstaq"]}]}},"_links":{"self":[{"href":"https:\/\/www.wpstaq.com\/hk\/wp-json\/wp\/v2\/knowledgebase\/34415","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wpstaq.com\/hk\/wp-json\/wp\/v2\/knowledgebase"}],"about":[{"href":"https:\/\/www.wpstaq.com\/hk\/wp-json\/wp\/v2\/types\/knowledgebase"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wpstaq.com\/hk\/wp-json\/wp\/v2\/media\/34416"}],"wp:attachment":[{"href":"https:\/\/www.wpstaq.com\/hk\/wp-json\/wp\/v2\/media?parent=34415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}