2.14.1.1.12. Image processing failed
Attention!
The information in this article is advisory and is not an exact instruction. The article describes only general recommendations for diagnosing and resolving the issue. For more detailed review and analysis, you should contact specialized experts in site development.When uploading images in WordPress, you may encounter an error with text "Image post-processing failed. Possibly because server is overloaded or does not have enough free resources. Uploading a smaller image might help. Recommended maximum size is 2500 pixels". This error indicates that image cannot be correctly processed due to insufficient resources or request processing time, and because upload is performed by additional Fetch/AJAX requests, obtaining actual error or tracking its causes becomes an extremely difficult task.
In case of such an error, perform the following actions:
- Enable debug mode in WordPress.
- Check browser console for JavaScript errors or server response. JS errors can also return a similar response, and you can also get full error text, which will later help find problem cause and its solution.
- Check PHP error log. In log, you can get information about errors that would indicate cause of problem, for example exceeding max_execution_time or memory_limit limit. If such errors appear, you should try increasing these limits.
- If you notice that requests are hitting the time limit, follow these recommendations:
- Check server resource consumption charts. If charts show load spikes that hit limit, reduce load and try to upload photo later.
- Use the newest PHP version that site supports. Script execution speed strongly depends on PHP version, newer versions work much faster than older ones.
- Switch Imagick version from 7.0 to 6.9. Version 6.9 works somewhat faster but might not have required functionality for site. Before changing, consult site developer.
- Check free disk space. It is important to consider that when uploading photos, CMS usually generates many copies with different sizes, which leads to rapid use of all free inodes, and therefore uploading a single photo can use many inodes.
- Check whether the error occurs when uploading fewer photos or photos with a smaller size.
- Disable all plugins and check photo upload.
If the above methods did not help identify the cause of the problem, you should contact the site developer or specialized experts in this field.