1 回答
- 最新
- 投票最多
- 评论最多
0
Hello.
The error is most likely a WordPress issue, not a Lightsail or other issue.
https://wordpress.org/support/topic/error-the-server-cannot-process-the-image/
As a workaround, reducing the image size or adding "add_filter( 'big_image_size_threshold', '__return_false' );" in functions.php may solve the problem.
https://make.wordpress.org/core/2019/10/09/introducing-handling-of-big-images-in-wordpress-5-3/
If you think there may be a memory problem, adding "define( 'WP_MEMORY_LIMIT', '256M' );" to wp-config.php may solve the problem.
https://www.wpbeginner.com/wp-tutorials/how-to-fix-post-processing-of-image-failed-error-in-wordpress/
相关内容
- AWS 官方已更新 10 个月前
- AWS 官方已更新 3 年前
- AWS 官方已更新 3 年前
Thanks for feedback. Ill tried memory limit increase and that did not seem to help.
I don't think it's the size of the image. is 1000x700 and 350k PNG. I tried smaller PNGs with same result. JPGs seem to work no problem. This is first time running WP on Lightsail and I've never had this issue with other instances. Any idea why PNGs would not process, but JPGs are working correctly?
I too do not understand why only certain image formats fail. How about increasing the PHP or Apache timeout value?
Just tried to do the following:
None of those worked. I created a new single instance of Wordpress and still running into the same issue. Seems like there is something wrong with the Bitnami WP Image in Lightsail. I don't think I've ever dealt with any issues like this running WP on other hardware before. Thanks for trying to help. Looks like I'll need to explore other options here.
Have you tried multiple png images or just the one? I am not able to reproduce the issue on a WordPress MultiSite instance as I can upload both png and jpg without any issues. I did my testing with an instance size: 1 GB RAM, 2 vCPUs, 40 GB SSD.
Interesting. That's the exact setup I'm using 1GB RAM, 2 vCPUs, and 40 GB SSD. Tried to upload a few different PNGs of smaller and larger sizes (even an 28kb PNG) and all resulted in the same error on a fresh install. I deleted and recreated the stack multiple times and even without any changes a fresh install has the same issues. No idea what's going on. Tried the same thing on a hosted site with a brand new instance and no issues. No idea why it's failing out of box in Lightsail. I will try again without assigning it a domain, maybe that is causing issues?
Update: Just tried with a brand new instance out of box and have the same issue. Brand new fresh install of single instance Wordpress on 1GB RAM and 2CPUs using just the default public address. Tried multiple PNG images and multiple browsers with the same result. Seems like something with the image is misconfigured.