• Resolved MooMee

    (@moomee8668)


    After last update to plugin version 3.4.6 WordPress stopped with “syntax error, unexpected ‘)’ in /public_html/wp-content/plugins/woo-advanced-shipment-tracking/includes/class-wc-advanced-shipment-tracking.php on line 916”

    There are trailing comma in arguments list. This syntax is allowed in PHP 8, but not in PHP 7.2
    However in description:
    Requires PHP Version: 7.2 or higher

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Zorem

    (@zorem)

    Hi @moomee8668,
    Ok, we will check this error and fix it in the next version of the plugin.
    Thanks

    I have the same error on my shops. I disabled this plugin for now, but can you resolve this quickly?
    regards,

    Frans

    Thread Starter MooMee

    (@moomee8668)

    Hi @fbosman,
    There are 2 ways:
    1. Roll back to previous version of plugin and wait for official patch
    2. Edit file plugins/woo-advanced-shipment-tracking/includes/class-wc-advanced-shipment-tracking.php and remove comma after last argument of function on line 916

    I selected 1st option because I have backup copy of previous working version…

    Thanks, I opted for option 2 and it works again.

    Plugin Author Zorem

    (@zorem)

    Hi @fbosman, @moomee8668
    We fixed this error and released the latest version of the plugin(3.4.7).
    Please update with the latest version and check.
    Thanks

    Thread Starter MooMee

    (@moomee8668)

    Just updated, works fine.
    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘ver 3.4.6 wrong syntaxt for PHP 7.2’ is closed to new replies.