joppuyo / acf-image-aspect-ratio-crop

Image Aspect Ratio Crop field for Advanced Custom Fields
https://wordpress.org/plugins/acf-image-aspect-ratio-crop/
GNU General Public License v2.0
106 stars 17 forks source link

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

Open firstinternet opened 1 year ago

firstinternet commented 1 year ago

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?

joppuyo commented 1 year ago

Hello!

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

klaus-aunds commented 2 months ago

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.

firstinternet commented 2 months ago

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