Skip Navigation

[Resolved] Repeatable images are not resizing after types 3.0 update

This thread is resolved. Here is a description of the problem and solution.

Problem: After updating to Types 3.0, resized images are not appearing correctly on my site.

Solution: Update to Types 3.0.7.

This support ticket is created 6 years, 6 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 7 replies, has 2 voices.

Last updated by Christian Cox 6 years, 4 months ago.

Assisted by: Christian Cox.

Author
Posts
#912515

Ever since the latest updates, the repeatable field for images shortcode are not resizing the images. This is happening with all the sites I've updated.

Example:

[types field='logo' alt='%%ALT%%' title='%%TITLE%%' height='104' align='center' resize='proportional' separator='<li class="fifth">'][/types]

or

[types field='logo' title='%%TITLE%%' alt='%%ALT%%' align='center' size='thumbnail' resize='proportional' separator='<li class="fifth">'][/types]

are output the full size original image only.

If I output the shortcode for URL of a resized version of the image then it works, but only on a default size (ie, thumbnail, medium, not custom size).

[types field='logo' title='%%TITLE%%' alt='%%ALT%%' size='medium' resize='proportional' class='center' url='true' separator=', '][/types]

Is this a bug?

#912624

Hi, I'm not aware of a bug related to this. Can you log into wp-admin, then go to Toolset > Settings > Custom Content and tell me the settings in the Images section? Clear the image caches and toggle the checkboxes on and check the fields again on the front-end.

Are you using a wpv-for-each loop? Can you share the complete code if so?

#912679
Screen Shot 2018-06-12 at 22.26.19.png

Hi.
Tried clearing the cache in the settings and the browser cache and played around with the checkboxes. No difference.

My original loop was this:

<ul class="sponsorlogos">
  <li class="fifth">
[types field='logo' alt='%%ALT%%' title='%%TITLE%%' height='104' align='center' resize='proportional' separator='</li><li class="fifth">'][/types]
      </li>
</ul>

Tried the wpv-for-each-loop. Custom size does not work, but a default size does:

<ul class="sponsorlogos">
[wpv-for-each field="wpcf-logo"]
   <li class="fifth"><img class="aligncenter" src="[types field='logo' size='medium' url='true'][/types]"></li>
[/wpv-for-each]
</ul>

So I could add a custom size in the functions for a default size.

The above code was working before the update, and as mentioned used on a few websites.

#913011

Okay thanks, I'm not able to replicate this problem locally so I suspect something else is going on. May I log into your site's wp-admin panel and see how things are set up? If necessary I will make a clone of your site using the Duplicator plugin so I can run additional tests without affecting your live site. I have activated private reply fields here so you can share login information.

Please let me know where I can see the repeating images on the front-end of the site.

#913183

Very strange. I downloaded a clone of the site and I'm having the same results you found - the resized images are working but they're stored in a 1970 directory. I will escalate this problem to my 2nd tier support team for some additional investigation, and get back to you when I have more information to share.

#913462

My 2nd tier support team is looking into the 1970 directory issue that we are both able to replicate on our local clones. It may be related to the resized images showing at original size, and it may not. For the main issue you were reporting - images not being resized correctly - since neither of us is able to replicate this on our clones of the site I'm not able to offer any concrete solutions yet. Here are some things you can try:
- Temporarily activate a default theme like Twenty Seventeen, and deactivate any plugins except Types, Views, and Layouts. If any object caching systems are in use on your host environment, disable and / or flush them.
- Edit and resave each Sponsor post
- Build a new View using a new Content Template, and replace the current Home Page Sponsor Carousel View with the new View.
- Delete and reinstall all Toolset plugins
- Go to Toolset > Settings > Layouts and increase the max number of pages to refresh something higher like 10000, temporarily

#1074954

Hi, our developers have provided some feedback. We are currently using the 1970 folder to store resized remote images. Apparently this helps facilitate clearing the cache of remote resized images without affecting the images from the Media Library. So the 1970 folder is expected in this case. The next release of Types will include a fix for the problem where resized images are not appearing correctly after the Types 3.0 update. I will keep you posted here and let you know when that update is available to download or for automatic update.

#1076394

Hi, please find Types 3.0.7 available for download or automatic update. Install the latest version and let me know if resized images are still not displaying correctly.