Keep Drupal core, modules, and themes updated

drupal, updates, composer, modules, themes, core, security · 0 found this helpful

The Updates tab on a Drupal site lists waiting updates for Drupal core, modules, and themes, and installs the ones you pick. This article is for Business and Pro plans, which include Managed Drupal.

Before you start

  • The site must be managed with Composer, the tool that lists and installs a Drupal site's code. Sites installed from a download show Convert to Composer for one-click updates instead. Until a site is converted, update it by hand.
  • Update off-peak. Most updates finish in a few minutes.

What the list shows

Each row shows the project, the installed version, the version it moves to, and its update policy.

Label What it means
Security release The new version fixes a published security advisory. These rows come first. Advisory opens it
Pinned composer.json holds the project at one version. Updating moves the pin to the new version
Unsupported drupal.org no longer supports the installed version
major version The update may change how something looks or works. Check those pages closely

Release notes opens the project's releases on drupal.org.

Update

  1. Open Account → Hosting → your site → Updates.
  2. Click Check now to read the latest list. It takes a minute or two.
  3. Untick anything you want to leave for later, then click Update.
  4. We take a restore point first: a copy of the site's composer.json, composer.lock, and its database. Then we install the updates, run Drupal's database updates, and clear the caches. You can leave the page. Progress shows in the task tray at the top.
  5. We check that the home page and the sign-in page load, and that the site logged no new errors.

While Drupal's database updates run, the site shows its maintenance page. This usually lasts under a minute. Updates that need no database changes don't use maintenance mode at all.

If an update fails

If any step fails, we put the site back on our own, and the task tray says what happened.

  • When the failure comes before the database updates, only the code goes back. Content added in the meantime, like orders or form entries, stays.
  • When the failure comes during or after the database updates, the code and the database go back to the restore point.

If something can't be put back, we email our team and finish it for you.

Undo an update

After an update, the Updates tab shows a banner such as "Updated Pathauto, undo available until December 12".

  1. Click Undo in the banner.
  2. Confirm. We put the site back to the restore point taken just before the update.

Undo is available for 7 days. If the update changed the database, undo puts the database back too, and anything changed on the site since the update, such as new content or form entries, is lost. The banner and the confirmation say which applies. An update that changed nothing offers no undo.

Good habits

  1. Update one thing at a time on a busy site.
  2. Read the release notes for a major version before you update.
  3. Try big updates on a staging site first.

Was this helpful?

Still stuck? Ask us and we'll walk you through it.