drush-ops / drush

Drush is a command-line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those who spend their working hours hacking away at the command prompt.
https://www.drush.org
2.33k stars 1.08k forks source link

Failed to upgrade Drupal 8.7 Core #4172

Open webmasterpf opened 5 years ago

webmasterpf commented 5 years ago

Describe the bug Unable to do Drupal Upgrade

Actual behavior Fatal error: Method Drupal\Core\StringTranslation\TranslatableMarkup::__toString() must not throw an exception, caught Error: Class 'Drupal\locale\SourceString' not found in /www/xxx/xx/vendor/drush/drush/includes/output.inc on line 0

Drush 8.3. D8.7.7 folder is downloaded but files and folders didn't replace D8.7.3 as designed.

D8.7.3 folders/files are deleted...

System Configuration

Q A
Drush version? /8.3
Drupal version? 8.7.5
PHP version 7.2
weitzman commented 5 years ago

Please upgrade to latest Drush release and post here if bug still present. Also, Drush 8 is no longer recommended with Drupal 8.

webmasterpf commented 5 years ago

I know but I can't use command like upsor up with drush9 so I revert to Drush8..

leymannx commented 5 years ago

Which supports Drupal up until version 8.3, see https://docs.drush.org/en/master/install/#drupal-compatibility.

webmasterpf commented 5 years ago

So to be clear : Drush9 is recommanded for Drupal 8.7x but doesn't provide commands to update. Drush8, isn't recommanded but provide commands and give my error below.

Is Drupal Console or Composer can update drupal and his modules ? Instead of Drush.

webmasterpf commented 4 years ago

Upgrade with Composer seem to be the best way. Drush9 isn't designed for this since composer can do it.