Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Media Library uploads throwing 'server cannot process the image' errors #329

Open
2 tasks done
dreamersofdreams opened this issue Feb 15, 2023 · 0 comments
Open
2 tasks done
Labels
question Further information is requested

Comments

@dreamersofdreams
Copy link

Troubleshooting

  • I have attempted to troubleshoot this already

Describe your question

Very new to docker & wp local docker so perhaps there's an easy solution just overlooked... but both me and my counterpart are experiencing same issue.

Upon trying to upload any image files over 1mb into Media Library, we keep getting message: "The server cannot process the image. This can happen if the server is busy or does not have enough resources to complete the task. Uploading a smaller image may help."

So first thing I did was edit the docker-php-ext-xdebug.ini file to:
upload_max_filesize = 32M
post_max_size = 64M
memory_limit = 256M
max_execution_time = 300
max_input_time = 300

Okay, cool, now when I view Wordpress site health media handling and server settings I see changes went into effect:

image

image

So that all looks good now, yet still get error message for anything over 1mb, whereas anything less uploads fine.

Some other things I tried unsuccessfully:

  • switching image post-processing default from ImageMagick to GD Library
  • increasing proxy_read_timeout, proxy_connect_timeout, and proxy_send_timeout

Code of Conduct

  • I agree to follow this project's Code of Conduct
@dreamersofdreams dreamersofdreams added the question Further information is requested label Feb 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant