• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Issue WordPress Image Upload Error - "Server cannot process the image" - PHP limits issue

majdi draouil

New Pleskian
Server operating system version
Ubuntu 22.04.5 LTS
Plesk version and microupdate number
Obsidian18.0.72
Environment:
============
- Plesk Version: Obsidian (latest)
- OS: Ubuntu 22.04.5 LTS
- PHP Version: 8.2.29 (FPM)
- WordPress Version: 6.7.0
- Domain: nefzawa.net

Problem:
========
WordPress shows this error when uploading images:

"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 2,560 pixels."

What I've Found:
================
1. PHP CLI (php.ini) shows CORRECT limits:
memory_limit => 512M
upload_max_filesize => 512M
post_max_size => 512M

2. PHP-FPM Pool Config has NO limits or only:
/opt/plesk/php/8.2/etc/php-fpm.d/nefzawa.net.conf

php_value[memory_limit] = 256M

(Missing: upload_max_filesize and post_max_size)

3. Nginx configured correctly:
client_max_body_size 134217728;

4. Both GD and Imagick extensions are loaded
5. Upload directory permissions are correct (drwxr-xr-x)
6. Previous uploads worked fine (October 2025 folder has images)

What I Tried:
=============
Command:
plesk bin php_settings -u -domain nefzawa.net -memory-limit 512M -upload-max-filesize 512M -post-max-size 512M

Result: "Per-domain PHP settings of all domains were successfully updated."

Problem: FPM pool config file doesn't actually change!

Verification:
grep -E "memory_limit|upload_max|post_max" /opt/plesk/php/8.2/etc/php-fpm.d/nefzawa.net.conf

Still shows old values or empty.


Additional Info:
================
- No errors in /var/log/plesk-php82-fpm/error.log
- WordPress debug.log is empty
- Server resources are fine (40% memory, 78% disk)
- PHP-FPM service is active and running

Has anyone solved this issue where Plesk doesn't properly apply PHP-FPM pool
limits for WordPress image uploads?[/CODE]
 

Attachments

  • Screenshot_2025-11-01_00-10-42.png
    Screenshot_2025-11-01_00-10-42.png
    45.4 KB · Views: 2
  • Screenshot_2025-10-31_23-46-09.png
    Screenshot_2025-10-31_23-46-09.png
    60 KB · Views: 2
  • Screenshot_2025-10-31_23-45-14.png
    Screenshot_2025-10-31_23-45-14.png
    132.8 KB · Views: 2
The max body size looks to be set to roughly 134MB so depending on how big the image you're uploading if it's over that it will not be uploaded although I will recommand setting the max body size in the domain > apache & nginx settings, there's a setting there for "Maximum allowed HTTP request body size" to match the settings you have for the PHP configuration.
 
Back
Top