Skip to main content
Last Reviewed: 2026-12-02

Upgrade Drupal 10 to Drupal 11

Upgrade a Composer-managed Drupal 10 site on Pantheon to Drupal 11.


This doc walks you through upgrading a Drupal 10 site to the latest Drupal 11 release in place, using Composer. For the versions Pantheon supports, see Supported Drupal Versions.

Information:
Note

Drupal 10 reaches end of life on December 9, 2026. After that date, the Drupal security team no longer issues security advisories or patches for it. Existing Drupal 10 sites keep running on Pantheon, but Pantheon does not extend support past that date. We recommend upgrading to Drupal 11 before then. For more information, see Drupal 10 End of Life Date, Risks and Next Steps.

Before you begin

Be sure that you have:

  • A Composer-managed Drupal 10.3 or later site on Pantheon that uses the Pantheon Drupal Composer Managed upstream. To check, run terminus site:info <site> and confirm that Upstream includes drupal-composer-managed.
  • All available upstream updates applied to the site.
  • Terminus installed on your local computer.
  • A local clone of your code repository.
  • A recent backup of Live.

Prepare the site on a Multidev environment

Test the upgrade on a Multidev environment before it reaches Live.

Create the environment

  1. Create a Multidev environment:

  2. In your local clone, check out the Multidev's branch. It has the same name as the Multidev:

    Commit and push your changes to this branch as you go. Pantheon builds the Multidev each time you push.

Update Drupal 10

  1. Update Drupal core to the latest 10.6 release, push the change, and run the database updates:

  2. Set the PHP and MariaDB versions in pantheon.yml. PHP 8.3 is the minimum for Drupal 11. If the site already runs a later PHP version, keep it:

    • Drupal 11 needs PHP 8.3 or later and MariaDB 10.6 or later. Set the database to MariaDB 10.6 in pantheon.yml, or to MySQL 8.4 after you reach 10.6. If the site runs earlier versions, update them, then commit and push the change to the Multidev.
    • Confirm the site runs on the versions you set in the status report (Reports > Status report, or /admin/reports/status).
    Information:
    Note

    The database setting follows your code to Test and Live when you deploy, so the database in those environments is upgraded then. Take a backup before you deploy. For the steps and considerations, see Specify a Version of MariaDB.

  3. Install and enable the Upgrade Status module, and run it on the Multidev environment:

    Then open Reports > Upgrade Status on the Multidev. It scans your contrib and custom code and lists what blocks the upgrade. Fix the deprecations it finds in custom code with Drupal Rector or by hand. See Deprecation checking and correction tools on Drupal.org.

  4. Handle the modules and themes that Drupal 11 removed from core. Upgrade Status lists them.

    Drupal 11 removed these core modules: Actions UI, Activity Tracker, Book, Forum, Statistics, and Tour. For the full list, see Deprecated and obsolete extensions on Drupal.org.

    • If the site uses one of these modules, keep it enabled and add its contrib replacement on Drupal 10, for example composer require drupal/book. Uninstalling the module deletes its data.
    • If the site doesn't use one, uninstall it. Also remove any incompatible contrib modules and themes that you already uninstalled.

    Uninstall in the Drupal UI (Extend > Uninstall, and themes under Appearance) or with Terminus, then remove the code from your local clone:

    Warning:
    Warning

    Uninstall a module before you remove its code. Removing the code first causes errors.

  5. Update contrib modules and themes to their latest Drupal 10 releases, then check that each one has a release that is compatible with Drupal 11.

    If a module has no compatible release, check whether its maintainers have a patch or an issue for Drupal 11 support, and apply it with cweagans/composer-patches. If the build fails because the plugin is not in allow-plugins, see Integrated Composer troubleshooting. For more details, see Integrated Composer support.

Move to Drupal 11

  1. Change every Drupal target in composer.json from ^10 to ^11:

    • drupal/core-recommended and drupal/core-composer-scaffold: ^11
    • drupal/core-dev, in require-dev (the default upstream includes it): ^11
    • pantheon-systems/drupal-integrations: ^11
    • drush/drush: ^13
    • symfony/runtime: Drupal 11.4 and later need "symfony/runtime": true in config.allow-plugins.
  2. Commit composer.json and composer.lock, and push to the Multidev environment. Pantheon runs composer install, which reads only the lock file.

  3. Run the database updates, then clear the cache:

  4. Export the configuration. This writes files to the code directory, so switch the Multidev to SFTP mode first. Then commit the files, switch back to Git mode, and pull the commit into your local clone:

Test and deploy

Before you deploy to an environment, create a backup of it if you want to keep its data. Always back up Live.

You can merge and deploy from the Site Dashboard or with Terminus. The steps below use Terminus. For the Dashboard, see Pantheon Workflow.

  1. Test the site on the Multidev environment against everything it does in production. Check that the status report and logs show no new errors, that all features work as before, and that add-ons and integrations behave as before.

  2. Merge the Multidev environment into Dev, run the database updates, import the configuration, and retest:

  3. Deploy to Test, run the same updates there, and retest:

  4. Deploy to Live, run the same updates there, and retest:

Troubleshooting

ArgumentCountError in MemoryBackend::__construct()

pantheon-systems/drupal-integrations is not on ^11, or the site has an old settings.pantheon.php. Update the constraint as described in Move to Drupal 11.

Lock file is not up to date

The build fails because composer.lock still references Drupal 10 packages. Run composer update -W and commit the lock file.

Errors after removing a module

The code was removed before the module was uninstalled. Restore the code, uninstall the module, and then remove the code.

More resources