Updating to PHP 7.2 errors

Hello,

When I attempt to update to php 7.4 I get the following error.

usage: ee (sub-commands …) [options …] {arguments …}
ee: error: argument --php: ignored explicit argument ‘7.4’

Any assistance is greatly appreciated!

I don’t know much about this. I will search for this and will post my answer here.

We have added support for this in latest EE version 4.0.15
Check if you have latest version.
command to install latest version ee cli update
after that use ee site update example.com --php=7.4

When I try and update I get the following

usage: ee (sub-commands …) [options …] {arguments …}
ee: error: unrecognized arguments: cli update

Bump for an answer :slight_smile:

No answers? hmmm

bump one last time

I still get this error when i try the update provided.

usage: ee (sub-commands …) [options …] {arguments …}
ee: error: unrecognized arguments: cli update

Has anyone else been bale to update their php to 7.4? I can’t be the only one having this issue? Must be some work around. Or i’ll need to use a different solution - Really liked easyenigne. Would hate to need to start fresh when it’s a such a small issue but necessary.

any help is greatly appreciated.

Which EE version you are using ?

You can try again now, the updates in php 7 has improved a lot.

thanks for the replies. I can install it now but it breaks my site and give me a bad gateway.

I run
ee stack restart --php7
Your platform does not support PHP 7
ee stack install --php7
PHP 7.0 already installed
ee cli check-update
usage: ee (sub-commands …) [options …] {arguments …}
ee: error: unrecognized arguments: cli check-update

i’m assuming i don’t have EE4 installed but how do i install i I can’t use cli?

thanks

hi try using this 192.168.0.100 it worked out for me
try installing it and tell me how it goes
cheers

Do you have a plugin installed that modifies the wp-admin login page or modifies the admin pages? If so, you may try deleting that plugin from the wp-content/plugins/ directory, as it may not be compatible with PHP 7.2. You could also try switching back to the previous PHP version your site was using before and deactivate all plugins then switch back to PHP 7.2. If no errors are shown, then it’s a plugin so you will need to activate each plugin individually until you find the culprit(s). This same concept could also be applied to the current theme/child theme the site is currently running on.

Alternatively, you can check the PHP error logs and see where the error is coming from and make the necessary changes.