• MTO

    (@mto)


    Hello,
    I recently upgraded from http to https. I forced all traffic to https to help deal with possible problems. But I am finding lots of problems with Photon.

    Many images appear broken with the message “We cannot complete this request, remote data could not be fetched” instead of the jpg

    For example:

    <img class="aligncenter wp-image-19297 size-full" title="madres que perdieron hijos" src="https://i2.wp.com/www.todamujeresbella.com/wp-content/uploads/2016/08/madres-que-perdieron-hijos.jpg?resize=613%2C613" alt="madres que perdieron hijos" srcset="https://i2.wp.com/www.todamujeresbella.com/wp-content/uploads/2016/08/madres-que-perdieron-hijos.jpg?w=613 613w, https://i2.wp.com/www.todamujeresbella.com/wp-content/uploads/2016/08/madres-que-perdieron-hijos.jpg?resize=150%2C150 150w, https://i2.wp.com/www.todamujeresbella.com/wp-content/uploads/2016/08/madres-que-perdieron-hijos.jpg?resize=300%2C300 300w" sizes="(max-width: 613px) 100vw, 613px" data-recalc-dims="1" />

    In this image example, two photon image sizes work, and two fail with the above error message:
    https://i2.wp.com/www.todamujeresbella.com/wp-content/uploads/2016/08/madres-que-perdieron-hijos.jpg?w=613%20613w
    https://i2.wp.com/www.todamujeresbella.com/wp-content/uploads/2016/08/madres-que-perdieron-hijos.jpg?resize=300%2C300%20300w

    How can this be solved?
    Maybe a way to regenerate photon images? What’s going on? Clearly photon was able to get the image from my server, as some image sizes are available, just some others are missing.

    Thanks for your help.


    EDIT: Realizing the move to https might have been coincidental, and not the reason for the images breaking. The images were working before, but now are broken both in https and http (try the examples above in http, they break as well).

    EDIT PART 2:
    It looks like photon bug, probably latest version upgrade. Looks like this is the problem, for example, the part that says “resize=300%2C300 300w” if it said “resize=300%2C300w” it would work. So it appears to be a bug in photon html generation.

    • This topic was modified 8 years ago by MTO.
Viewing 1 replies (of 1 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    When you switched from HTTP to HTTPS, your images most likely weren’t available for a little while, and Photon happened to try to download those images when they were not available. However, whenever that happens Photon then comes back and tries once again later.

    All images appear to be displayed properly right now. Do you still experience issues? If so, could you try to clear your browser cache, and give it another try?

    the part that says “resize=300%2C300 300w” if it said “resize=300%2C300w” it would work. So it appears to be a bug in photon html generation.

    resize=300%2C300 300w is the expected HTML output. srcset image attributes may include 2 different elements:

    1. A valid image URL, here using Photon and its resize parameters resize=300%2C300
    2. A width descriptor or a pixel density descriptor, giving the browser information about when each image should be used (on smaller devices, on devices with a higher pixel density, …). In our example, we use a width separator, 300w.

    These 2 elements must be separated by a space.

    For another, you can look at your Gravatar in the post above: https://i.wpne.ws/hs5R

    As you can see, it uses a pixel density descriptor, and follows a format similar to the images in your posts.

    I hope this clarifies things a bit.

Viewing 1 replies (of 1 total)
  • The topic ‘Photon only works half of the time’ is closed to new replies.