WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
[resolved] Deleted version of image (same name) still showing up on pages (11 posts)

  1. EdwinLiUxD
    Member
    Posted 1 year ago #

    [reposted from my question posted at the Twenty Twelve support forum, http://wordpress.org/support/topic/deleted-version-of-image-same-name-still-showing-up-in-posts?replies=5 ]

    Hi,

    I have a self-hosted WP blog on bluehost.com (edwinli.com/ux/), running a network, and using the Twenty Twelve theme.

    For two of my pages (full-width template),

    I wanted to have an image appear above the title of the page, as in a post that has a featured image. I learned from a support thread here that that's not possible currently (http://wordpress.org/support/topic/featured-image-for-pages?replies=6).

    I'd created an image that was 960px x 290px.

    So then I went with an workaround alternative, by adding that same picture full-sized at the top of the pages (to appear under the page title).

    But I wanted to re-edit the image (bringing some of the elements in away from the edges of the image). I edited the image on my computer, deleted the first one from my WP media library, then re-uploaded the image, using the same filename.

    Then I added them back to the two pages.

    But when I look at the pages in my browsers now (laptop, tablet, smartphone), what I see on those pages is the old image.

    When I click on the image on that page, I get the new image at this URL: http://i1.wp.com/edwinli.com/ux/wp-content/uploads/sites/2/2013/06/portfolio-header-image-01.jpg

    When I click to Edit the image from the Media Library, I see the correct, new image on that Edit page. But when I copy and paste the permalink on that page to see the image (http://edwinli.com/ux/portfolio/portfolio-header-image-01/), I see an attachment page, but it shows the old image.

    When I click on that old image on that attachment page, I get the new image (same URL as the previous paragraph).

    I lost track of how I got to it, but I managed to get to this URL, which shows the old image: http://i1.wp.com/edwinli.com/ux/wp-content/uploads/sites/2/2013/06/portfolio-header-image-01.jpg?fit=960%2C960

    Matching up with that last URL is another URL that is almost the same, but shows the new image:
    http://i1.wp.com/edwinli.com/ux/wp-content/uploads/sites/2/2013/06/portfolio-header-image-01.jpg

    User paulwpxp in the WordPress.org forum suggested that this might be a JetPack-Photon-related issue.

    I don't know much about how the system works, but it seems as if there is some sort of caching going on that is not being properly updated with the new image. Could it be that the system is confused by the fact that the newly uploaded filename is the same as the old one that I'd deleted?

    What can I do to flush the old image from the system? I'd already used "Delete Permanently" on that old image before uploading the new one...

    Thanks in advance!

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

  2. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    I just flushed Photon's cache for that image. The new image should get cached in the next 10-15 minutes.

    Let me know if this helped!

  3. EdwinLiUxD
    Member
    Posted 1 year ago #

    Hi! Thanks for doing that!

    I've just checked, and the results are a bit puzzling.

    From my laptop (which, incidentally, is where I did all the image editing and from which I uploaded the images), the behavior has not changed. I just checked both before and after a reboot. That was with Chrome. And the laptop is running Windows 7.

    Post-reboot, I've now also checked using IE9 and Firefox 17.0.1. Same behavior.

    I checked with Firefox on another Windows 7 computer also, a computer that hadn't yet visited my site. Same thing as originally reported.

    I've also rebooted my tablet, an HP Touchpad running webOS v3.05, which uses a webkit-based browser. No change from last night, even after rebooting that as well.

    On the plus side, when I checked with my iPhone 4S (Safari), without having rebooted it, I saw it initially load the implicated pages with the old image, but, without refreshing the page, I noted that the browser switched to the new image--either just after it finished loading the page or very close to the end of the loading.

    So there's a positive indication...though the rest of them seem unchanged...

    This is about 7 hours after your post.

    I expect that I could just avoid this problem altogether by re-naming the new image and uploading that, replacing the images in my pages with that newly renamed image, but I would kind of like to understand what's going on here, or at least how to prevent the problem...I usually like the filenames that I use...

  4. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    Do you still experience issues today? It might be worth cleaning your browser caches as well, since the wrong image might be cached there too.

  5. EdwinLiUxD
    Member
    Posted 1 year ago #

    Hi! Everything (almost) seems now to be working as it should. The image seen in all places is the new image.

    There is one oddity, however, and that is that the image does not show up on its attachment page: http://edwinli.com/ux/portfolio/portfolio-header-image-01/.

    That is true of all browsers from my laptop, my iPhone 4S, and my HP Touchpad. Clicking/tapping on the empty box on the attachment page where the image should show leads to successfully showing the image on its own, again, in all tested browsers/devices.

    Could that be an effect of something related here?

  6. EdwinLiUxD
    Member
    Posted 1 year ago #

    ...And now when I checked via my various devices, the attachment page shows just what it should. Weird.

  7. EdwinLiUxD
    Member
    Posted 1 year ago #

    To understand what happened here, was it just that the new image had the same name as the first image? And would this have resolved itself over time? If yes, would that be timescale be days or a week, or something else?

    Thanks for your help!

  8. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    There is one oddity, however, and that is that the image does not show up on its attachment page: http://edwinli.com/ux/portfolio/portfolio-header-image-01/.

    ..And now when I checked via my various devices, the attachment page shows just what it should. Weird.

    It works on my end too. Weird indeed. I'm not sure what happened here.

    To understand what happened here, was it just that the new image had the same name as the first image?

    That's correct. The first image was cached by the Photon module, and since the file name never changed, Photon kept serving that old image.

    And would this have resolved itself over time?

    It's currently not possible to invalidate the cache; the images are cached “forever”. If you want to “refresh” an image you will need to change the name of the image.

  9. matrexx
    Member
    Posted 9 months ago #

    If you uploaded the image on a different day and you have the setting for media to be set into folders based on the upload date, that might contribute somehow to the issue as well.

  10. idogenealogy
    Member
    Posted 6 months ago #

    Just had the same experience -- updated image on the site but old image being shown. EVEN after I had DELETED that old image and done the whole replacement bit for it. Am using the "Enable Media Replace" for the rest. Still the old images.

    Read this thread -- and deactivated the Photon in the Jetpack. Problem solved.

    Lesson learned -- while developing a site, keep that part of Jetpack turned off.

  11. Metzae
    Member
    Posted 5 months ago #

    I was having this same problem, so I disabled Jetpack. Then I went back to the page that wasn't working, and clicked the Update button. After that, the image started loading properly.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic