Latest version is broken (Jan 3rd, 2022)
-
Hi. I’ve used this plugin for a while and it was working fine. But the latest update on Jan 3rd 2022 is broken! Looking at the code changes:
Debugging code was checked-in and debug code contains call to convert all images to webp. So even if cached image exist, it is still converted just so the debugging information is created. This causes high CPU load for nothing.
Additionally, the new version breaks the site if the conversion to webp fails. Previous versions were reverting back to using original images. New version returns a “false” url of “error” for the image which causes the site to not load images. The previous version correctly reverted back to original image if server could not convert image to webp.
The code to build the debugging variable $r should be disabled.
And all return values in the call to preg_replace_callback should return either the cached, converted image or original image.
Thank you for the other changes; but unfortunately, some changes in the latest version have broken this plugin.
- The topic ‘Latest version is broken (Jan 3rd, 2022)’ is closed to new replies.