WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
Photon breaking some images (41 posts)

  1. csburdick
    Member
    Posted 1 year ago #

    Looks like some of my images become broken after Photon was activated.

    As an example: http://www.automoblog.net/2012/10/23/2013-lexus-gs350-review/

    The first and fourth images in the article show as broken.

    Let's use the first image as the example. The original image being called is http://www.automoblog.net/wp-content/uploads/2012/10/2013-Lexus-GS-350-front-side-view-623x389.jpeg - that works fine. When I deactivate Photon, it also displays fine. But when Photon is activated, it shows that it's broken. When I try to view image (http://i2.wp.com/www.automoblog.net/wp-content/uploads/2012/10/2013-Lexus-GS-350-front-side-view.jpeg?resize=623%2C389) it says "We cannot complete this request, remote data was invalid"

    http://wordpress.org/extend/plugins/jetpack/

  2. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    Photon seems to be referring to images that do not exist, or were deleted:

    Could you try to delete the 2 images in the Edit Post screen, and add them again?

  3. Bruno Cunha
    Member
    Posted 1 year ago #

    In my case, the Photon is breaking the smiles converted by WordPress.

    This is happening because Settings -> Writing -> Formatting -> "Convert emoticons like :-) and :-P to graphics on display" is enabled.

    The image link referred by Photon is listed below:
    http://i1.wp.com/www.brunocunha.com/blog/wp-includes/images/smilies/icon_smile.gif?resize=980%2C9999

    When you visit the link, this error is showing:
    "Sorry, the parameters you provided were not valid"

    If you try to access the real link, you'll notice that it's working:
    http://www.brunocunha.com/blog/wp-includes/images/smilies/icon_smile.gif

    By now, I'll disable the "Convert emoticons" function but I still want to use it.

    Is there any one who knows how to solve that?

  4. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    @Bruno. Thanks for the report. This has been fixed and you will see the update working in the Jetpack 2.0.1 release as soon as it comes out.

  5. csburdick
    Member
    Posted 1 year ago #

    The image exists - it's trying to call http://www.automoblog.net/wp-content/uploads/2012/10/2013-Lexus-GS-350-front-side-view-623x389.jpeg

    When Photon is deactivated, it works fine, so it's clearly an issue with Photon.

    The image(s) is question reside in the image gallery for that post. I deleted the image in the article and put it back in there, to no avail. Again, if I deactivate Photon, all is well.

    Thank you.

  6. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    It seems the resized image still exists on your server, but the original image was deleted or did not exist.

    When having a look at one of the other images in your post, I am able to find 2 images:

    Could you go to Settings > Media in your dashboard, and let me know what your Image settings are?

    Do you use any plugin to help you manage or rename image files?

  7. csburdick
    Member
    Posted 1 year ago #

    That's interesting. Shouldn't Photon still be able to display the resized image then?

    My image settings:

    http://www.automoblog.net/wp-content/uploads/2012/11/MediaSettings.png

    The only image-manipulating program I use that I can think of is WP Smush-It (http://wordpress.org/extend/plugins/wp-smushit/)

    Thanks!

  8. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    Could you try to deactivate WP Smush-it, and upload and replace the 2 broken images in your post?

    Let me know if that helps!

  9. csburdick
    Member
    Posted 1 year ago #

    Hi Jeremy,

    Thanks for all your help on this but since it's definitely Photon causing this I've just deactivated it and resumed using my old CDN since I know it works. I might try Photon again in the future once the bugs are worked out.

    Thanks again!
    Chris

  10. designsimply
    Member
    Plugin Contributor

    Posted 1 year ago #

    Chris, I think we can help get Photon working for you. I was just looking through your earlier examples, and the filenames do seem to be a bit off.

    Let's use the first image as the example. The original image being called is http://www.automoblog.net/wp-content/uploads/2012/10/2013-Lexus-GS-350-front-side-view-623x389.jpeg - that works fine. When I deactivate Photon, it also displays fine. But when Photon is activated, it shows that it's broken. When I try to view image (http://i2.wp.com/www.automoblog.net/wp-content/uploads/2012/10/2013-Lexus-GS-350-front-side-view.jpeg?resize=623%2C389) it says "We cannot complete this request, remote data was invalid"

    The 1st link refers to filename 2013-Lexus-GS-350-front-side-view-623x389.jpeg
    The 2nd link refers to filename 2013-Lexus-GS-350-front-side-view.jpeg

    Photon should see those as two separate images.

    If you take the working image link from your site and apply Photon, it works as expected:
    http://i2.wp.com/www.automoblog.net/wp-content/uploads/2012/10/2013-Lexus-GS-350-front-side-view-623x389.jpeg?resize=623%2C389

    Okay, so that's a re-cap and establishes that the Photon API is in fact working. Next, if you're interested in looking into it, I'd like to try to work out why you saw a Photon link for "2013-Lexus-GS-350-front-side-view.jpeg" (which doesn't exist) instead of "2013-Lexus-GS-350-front-side-view-623x389.jpeg." I suspect it's either a bug or it's a plugin conflict (which is what Jeremy was trying to test by asking you to temporarily deactivate WP-Smush-it).

    Note that Photon applies lossless compression with jpegoptim for JPG files, so WP Smush-it isn't needed for files served via Photon.

    Jetpack 2.0.1 will be released soon, and it has several Photon updates—I'm not sure if one of those will fix whatever is causing your issue, but it's certainly worth trying out 2.0.1 when it comes out. If you'd like to look into the issue before then, I'd be happy to help especially if we can find and report a new bug (if it's new, that is).

  11. designsimply
    Member
    Plugin Contributor

    Posted 1 year ago #

    That's interesting. Shouldn't Photon still be able to display the resized image then?

    It depends. Photon takes what is in the HTML source and compresses and caches it to make it faster. If you have some other plugin modifying image URLs before Photon filters the post, that could be the source of the problem.

  12. kjkjava
    Member
    Posted 1 year ago #

    Hello,

    I'm having the same problem, but my original image does exist. This happens with any large images on my site. I have no plugins enabled except for JetPack.

    I've gotten the same error message noted above, or "We cannot complete this request, remote data could not be fetched"

    The image should be embedded in this gallery:
    http://kylekrafka.com/projects/

    And the image that isn't loading is at:
    http://i1.wp.com/kylekrafka.com/wp-content/uploads/2013/01/IMG_1159.jpg?resize=216%2C216

    The other (originally) large images in the gallery didn't work initially either, but after enough fiddling with loading the wp.com link, I got it to work... weird.

    Thanks for any tips or advice.

    -Kyle

  13. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    @kjkjava Do you currently block access to your image directory? While browsing your site, I received the following authentication pop up:
    http://i.wpne.ws/MegZ

    If you limit access to your images, it might also block Photon from caching and resizing your images.

  14. kjkjava
    Member
    Posted 1 year ago #

    @Jeremy Thanks so much for taking a look. I did protect my wp-admin directory and it looks like you saw that because the JetPack Carousel script was trying to access wp-admin/admin-ajax.php. I'll have to get rid of that.

    However, that was a recent addition and I've been having the Photon problem for longer. In any case, I've disabled that and still have the problem.

    Thanks,
    Kyle

  15. JojjE
    Member
    Posted 1 year ago #

    Hi, I have a problem when I enable photon in jetpack. The logo on the website does not work properly. see picture. If I disable the photon it works fine again.
    Images: http://dokumentarfilmer.se/pics/problem.jpg

  16. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    @kjkjava: Thank you. We'll have a closer look, and I will post again as soon as we have an update.

    @JojjE Could you start a new thread about your issue? Your site doesn't seem to be properly connected to WordPress.com at the moment, so this might be a different issue.

    Thank you.

  17. kjkjava
    Member
    Posted 1 year ago #

    @Jeremy I just took a look at http://code.svn.wordpress.org/photon/index.php and noticed there's a 10-second timeout on the fetch_raw_data function. I ran the script on my computer with a higher timeout, and it worked after 18 seconds.

    $raw = fetch_raw_data( $url );
    if ( empty( $raw ) )
    	httpdie( '504 Gateway Timeout', 'We cannot complete this request, remote data could not be fetched' );

    function fetch_raw_data( $url, $timeout=10, $connect_timeout=2 ) {

    So it looks like my server is just too slow! (No surprise there.) I do plan on downsizing most of my images before I upload them in the future, but it'd be nice if the Photon server could be a little more patient with my old machine hosting off of consumer internet.

    I'd love to be in on the solution (or even code it up), if any. Just let me know the best place to discuss it. Maybe the server could wait as long as it is still receiving data and hasn't passed a certain threshold? It's cached after the first time, right? Or at least have the client fall back on loading the original server's version.

    -Kyle

  18. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    Kyle,

    You're right; the load time of some of your images seems quite slow.

    We're currently working on a solution to this problem; we'd like to use an intermediate image size when it's available, and when the original image is too large. I'll post again here as soon as we can address the issue!

  19. bloggista
    Member
    Posted 1 year ago #

    Newbie here, but I got same problem with photon on certain images, and I found that those with images with filename like http://bloggista.com/wp-content/uploads/2011/02/bald-man-222x250.jpg won't get displayed (but if you click on it - it fetches this file http://i2.wp.com/bloggista.com/wp-content/uploads/2011/02/bald-man-222x250.jpg and is showing.

    Deleting these images and re-uploading to content won't work. Try re-naming these images ex. http://bloggista.com/wp-content/uploads/2011/02/bald-man.jpg, re-upload to post and it worked.

    Oh well...

  20. ilushkin
    Member
    Posted 1 year ago #

    I found that those with images with filename like http://bloggista.com/wp-content/uploads/2011/02/bald-man-222x250.jpg won't get displayed (but if you click on it - it fetches this file http://i2.wp.com/bloggista.com/wp-content/uploads/2011/02/bald-man-222x250.jpg and is showing.

    Deleting these images and re-uploading to content won't work. Try re-naming these images ex. http://bloggista.com/wp-content/uploads/2011/02/bald-man.jpg, re-upload to post and it worked.

    Totally worked for me. I had the same problem.

  21. carsuk
    Member
    Posted 1 year ago #

    We know we should be using a CDN as our server does struggle sometimes when we break a story, and just more speed is good anyway. But we've not got round to it.

    So just to see if using Photon would help we turned it on, but it seems to be a bit unreliable at rendering images correctly.

    Some of the time it takes the image - which we optimise and size before uploading to our server - and renders it perfectly:

    http://www.carsuk.net/new-land-rover-defender-will-be-the-bollocks-the-absolute-dogs-bollocks/

    But - doing things exactly the same way and with an image sized and optimised in exactly the same way - Photon decides to change the size:

    http://www.carsuk.net/want-the-jaguar-xkr-s-gt-in-the-uk-then-demand-it/

    It does seem using Photon has added a bit of speed (although it would be nice if it also handled CSS, Javascript etc,) but we're not happy that it seems incapable of rendering images reliably.

    Is there a fix for this, or do we need to turn it off and use a proper CDN?

  22. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    @carsuk Could you activate Photon for a few minutes, and try the following steps:

    1) Open an affected post in the editor.
    2) Switch to the text tab for the editor.
    3) Reload the page.
    4) Copy the post content into Pastebin: http://pastebin.com/
    5) Paste the pastebin URL here, or send it to us via this contact form:
    http://en.support.wordpress.com/contact/?jetpack=needs-service

    Thank you.

  23. carsuk
    Member
    Posted 1 year ago #

    Jeremy, thanks for your input.

    I'm afraid that with Photon breaking the layout we had to bite the bullet and move over to a full cdn (MaxCDN) which we've set up over the weekend and does all we wanted.

    It's a shame, because Photon looked like it would be a good step, but it has at least pushed us in to doing the whole cdn properly.

    I can tell you that around half of the posts we published with Photon correctly resolved the images at 590px (the body width) but for the rest Photon resized to 400px.

    All the photos are sized and optimised before uploading so it had nothing to do with us selecting 'medium' or resizing and in the end we had to give up on Photon to make sure our articles looked right.

    Thanks again for your input.

  24. funsail
    Member
    Posted 1 year ago #

    Yes, couldn't there be some easy form where we can submit a url so that the cache is refreshed? Like the google page submit, we put in http://site.com and it should just recache everything under that site.

    It can even be trivial to add the button to the jetpack plugin in wp-admin to apply to the current site/domain.

  25. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    couldn't there be some easy form where we can submit a url so that the cache is refreshed?

    If you change the file name, you will cache a new version of the file. That should help.

  26. kjkjava
    Member
    Posted 1 year ago #

    Hi Jeremy,

    Any word on my problem (above). Photon was timing out when my server was taking too long to deliver large images. Data was transferring slowly but surely, though.

    Thanks,
    Kyle

  27. hioolen
    Member
    Posted 1 year ago #

    Hi Jeremy,

    We have a similar problem with Photon not showing images.
    We have a grid view of villas on our site, some of the images are not shown with photon activated. In the single page ALL images are not shown.
    So the following occurs:
    This one works:
    http://i0.wp.com/rentalvillasibiza.com/wp-content/uploads/2013/05/360.jpg?resize=370%2C230
    these don't:
    http://i0.wp.com/rentalvillasibiza.com/wp-content/uploads/2013/05/360.jpg?resize=768%2C568
    http://i0.wp.com/rentalvillasibiza.com/wp-content/uploads/2013/05/360.jpg
    We did have W3TC running but i deactivated that to test some more. Turning Photon off resolves all image problems immediately
    Hope you can shed some light ;-)

  28. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    @Kyle No news I'm afraid. If your server cannot deliver the images under 10 seconds, I would recommend that you upload smaller images, until we find a solution to pick some of your resized images when the original image is too large.

    @hioolen All images seem to work for me at the moment. Do you still experience issues?

  29. hioolen
    Member
    Posted 1 year ago #

    nope it seems fine now. The glitch lasted almost the entire day. Any ideas why this could happen? I know our customer will not be pleased with images not showing.
    Do you perhaps know if cloudflare will pick up missing images in it's cache?

    Thanks!

  30. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    If it happens again, I would suggest that you clear your browser cache, or try to access the images in a different browser: we didn't experience any outages that may explain why you couldn't access images hosted on WordPress.com.

    Do you perhaps know if cloudflare will pick up missing images in it's cache?

    I'm not familiar enough with Cloudflare to answer that question, I'm afraid. I would suggest that you give it a try.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic