Viewing 6 replies - 1 through 6 (of 6 total)
  • I got the same error in 2.5.8 version

    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.

    Plugin Author nosilver4u

    (@nosilver4u)

    @simrobin, thanks for that, I’ll get a fix out within the next day or two (the proper way of course).

    Plugin Author nosilver4u

    (@nosilver4u)

    Try the dev release here, I’ve posted a potential fix: https://downloads.www.ads-software.com/plugin/ewww-image-optimizer.zip

    Hello,

    It seems to be working well with this fix.
    Thank you !

    Thread Starter ktakahisa

    (@ktakahisa)

    I confirmed this problem was fixed.
    Thank you for your swift response!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘2.5.8 and PNG optimization’ is closed to new replies.