• I used to host images on jetpack CDN, their URL started i0.wp1.com/etcetc

    Let’s say I created a mosaic OR thumbnail gallery
    as we know the HTML code is just saved as a number. That number refers, I think, to the original image available at the time of creation

    Later I install a different CDN. Let’s say it’s KEYCDN

    Key CDN updates all regular images with the correct reference to cdn.mysite.com/blahbal/blah.jpg.webp

    However. when the gallery images are displayed if i right click to discover their URL then the original jetpack image is still used.

    If I edit and change the gallery and change it back, then the webp images are used.

    there is also weird behaviour of featured images also not properly displaying the CDN stored image on my theme, but let’s save that one for later πŸ™‚

    Quesiton: How do I refresh approximately 150 galleries on my site that all incorrectly point to old, slow images. (this is a bug!)

Viewing 15 replies - 1 through 15 (of 20 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    I recommend asking at https://wordpress.org/support/plugin/jetpack/#new-post so the plugin’s developers and support community can help you with this.

    Thread Starter the5krunner

    (@the5krunner)

    it’s not a jetpack issue its a gallery issue

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Which gallery?

    Thread Starter the5krunner

    (@the5krunner)

    at least MOSAIC, maybe others
    eg on https://the5krunner.com/2021/02/10/polar-verity-sense-review/ on desktop

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    What plugin are you using for your gallery, if any?

    Thread Starter the5krunner

    (@the5krunner)

    no plugin. just standard wordpress

    Thread Starter the5krunner

    (@the5krunner)

    simple code like this:
    [gallery type="rectangular" columns="1" size="full" ids="60502,60501"]

    so there is obviously a table somewhere which links the IDs to actual filenames.

    that table has the i0.wp.com / i1.wp.com image names ie it is still using the jetpack cdn even though that option is definitely disabled.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    You’re still hosting your images on a CDN. For example,
    <img data-attachment-id="60497" data-orig-file="https://cdn.the5krunner.com/wp-content/uploads/2021/02/IMG_2193-scaled.jpg" data-orig-size="2560,1297" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;5&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;Canon EOS 1000D&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1612801985&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;38&quot;,&quot;iso&quot;:&quot;400&quot;,&quot;shutter_speed&quot;:&quot;0.016666666666667&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}" data-image-title="Polar Verity Sense Review Specifications" data-image-description="" data-medium-file="https://cdn.the5krunner.com/wp-content/uploads/2021/02/IMG_2193-300x152.jpg" data-large-file="https://cdn.the5krunner.com/wp-content/uploads/2021/02/IMG_2193-1024x519.jpg" src="https://i2.wp.com/the5krunner.com/wp-content/uploads/2021/02/IMG_2193-scaled.jpg?w=475&h=241&ssl=1" width="475" height="241" data-original-width="475" data-original-height="241" itemprop="http://schema.org/image" title="Polar Verity Sense Review Specifications" alt="Polar Verity Sense Review Specifications" style="width: 338px; height: 171px;">

    Clear the CDN or disable it to see if the problem goes away.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    If you’re using one of the Jetpack gallery styles (e.g., carousel or tiled gallery), you’ll also get images on the wp.com domain.

    Thread Starter the5krunner

    (@the5krunner)

    if i deactivate jetpack and restart it…it makes no difference

    if i go into a post and change the format one one gallery but not another, then only the gallery I’ve changed updates to the correct image location.

    of course the jetpack i0.wp.com images are still there…it’s just that it becomes a CEO issues with multiple cdns being referenced,

    but it’s still a bug!

    Thread Starter the5krunner

    (@the5krunner)

    i can confirm that purging the cdn (my new cdn) does not cause the prob to go away..

    Thread Starter the5krunner

    (@the5krunner)

    so i just need to know the name of the lookup table where the cross reference to the IDs are and I can do a search and replace on it.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Try disabling jetpack entirely.

    Thread Starter the5krunner

    (@the5krunner)

    yes i disabled jetpack entirely and flushed the caches etc etc
    its not cache issue
    the issue is in the lookup table

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    A gallery shortcode is a list of IDs to the wp_posts table.

Viewing 15 replies - 1 through 15 (of 20 total)

The topic ‘Incorrect Gallery Images Used – When using CDN’ is closed to new replies.