I just ran into the same issue. It’s not a JavaScript error – it looks like the resmushit_optimize_single_attachment
function is only calling reSmushit::revert
, i.e. it is not optimizing the image, it is reverting the image to its original file.
Not sure why it’s like this, but I can’t see any optimization happening at all on wp_ajax_resmushit_optimize_single_attachment
.
UPDATE: Just read the previous thread about re-activating the plugin and somehow it worked. The Optimize button works as expected now.
UPDATE 2: I’ve managed to recreate the issue. Not sure if it’s the only cause of it, but it can be recreated as follows:
1) Click Optimize on any image – it works.
2) Save reSmush.it plugin settings. Settings do not need to have changed.
3) Click Optimize on any image – it shows “Reduced by 0 (0 saved)”.
4) Deactivate and Reactivate plugin – clicking Optimize works again.
I can’t figure out why exactly this happens, but hopefully this will give you enough information to find the problem on your end.
UPDATE 3: Ok, I found the cause of the issue. The problem occurs when the “Optimize on upload” setting is disable. When it’s off the Optimize button doesn’t work and when it’s on it works fine.
-
This reply was modified 7 years, 2 months ago by
Saul F. Reason: Just read the previous thread about re-activating the plugin and somehow it worked. The Optimize button works as expected now