Rick Cogley's Tech Logr

Short Technical Laser Bursts %%

RC Logr 20200428 201445

Tuesday, 28 Apr, 2020

Today I upgraded a Drupal site with drush, a convenient cli utility for Drupal, but managed to munge the site up. Fortunately I followed the usual steps, and used ./bin/drush archive-dump to back up prior to upgrading. It gives you a “Backups were saved into /path/to/backups/2020…” message, telling you where the backups were saved. This is my usual procedure:

1
2
3
4
5
6
7
8
9
cd /path/to/drupal/site
./bin/drush archive-dump
./bin/drush ups
./bin/drush sset system.maintenance_mode 1
./bin/drush cr
./bin/drush up drupal
./bin/drush up bootstrap //(etc, for instance)
./bin/drush sset system.maintenance_mode 0
./bin/drush cr

The problem was, I upgraded to the latest without checking my php version, and the drush up failed with some weird error that some helpful soul posted about on Stack Overflow. Since upgrading php to 7.7 from my lowly 5.x is fairly involved, I just compared and restored the backup core files to the production site folder, and did:

1
2
3
./bin/drush cr
./bin/drush sset system.maintenance_mode 0
./bin/drush cr

That fixed it.

RC Logr 20200428 201445 - Today I upgraded a Drupal site … Rick Cogley
Back to Home Tweet Link