• Resolved jimk1416

    (@jimk1416)


    After update 6.8.0
    Getting this message when running updates via WPL-CLI:
    Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.
    Parse error: syntax error, unexpected ‘)’ in /home/directory/public_html/directory/wp-content/plugins/ewww-image-optimizer/classes/class-ewwwio-cli.php on line 327

Viewing 5 replies - 1 through 5 (of 5 total)
  • This is a bug in the new update. Open that file, wp-content/plugins/ewww-image-optimizer/classes/class-ewwwio-cli.php, and go to line 327.

    This is the correct code for line 327.

    '%image%' //,

    Thread Starter jimk1416

    (@jimk1416)

    Thanks.
    I assume it will be updated in the next version?

    Plugin Author nosilver4u

    (@nosilver4u)

    Hi folks,
    Thanks for reporting that, and thanks Eric for jumping in here. That comma can just be removed entirely. We’ll have it updated in the next release for sure!

    That’s the downside of me testing/developing on PHP 8, which now allows the “trailing comma” syntax 🙂

    Thread Starter jimk1416

    (@jimk1416)

    Thanks for the fast response.
    The fix worked for me as @nosilver4u wrote.

    Thread Starter jimk1416

    (@jimk1416)

    It actually worked as @fferic wrote.
    Thanks to you both

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘critical error’ is closed to new replies.