Skip Navigation

[Resolved] Swapped an image, but still shows old image

This support ticket is created 5 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 6 replies, has 2 voices.

Last updated by Nigel 5 years, 11 months ago.

Assisted by: Nigel.

Author
Posts
#1217389

Hi there,

I recently swapped an older image with a newer one, and have Types pull back the image.

However, for some reason, the older image continues to show up, rather than reflecting the new image.

hidden link

Any thoughts on why this might be happening? I've cleared BB cache and Varnish is not enabled.

Thanks!

#1217607

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screenshot 2019-03-20 at 09.36.27.png

We introduced a setting in Types 3.2.5 so that changes to Types image fields made in the media gallery are reflected when outputting those fields with a types shortcode.

You can find the setting shown in the screenshot at Toolset > Settings > Custom Content. I expect checking that option will fix your issue, if you could please confirm.

#1217875

Hi Nigel,

Thanks for your reply!

The downside of this is that image modifications done using Media Library are not used. Activate this option to always check for image modifications (performance will not be optimal)

I'm a bit concerned, is there a way to retain performance while still resolving this issue?

#1217928

As an update, I just made the above modifications, cleared Toolset cache (and also outdated cache), and BB cache, and refreshed the page.

For some reason, the image did not reflect the change, it is still linking to the same image as previous.

#1218833

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

I looked at your video again and I need to make sure I understand the exact steps so that I can try to replicate the problem.

So it looks like you have an image added to a Types image field, and then you change the image added to that field.

But you don't choose another image from the media library.

It looks like you have somehow changed the image itself, so the image filename is the same, but the image is different.

"I switched up a picture to do another test."

How you do that is missing, but seems a crucial part of the story.

Note that at the 1:01 mark in your video, it is not just Types which is confused about the image, it is the Media Gallery itself, which has a thumbnail that does not correspond to the full sized image when you edit it.

It looks like you need to run the regenerate thumbnails plugin, but I can't say how you arrived at such a point, because I don't know how you "switched up" the picture.

#1220037
Image 2019-03-24 at 10.13.19 AM.png

Hi Nigel,

Thanks for your message. So, I'm using the Enable Media Replace plugin to replace the image file. The way I did it was by going to the image, and selecting their replace image option.

hidden link

Would I need to use something like regenerate thumbnail plugin?

Thank you!

#1220310

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Aha! That is very relevant information.

I'm not familiar with the plugin, but if it doesn't automatically regenerate thumbnails after performing such a replacement I would be surprised.

Maybe check the settings to see if it is an option?

But before going much further, trying using the Regenerate Thumbnails plugin to confirm whether the issue you reported is then fixed.

If it is then I think the solution involves the Enable Media Replace plugin regenerating the other image sizes after being run.

You might still then have an issue with cached custom image sizes, in which case you would need to go to Toolset > Settings > Custom Content and clear the image cache.

If you are worried about performance then instead of outputting a custom image size as specified in the types shortcode—I saw that in your video, right?—then you would be better off registering a custom image size, using add_image_size() (https://developer.wordpress.org/reference/functions/add_image_size/).