• atomicwp

    (@atomicwp)


    Hello!

    I have my server on RunCloud, it is running PHP v8.1 (although I’ve rolled it back to PHP version 7.4 with no improvement) and when I run certain WP CLI commands I am getting all kinds of errors and warnings. I have other apps on the same server, where the CLI runs as expected so this is a bit curious.

    What’s different about this build? It’s a WooCommerce store.

    When I run “wp search-replace” I get this error:
    PHP Fatal error: Uncaught TypeError: unserialize(): Argument #1 ($data) must be of type string, array given in phar:///RunCloud/Packages/RunCloudAgent/bin/wp-cli/vendor/wp-cli/search-replace-command/src/WP_CLI/SearchReplacer

    When I run this command “wp plugin update” I get this warning:
    PHP Warning: Trying to access array offset on value of type null in phar:///RunCloud/Packages/RunCloudAgent/bin/wp-cli/vendor/wp-cli/extension-command/src/Plugin_Command.php

    Ubuntu 20.04
    WP version 6.1

    Any help appreciated.

    • This topic was modified 2 years ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 1 replies (of 1 total)
  • threadi

    (@threadi)

    The error message refers to files that Runcloud provides you with. They are not part of WordPress. I would recommend you to contact the Runcloud community. Maybe they have an old version of wp-cli installed there.

Viewing 1 replies (of 1 total)
  • The topic ‘WP CLI Fatal Error’ is closed to new replies.