WP CLI Fatal Error
-
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.1Any help appreciated.
- The topic ‘WP CLI Fatal Error’ is closed to new replies.