Those who still support D7 sites -

I'm seeing failures from drush when running drush up and drush status.
Oddly, I can run drush rr and drush updatedb just fine.

I'm getting this in the console:

Deprecated function: Array and string offset access syntax with curly braces is deprecated in include_once() (line 20 of /home/::domain::/public_html/includes/file.phar.inc).

I read somewhere that this was an issue with PHP 7.4, so I aliased PHP for that user to 7.2:

$ php --version

PHP 7.2.26-1+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Dec 18 2019 14:58:00) ( NTS )

However that didn't help. I just had to update core by hand, but this really needs fixing. I'd be sad if drush completely collapsed.

Any ideas appreciated.

Comments

msamavi’s picture

The same issue here. Please provide a fix. Thanks

stefsabi’s picture

with this update PHP 7.4.1 (cli) (built: Dec 18 2019 14:44:04) (NTS) drush is no longer possible

msamavi’s picture

Sam can you please let us know how did you do the fix by hand? thanks

wcweb’s picture

sudo update-alternatives --set php /usr/bin/php7.2
sam moore’s picture

As @wildcoast suggests
sudo  update-alternatives --set php /usr/bin/php7.2
works. 

ami7878’s picture

You saved my day :)