acf-image-aspect-ratio-crop icon indicating copy to clipboard operation
acf-image-aspect-ratio-crop copied to clipboard

Crop Error - ACF / WPML / WP-OFF Load Media

Open firstinternet opened this issue 1 year ago • 3 comments

Hi,

I'm having an issue at the moment, we're offloading media to digital ocean spaces using WP-Off Load Media plugin, however, when we try to crop an image it seems to hang and then returns an error: Failed to crop image.

We're using the following plugin versions:

WordPress: 6.0.2 ACF PRO: 5.12.13 Advanced Custom Fields: Image Aspect Ratio Crop: 6.0.2 WP Offload Media: 2.6.1 WPML Multilingual CMS: 4.5.14

Have you had this issue before?

firstinternet avatar Mar 07 '23 10:03 firstinternet

Hello!

Could you check the PHP logs? It should have a more detailed error message that helps to debug this issue further.

joppuyo avatar Mar 17 '23 09:03 joppuyo

Hi @joppuyo , we have a very similar setup and faced what could be the same issue. The logs just had a generic error

[fcgid:warn] [pid 8694:tid 34406409728] [client xxxx] mod_fcgid: read data timeout in 300 seconds, referer: https://domain/wp-admin/post.php?post=ID&action=edit
[core:error] [pid 8694:tid 34406409728] [client xxxx] End of script output before headers: admin-ajax.php, referer: https://domain/wp-admin/post.php?post=ID&action=edit

We "solved" it by increasing the FcgidIOTimeout value to 600. This is a poor workaround, since the the time used for image cropping becomes impractical for the user.

We've seen this behaviour with php80, php81 and php82.

Let me know what else you need to know about our setup. I'd be also happy to run tests if needed.

klaus-aunds avatar Apr 30 '24 14:04 klaus-aunds

We're still having this issue... Switching to using the classic API instead of WP-JSON fixes the issue for us.

firstinternet avatar May 01 '24 12:05 firstinternet