• I’ve had a problem in the last couple of weeks with images that are uploaded to the image gallery not showing. The link I present below is an example.

    In doing some testing, I’ve disabled all plugins and swapped to the twenty twenty-three base theme and the problem persisted.

    What I’ve narrowed the issue down to is this. Images when put into a text from the gallery by “Add Media,” come out with the following attributes: “class=”alignright size-medium wp-image-161457″.” I’ve removed all three items (“alignright”, “size-medium”, and “wp-image-161457”) When it’s just “alignright,” it works. When I add back “size-medium,” it works. When I add back “wp-image-161457,” it doesn’t work anymore, so it’s something in that descriptor that isn’t functioning and I’m not sure how to fix that. Any ideas?

    • This topic was modified 1 year, 9 months ago by OscarGuy.

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • try removing async tag and srcset

    Thread Starter OscarGuy

    (@oscarguy)

    I don’t know what that means. I’ve never set any values like that.

    Sorry to jump in here ??

    The images on the link you gave are not loading due to a mixed-content problem. This happens when a page uses HTTPS, but some resources on the page (eg images, CSS files, JavaScript files, etc) are loaded with https:// URLs (instead of https://).

    When this happens, browsers block all such https:// URLs from loading.

    I can’t say what or why it’s causing this… but somehow the images on the link you provided have their srcset attributes pointed to images with https:// URLs, and not https://.

    So the images are then blocked from loading due to the aforementioned “mixed-content” problem.

    This problem commonly happens for sites that have recently been switched to HTTPS, with previously uploaded images still using HTTP. But this doesn’t seem to be the case for you since:

    — Your current SSL cert was issued on 1st April, 2022 so your site has used HTTPS for at least this long
    — And I’m seeing the problem happening on an image uploaded in February 2023

    There are several plugins that can fix this, but it may be better to find the root cause of this and address it from there instead.

    It seems you’re using the Classic Editor plugin. Might be time to give the default Block Editor a try.

    Thread Starter OscarGuy

    (@oscarguy)

    I don’t have a security certificate, so I shouldn’t be using https at all…and I don’t remember ever setting it up for that.

    I don’t have a security certificate, so I shouldn’t be using https at all…and I don’t remember ever setting it up for that.

    Of course, you do ??

    You may just not be aware. If you didn’t, https wouldn’t somehow magically work on your site.

    Your site is using Cloudflare’s free “Universal SSL” certificate, and your WordPress site is configured to use htttps.

    Thread Starter OscarGuy

    (@oscarguy)

    I knew I was using Cloudflare, but I’ve not configured anything to use HTTPS. All of my settings reference http, and if I recall correctly (from doing it on another site I used), changing it in the settings would screw things up if it weren’t set up for that. Could my host have done something without me knowing? They just updated a bunch of PHP installations.

    I knew I was using Cloudflare, but I’ve not configured anything to use HTTPS.

    You may as well not have. But that doesn’t mean it couldn’t have been enabled by default.

    Could my host have done something without me knowing? They just updated a bunch of PHP installations.

    Thanks to the Free Software Foundation’s LetsEncrypt project, every hosting control panel now supports unlimited free SSL certificates (though some greedy hosts disable it so they can sell their expensive certificates). I don’t know what’s in your hosting account, and your site is behind a Cloudflare proxy… so I have no way of knowing if your hosting account itself has an SSL certificate installed for your domain or not.

    But this much I can tell you:

    — It’s technically impossible to have HTTPS URLs working without an SSL certificate installed and properly configured. If HTTPS URLs work, you have an SSL certificate somewhere, whether you personally installed it or not.

    — Certificates on websites are public information that can easily be inspected to check who issued it, whom (ie what domain) it was issued for, date of issue, date of expiry, etc.

    — An inspection of the certificate your site uses shows it was issued by Cloudflare. See the screenshot below.

    Whether you work with this publicly verifiable information or continue to insist your site doesn’t use SSL/HTTPS… well, that’s up to you.

    Good luck!

    Thread Starter OscarGuy

    (@oscarguy)

    I just need to know how to fix it. Whether that’s changing my WordPress configuration to accept using https for images or to remove the SSL certificate itself. And since I don’t know how to do either, I’m back at square one.

    The easiest would be just to find out how to fix it on the WordPress side since obviously Cloudflare didn’t care whether I wanted one or not (I haven’t been in contact/made any changes with Cloudflare in months and this issue only started happening in the last week).

    I just need to know how to fix it.

    I told you what to do in my first response here.

    Did you do that and it didn’t work?

    Just my two cents Oscar guy but is there a reason for not using the SSL? I know I would go to any site that is not secure (Https) AS far as I know all browsers will show a warning for Http sites and warn the visitor that the site is not secure… If you actually want visitors to come to your website/blog then you should embrace Https…

    IMHO…

    Thread Starter OscarGuy

    (@oscarguy)

    Because I would have to pay for someone to do it. I’ve tried figuring it out on my own, but it didn’t make any sense to me.

    And, George, your first post was to tell me what the problem might be and you were the one who said it would be better to get at the root cause rather than using a plugin and I agreed. Unless I’ve missed it, I still don’t know how to fix it.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Issue with Images’ is closed to new replies.