Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
firstinternet opened this issue Mar 7, 2023 · 3 comments
Open

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

firstinternet opened this issue Mar 7, 2023 · 3 comments

Comments

@firstinternet
Copy link

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
Copy link
Owner

joppuyo commented Mar 17, 2023

Hello!

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

@klaus-aunds
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants