Support » Plugin: WebP Express » Broken images after update

  • Hi there,
    After updating to version 0.17.2, I noticed that there are some broken images on my sites. I use this plugin on several websites and I’m having the same issue on all of them. It looks like the issue with the plugin trying to grab the images through HTTP rather than HTTPS. Is this a bug from this last update? Or is there some change to do in the settings?
    Please advise,
    Thank you!
    Louise

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author rosell.dk

    (@roselldk)

    This is actually a bug FIX in the latest release…
    But well, not for you it seems!

    In 0.17.2, Alter HTML no longer touches the protocol (“HTTP” or “HTTPS”) of the links. Before that, it used the same protocol as used in General Settings > Site Url

    Plugin Author rosell.dk

    (@roselldk)

    So I guess your image URLs are also with HTTP when Alter HTML is deactivated?

    Plugin Author rosell.dk

    (@roselldk)

    I guess that not touching the protocol of the links is the right thing to do for WebP Express. Even though that this behavior actually fixes the URLs on sites that has still has image URLs pointing to http.

    Plugin Author rosell.dk

    (@roselldk)

    You probably migrated from http to https but didn’t do a search replace in the database. Here are some instructions for doing that: https://help.dreamhost.com/hc/en-us/articles/360003300591-Changing-your-WordPress-database-URLs-to-https-using-a-plugin

    I know about the search and replace, and when migrating sites I always do it. In this case I’ve also updated the plugin on sites that had not been migrated at all, and after the updates the images weren’t showing.
    I guess the only way to fix this issue is by searching and replacing the http with https after the update? Or will you look into this issue more and release a new version?
    This is very inconvenient since I manage a lot of sites with this plugin and it will take time to run the search and replace for each of them.

    Plugin Author rosell.dk

    (@roselldk)

    Just to be sure: These sites have the same problem when Alter HTML is deactivated, right?

    So in a way you could say that Alter HTML was fixing those problems. But creating problems for others – that was why it was changed. A guy had https urls which was turned into http urls because he had not updated the Site Url to use https.

    It seems that the common problem here is images with http. I guess that if the protocol of links and of site url are in mismatch, typically the “http” is the one that is incorrect. People don’t migrate much from https from http. With that in mind, it could be argued that the best solution would be to choose https if either the link or the siteurl uses https.

    I’m not convinced however. This will need to be thought through.

    A couple of thoughts later: I see a danger here. Alter HTML only touches the URLs for webps (“picture tag syntax” mode) / for browsers supporting webp (“replace urls” mode). So it will be fixing protocol only for browsers supporting webp. If there is a general problem with images having wrong protocol, there is a risk that the site owner doesn’t see it because he might only be viewing the site using a browses that supports webp. It is probably better to fail for all than fail for some.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.