Hi there,
I have been using WP Smush on this site for a number of years – the site is a webcomic and the owner of the comic uploads their strips each week.
The strips are quite large files – between 6-7MB each – and I use Smush Pro to compress these on upload down to around 2MB each.
Recently Smush Pro has stopped working properly on this website. Below is a breakdown of what is happening / what I have tried.
Firstly, uploading a new 6MB image was timing out with a HTTP Error. I fixed this by changing things like the max_execution_time, max_input_vars etc, and by turning off automatic smush on upload.
This allowed us to upload images but when we tried to compress them we were still getting the same error message.
Since then I have optimised the website database, deleted post revisions/trash posts, removed some tables leftover from old plugins, etc.
I have also installed the 'Stop Generating Image Sizes' plugin which prevents the website from generating thumbnails which are not in use, and set it up so that the only thumbnails being generated are the WordPress thumbnail, medium, and large sizes as well as a custom size I have added through functions.php (300px square, hard crop).
I then force regenerated all thumbnails on the website.
Now, when I upload a large image it uploads correctly but it only appears to Smush the generated sizes and not the original full-size image, despite me having that option selected in the Settings.
In the media library, it gives me the option to 'resmush' the image, including the original file, but when I click that button (or try to bulk smush from the plugin page) I get this error message: Error posting to API: 404 Not Found .
This issue first appeared a couple of weeks ago – everything was working fine before that point. All themes, plugins and WordPress core are up-to-date on the website.
If there is any way you can look into this issue I would be very grateful – I am happy to grant you access to the website if that would help troubleshoot.
Thanks
Hannah