Skip Navigation

[Resolved] resize image to custom size in toolset view

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

Problem:

The Resize image option of the image block loses the custom option sometimes.

Solution:

Make sure that all the image names uploaded to WordPress do not have non-Latin characters.

It might have issues on some servers.

This support ticket is created 2 years, 10 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.

This topic contains 9 replies, has 2 voices.

Last updated by larsZ 2 years, 10 months ago.

Assisted by: Christopher Amirian.

Author
Posts
#2453741
Bildschirmfoto 2022-09-09 um 11.57.41.png
Bildschirmfoto 2022-09-09 um 12.22.30.png

I use several toolest views on my front page. In these views, featured images of different pages are displayed. I need to resize the images to a custom size. This works almost every time, but now and again, the image size block in the settings is not displayed at all (see screenshot) or it shows an error (see screenshot).

As I mentioned: It works in other cases on the same page, but then it fails in one of them.
I already deactivated all third party plugins and even used the WP starter theme, all without success.

I use Toolset Blocks 1.6.3.

Do you have any hint for me?

Thanks a lot,
Lars

#2454783

Christopher Amirian
Supporter

Languages: English (English )

Hi Lars,

The only thing that I have found in the Toolset support was this erratum:

https://toolset.com/errata/unexplained-problems-on-backend-edit-screens-possibly-associated-with-json-errors/

But it seems that you do not use the Yoast plugin. So I need to check and see the backend.

Would you please kindly create a staging version of the website and get back to us with the user/pass and URL?

That way we can troubleshoot without the fear that the changes will affect the live website.

Please also give us the URL of the view that has the issue.

Also, make sure you mark the next reply as private.

Thanks.

#2455571

Christopher Amirian
Supporter

Languages: English (English )

Screen Shot 2022-09-12 at 17.48.09.png

Hi there,

I tried to access the website but my browser throws this warning and does not allow me to access it. (Check the attached screenshot)

#2455605

Hi Christopher,
sorry, I missed to order an SSL certificate. Now fixed, please try again.

Lars

#2456389

Christopher Amirian
Supporter

Languages: English (English )

Hi Lars,

Thanks, I have access to the site now.

Would you please create a complete backup of the website and apply the patch below?

https://toolset.com/errata/custom-sized-images-not-working-when-output-via-types-shortcode/

See if it fixes the issue.

Thanks.

#2456405
Bildschirmfoto-2022-09-13-um-15.42.22.jpg

Hi Christopher,
I just changed that file you provided in the staging site – with no effect. "Image size" is still not provided as an option in the views backend (see screenshot). The strange thing is, that it works in all the other views on that page.
Any idea?

Thank you for your support!
Lars

#2456895

Christopher Amirian
Supporter

Languages: English (English )

Thank you Lars,

Would you please create a new view that contains the same information of the view which has the issue.

Use that view and see if it fixe issue?

Thanks.

#2457033

Hi Christopher,

I tried with a new view, but without any effect. It behaves just the same way as my original.

But it turns out, that I can fix the issue by renaming the one file, that obviously causes the trouble. It is the one, that is displayed on the 1st position in the view. The files name was "istockphoto-1300756344-1024x1024-3.jpg". That has no non-latin characters in it, right?

Another thing that I mentioned: The wrongly displayed images were automatically chosen in webp-format. After renaming the broken(?) file, the jpg-versions were correctly chosen by Toolset.

Maybe these bits can help you to figure out the bug for future versions.

Best, Lars

#2457045

Christopher Amirian
Supporter

Languages: English (English )

Hi Lars,

Thank you for the great troubleshooting. I will inform this to the dev team.

I suggest that you set this chat as resolved so I can create a summary for this ticket and mention your finding to help other customers here.

Thanks.

#2457049

My issue is resolved now. Thank you!