• Resolved Ivan

    (@calvin13)


    Hello,

    When I have tried to use WP-CLI to update my themes, I saw an error in the command line:

    PHP Fatal error: Uncaught exception ‘RuntimeException’ with message ‘WP GDPR Cookie Notice requires at least PHP version 7.0, but you are only running version 5.4.16.’ in /home/public_html/onelove/wp-content/plugins/wp-gdpr-cookie-notice/wp-gdpr-cookie-notice.php:40

    I have PHP 7.0 installed in my server, and running fine with WordPress (also I have the other version inactive).

    I have deactivate your plugin, and I was able to use WP-CLI and update the themes in the command line.

    Any solution?

    Thank you very much.

    Great plugin!

    • This topic was modified 5 years, 8 months ago by Ivan.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Ivan

    It sounds like you are using a different (older) version of PHP on CLI than what you are using for the web server.

    You can verify this by running wp cli info on your server. It will show you the PHP binary that WP-CLI is using. You can use the WP_CLI_PHP environment variable to point WP-CLI to the correct PHP 7 binary.

    Thread Starter Ivan

    (@calvin13)

    Thank you very much! This is the problem ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Fatal error when I have used the plugin and WP-CLI’ is closed to new replies.