Hello guys, how to fix this?
Hi,
You must enable the proc_open function in the PHP-CLI version you are using.
Basically, edit /etc/php/X.Y/cli/php.ini and remove proc_open from directive disable_functions.
Note: Replace X.Y with the version of PHP-CLI that your site is using.
1 Like
Hello @sahsanu , edited but same
What did you edit and what exactly is the error message?
Downloading from https://github.com/wp-cli/wp-cli/releases/download/v2.12.0/wp-cli- 2.12.0.phar… md5 hash verified: a592bbf68fc5143bfad5800cb4947253 PHP Fatal error: Uncaught Error: Call to undefined function WP_CLI\Utils\proc_open() in phar:///home/user/wp-cli/wp/vendor/wp-cli/wp-cli/php/utils.php:1535 Stack trace: #0 phar:///home/user/wp-cli/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Process.php(73): WP_CLI\Utils\proc_open_compat() #1 phar:///home/user/wp-cli/wp/vendor/wp- cli/wp-cli/php/commands/src/CLI_Command.php(361): WP_CLI\Process->run() #2 (internal function): CLI_Command->update() #3 phar:///home/user/wp-cli/wp/vendor/wp- cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(100): call_user_func() #4
[internal function): WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher{closure}() #5 phar:///home/user/wp-cli/wp/vendor/wp-cli/wp- cli/php/WP_CLI/Dispatcher/Subcommand.php(491): call_user_func() #6
phar:///home/user/wp-cli/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(419): WP_CLI\Dispatcher\Subcommand->invoke() #7 phar:///home/user/wp- cli/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(442): WP_CLI\Runner-
run_command() #8 phar:///home/user/wp-cli/wp/vendor/wp-cli/wp- cli/php/WP_CLI/Runner.php(125): WP_CLI\Runner->run_command_and_exit() #9
phar:///home/user/wp-cli/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1189): WP_CLI\Runner->do_early_invoke() #10 phar:///home/user/wp-cli/wp/vendor/wp- cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start() #11
phar:///home/user/wp-cli/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(78):
WP_CLI\Bootstrap\Launch Runner->process() #12 phar:///home/user/wp- cli/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap() #13 phar:///home/user/wp-cli/wp/php/boot-phar.php(11): include(‘…’) #14 /home/user/wp-cli/wp(4): include(‘…’) #15 {main} thrown in phar:///home/user/wp-cli/wp/vendor/wp-cli/wp-cli/php/utils.php on line 1535 Error:
cmd exited with errors
php.ini in etc/php/8.3/cli line 323 disable_functions
Replace USER with the actual user name.
runuser -u USER -- php -v | head -n1
runuser -u USER -- /home/USER/.wp-cli/wp --info
it’s on 8.2
So I edit now 8.2
It’s Installed now, thank you very much @sahsanu
1 Like
Maybe we need to edit this images to text so other can search this topic
1 Like
