Facing an error while uploading images in Wordpress 5.3:
Post-processing of the image failed. If this is a photo or a large image, please scale it down to 2500 pixels and upload it again.
Facing an error while uploading images in Wordpress 5.3:
Post-processing of the image failed. If this is a photo or a large image, please scale it down to 2500 pixels and upload it again.
This same issue I faced after updating my WordPress to latest version 5.3. For a quick solution as of now, you can get over this by uploading the images to the media library first. Currently, if we are uploading images from anywhere else it’s showing the same issue. I hope it helps.
I have tested it on my own website.
Hopefully, team WordPress will fix this soon.
Fixed by increasing client_max_body_size
to something like 100/200M(if you use nginx).
client_max_body_size
on nginx same as upload_max_filesize
setting on php. –
Daloris This same issue I faced after updating my WordPress to latest version 5.3. For a quick solution as of now, you can get over this by uploading the images to the media library first. Currently, if we are uploading images from anywhere else it’s showing the same issue. I hope it helps.
I have tested it on my own website.
Hopefully, team WordPress will fix this soon.
WordPress 5.3 introduces this feature but it a bug. Until a WordPress update is released with a fix for the error, this is how you can disable this.
Simple add this line in your child theme functions.php file.
add_filter( 'big_image_size_threshold', '__return_false' );
Just encountered this bug. There was an apostrophe (') in the image's filename - once I removed it, all was fine.
Uploading from incognito window solved my problem. WordPress 5.3
Here is one more step to help you debug. Have your inspector open to the network tab and look at the post request and its response.
In our case the issue was a bad AWS IAM policy not allowing uploads to the S3 bucket.
Only viewing the message there was what lead us in the right direction to fix the issue. The WordPress error is pretty generic for (server did not respond with success).
I recently received this error because I had already uploaded an image with the same filename. I don't know why it couldn't say something accurate like "duplicate file name" instead of something wrong and meaningless like "if this is a photo or a large image, please scale it down to 2500 pixels and upload it again."
I got this error but it wasn't a Wordpress nor a php problem. If you are using nginx be sure that the setting client_max_body_size is not set to the default 1M (which means 1Mb only for images passed in a POST not using multiform/part). I increased it and everything worked fine.
I have another solution for this, just had this problem gladly could figure how.
First see if your handling PHP 7.1 further
Then, you need enable mbstring in cPanel
In servers having a cPanel, it is easier to enable mbstring. So, for cPanel customers we enable mbstring as follows:
Firstly, we login to the cPanel account. Next, we go to the Software section. Here, we click the drop-down to Select the PHP version. Now, select the PHP extension mbstring. Finally, click the save button.
Image to what to select in PHP Version
Updating php to latest version , plus activating imagick module on from cpanel > select php version fixed the issue ...
Just thought I'd add my two cents since I stumbled across it looking for a solution myself before finding one. Now I've just experienced this exact same issue from around the web and it seems specifically related to Wordpress in versions of PHP 7.2+ or something which requires the installation of "Imagick" as well which for Redhat/Centos can be done like so:
dnf install php-pecl-imagick
I was able to use this to get the files to upload again though I still had some other issues which were resolved by updating the a lot of the limits of PHP via this guide: https://websiteforstudents.com/fix-file-upload-issues-with-wordpress-running-on-nginx-on-ubuntu/
imagick
, upgrade php version to 7.4
, and increase upload_max_filesize
after refresh page, fixed this issue. –
Knife Yet one more possibility ... after trying all these other solutions with no luck, I checked the console and was getting a 500 error on the js upload script. This was due to some code in functions.php that "worked" in older php versions but not 7.4. Non-helpful error message.
mageMagick (part of php) is causing the problem. So, i just added this lines to wp-includes/functions.php
to tell WordPress to use GD editor instead.
add_filter( 'wp_image_editors', function() {
return array( 'WP_Image_Editor_GD'); } );
The simplest way to tackle this problem is to change the php version from 8 to 7.4. The complete details are in this article Post Processing of image failed
I had the same error and tracked it down to my password-protected wp-admin directory. Removing the password-protection solved it. (The password protection adds lines in htaccess in wp-admin, you can also remove those).
But I did not want to take the password protection away. What solved it for me, while keeping wp-admin password-protected was adding the following in the .htaccess at site root level (so not in the htaccess file in wp-admin):
# Exclude the file upload and WP CRON scripts from authentication
<FilesMatch "(async-upload\.php|wp-cron\.php|xmlrpc\.php)$">
Satisfy Any
Order allow,deny
Allow from all
Deny from none
</FilesMatch>
Solution (and other solutions for other situations) found here:
https://docs.presscustomizr.com/article/229-fixing-errors-when-uploading-images-in-wordpress
© 2022 - 2024 — McMap. All rights reserved.