Hello,
It seems to be working well with this fix.
Thank you !
Hi,
I have got the same problem after upgrading today.
Hint for the author : it’s caused by the check of system-installed version at the end of ewww_image_optimizer_find_nix_binary function.
It uses ewww_image_optimizer_tool_found function on system-guessed paths, that, when not existing, doesn’t create testopti.png file and try to unlink it anyway.
You need to :
– prefix unlink class in ewww_image_optimizer_find_nix_binary with @ => fast & ugly solution
OR
– test if $testpngsize !== 0 before executing unlink in ewww_image_optimizer_tool_found function (ewww_image_optimizer_filesize return 0 when file doesn’t exist) => better solution
For those who want it to work without errors in production meanwhile, you can search and replace “unlink” to “@unlink” in [wpPluginDirectory]/ewww-image-optimizer/ewww-image-optimizer.php. The fix will override it in the next plugin update.