Media Upload of Fresh Bitnami Wordpress Multisite fails

0

Set up a fresh instance of Wordpress Multisite v6.3.1 and I'm not able to upload any media files to my server.

When I try to upload any files I see the following

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. Suggested maximum size is 2560 pixels.

I don't see any large spikes in CPU usage and this is a brand new instance. I deleted and old one and try to recreate again, but I'm getting the same error on a new instance.

From apache2 error_log I can see this:

[Sat Sep 16 01:14:01.362874 2023] [proxy_fcgi:error] [pid 2285:tid 140669137958656] (70007)
The timeout specified has expired: [client 104.49.127.209:52015] AH01075: Error dispatching
 request to : (reading input brigade), referer: http://www.thenorthstory.com/wp-admin/uploa
d.php

Update: I just checked and this seems to be only related to uploading PNGs. JPGs upload just fine.

asked 7 months ago263 views
1 Answer
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/

profile picture
EXPERT
answered 7 months ago
  • 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:

    1. Update WP_MEMORY_LIMIT
    2. Update PHP timeout
    3. Update Apache timeout

    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.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions