PHP Fatal error: Can't use function return value in write context in usr/bin/wp/vendor/wp-cli/wp-cli/php/utils.php

ivam not abke to install WordPress in my website using cyber panel it shows Installation failed. Error message:

["PHP Fatal error: Can't use function return value in write context in phar:///usr/bin/wp/vendor/wp-cli/wp-cli/php/utils.php on line 761"," [404]"]

Welcome @therahulsaini Happy you are here

Are you using wordpress manager?

Have you tried to run upgrade script

Noo . I don’t know how to do that

Open ssh terminal or vnc and run this command (copy-paste as is)

sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh || wget -O - https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh)

If using a sudo user rather than root, try this:

sudo su - -c "sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh || wget -O - https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh)"

I use termux