10up / wp-local-docker-v2

ARCHIVED: A simple Docker based development environment for WordPress.
MIT License
484 stars 82 forks source link

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

Open dreamersofdreams opened 1 year ago

dreamersofdreams commented 1 year ago

Troubleshooting

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:

Code of Conduct