• Resolved jimk1416

    (@jimk1416)


    Getting this critical error when updating plugins using WP CLI

    PHP Parse error:  syntax error, unexpected ')' in /home3/users/public_html/website/wp-content/plugins/inactive-logout/core/Bootstrap.php on line 25

    This is happening since updating to Version 3.1.2. If I disable the plugin the error disappears.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter jimk1416

    (@jimk1416)

    Is anyone else seeing this issue?
    I am running a Bash script in an SSH session to run the WP CLI commands on multiple websites. When I run the commands this way I get that error and none of the plugins needing updates for that website are completed.
    If I run the WP CLI commands manually for those websites one at a time I get no errors.
    This only happens for the websites with inactive logout installed and activated. If I deactivate the plugin the commands complete successfully.

    This worked fine prior to version 3.1.2

    • This reply was modified 1 year ago by jimk1416.
    Plugin Author Deepen

    (@j_3rk)

    Hi

    Which command are you using? If this error is occurring on 3.1.2 then the error that you are facing is with PHP version checker code. Is the PHP version lower than 7.4 for some sites?

    I tested again with (as always) CLI but was not able to replicate the issue on my end.

    Thread Starter jimk1416

    (@jimk1416)

    Thank for the reply. I’m using PHP Ver 7.4.33.
    Just using these commands:

    wp cron event run wp_update_plugins
      wp plugin update --all
      wp cache flush

    I changed the PHP version for one website to 8.1.18 but still getting the same error.

    • This reply was modified 1 year ago by jimk1416.
    Thread Starter jimk1416

    (@jimk1416)

    I installed the plugin Ver 3.1.2 on another website running on a different server and there is no error there.
    It looks like the issue is the PHP Version that CLI is using.
    The server that is generating the errors is using Ver 7.4.33
    I was able to get the PHP Ver for the CLI up to Ver 8.1.18 and that resolved the issue.
    Thanks

    • This reply was modified 1 year ago by jimk1416.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Critical Error’ is closed to new replies.