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
The same issue here. Please
The same issue here. Please provide a fix. Thanks
Have the same problem
with this update PHP 7.4.1 (cli) (built: Dec 18 2019 14:44:04) (NTS) drush is no longer possible
Sam can you please let us
Sam can you please let us know how did you do the fix by hand? thanks
PHP 7.4.1 error in file.phar.inc
https://www.drupal.org/project/drupal/issues/3105433
Use a previous known working version (Debian / Ubuntu)
Fell back to 7.2
As @wildcoast suggests
sudo update-alternatives --set php /usr/bin/php7.2
works.
============================
Resonetrics: Better Tools for Building Brands
http://resonetrics.com
http://technologyformarketers.com
http://kittenassociates.org
http://www.linkedin.com/in/sammooreatresonetrics
You saved my day :)
You saved my day :)