Skip Navigation

[Resolved] Image Block Error: Something went wrong on resizing the image.

This support ticket is created 2 years, 4 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 5 replies, has 2 voices.

Last updated by John Appleseed 2 years, 4 months ago.

Assisted by: Luo Yang.

Author
Posts
#2413323

I am trying to:
Apply a custom size with crop and scale to an image block. When I attempt to save the custom size I get the error "Something went wrong on resizing the image."

I found a help thread that said to check if php-gd is enabled. I did:
php -i | grep 'GD\|ImageMagick'

and I get:
GD Support => enabled
GD headers Version => 2.3.0
GD library Version => 2.3.0

What else should I try? Thanks.

#2413667

Hello,

There should be some PHP error in your website, please try to get the PHP debug logs from your website:
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/#php-debugging
section "PHP Debugging"

#2413673

You are using old version of Toolset Types plugin, we have released Toolset Types plugin 3.4.16 recently, it includes some fix on PHP8, please try to upgrade it to the latest version, and test again, you can download it here:
https://toolset.com/account/downloads/
click link "Download Toolset manually"

#2413939

Hi, good tips, ty. I updated the plugins, the error unfortunately remains. Here is this error (minus some info for privacy)

[Fri Jul 08 14:34:13.208811 2022] [php:warn] [pid 522761] [client 74.78.107.228:59471] PHP Warning:  fopen(<em><u>hidden link</u></em>): Failed to open stream: HTTP wrapper does not support writeable connections in /var/www/html/wp-includes/class-wp-image-editor.php on line 570, referer: <em><u>hidden link</u></em>

I'll try to figure out what this means but if you have any suggestions I really appreciate it!

#2414223

So I partially figured out the error above. The Site Address field for wordpress was still set to HTTP rather than HTTPS. With that change, I no longer get the error "Something went wrong on resizing the image." in the block editor itself.

However, now when I go to Add Custom Size, it appears to work for a second, then reverts to one of the default sizes and won't save. I checked the error log and its still a very similar error:

PHP Warning:  fopen(<em><u>hidden link</u></em>): Failed to open stream: HTTP wrapper does not support writeable connections in /var/www/html/wp-includes/class-wp-image-editor.php on line 570, referer: <em><u>hidden link</u></em>
#2414473

This problem was still occurring because old assets were still in the database using http instead of https. Using the plugin Better Search Replace I was able to update all those old urls in the database. Now it's working correctly!
My issue is resolved now. Thank you!