Keywords: Drupal - AWS - Technical issue - Other
When I try to update my Drupal database from 8.2 -> 8.4 with drush I get the error
Just to show what I have been trying to do: ->
when I run ~/apps/drupal/htdocs$ drush --version
The program 'drush' is currently not installed. You can install it by typing:
sudo apt install drush
then I run sudo (it seems to work, but...):
~/apps/drupal/htdocs$ sudo drush pm-update
PHP Fatal error: Class 'Drupal\Core\Session\AccountInterface' not found in /opt/bitnami/apps/drupal/htdocs/core/includes/bootstrap.inc on line 83
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Class 'Drupal\Core\Session\AccountInterface' not found in /opt/bitnami/apps/drupal/htdocs/core/includes/bootstrap.inc, line 83
If I check the version of drush
:~/apps/drupal/htdocs$ sudo drush --version
drush version 5.10.0
I believe the error from running an older version of drush?
If I try to update drush with composer I am stuck with permission errors.
I have been stuck all day (and a novice).
Help would be greatly appreciated.