Jetpack by WordPress.com
Photon, wrong month in source URL, broken thumbnail image (4 posts)

  1. Michael
    Posted 1 year ago #

    One of the bloggers in our multisite WordPress network reported the following:

    I am unable to determine what is causing the images inserted in our WordPress site blogs.princeton.edu/etc to no longer be visible a random amount of time after they've been inserted in a post. The image will be visible in the post for a week or two after insertion, and then the next time the post loads all that's visible is either a file name which is also an active link that opens the image file (Firefox), or a small question mark inside a blue square, inside a small rectangle box (Safari), or a square broken picture image inside a rectangle box. It's also generally a struggle to find an image that will be visible in a post after upload, even though it's visible in the Media Library.

    She gave a couple of examples, and I think that I have narrowed down the problem to the month numbers in the image URLs. In the following two posts, the broken images are in the media library, and they show up in the edit screen. However, the images on the live pages are broken.

    Both posts were authored in March (03). However, they were both revised in April (04). The original images have /2014/03/ in the URL. The derivative images have /2014/04/ in the URL.


    On the live site, when you try to access the images directly with a right-click, you get the following error message:

    We cannot complete this request, remote data was invalid

    Notice the date in the Photon-generated image URLs

    Interestingly, when I manually edit the URLs back to March, the images load as expected.

    This is the first time that I have encountered this issue. I am not sure how easily reproducible it is. I suppose editing a post from a previous month, to see if the URLs from the derivative images change to the current month might work.

    We are using WordPress 3.8.1 and Jetpack 2.9.2.


  2. Richard Archambault
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    Hi Michael,

    Before I dive into this with you, have you contacted us via our support form about this? I don't want to duplicate someone else's work. :) Thanks!

  3. Michael
    Posted 1 year ago #


    I completely forgot about this one. Because the site owner in question chose to turn off Photon, I was going to create a test case before submitting a support ticket…

    …and here it is a month later.

    If you cannot quickly reproduce the problem in your environment, let me know, and I can go ahead and try to reproduce the scenario on a test site. The key was having an published post from a previous month and making edits in a later month.

    We are still using WordPress 3.8.3 because we cannot upgrade to 3.9 until the semester is over and written work is graded. Jetpack is 2.9.3.


  4. Richard Archambault
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    Hi Michael,

    Well, I'm unable to reproduce the "images change URL" effect. I don't know why editing the post would change the URL of the image itself, unless the user re-uploaded the same image while revising the post, rather than using the one that was in the media library. If they uploaded the same image and inserted the "new" version into the post, then that would explain the Photon error, as Photon will only ever save one image with a particular file name, but since the "new" image referenced a different file path, then I can see why the image wouldn't be available. I think this is not usual behaviour for editing previously-published posts; I woudn't expect someone to reupload an image and reinsert the same image into the post, just because they're revising it.

    So that's what I think happened. If it doesn't sound like I'm correct, or if you have an idea of why the image URL changed in the edited post, let me know!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Jetpack by WordPress.com
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic