Drupal

Drupal 10 to 11 Upgrade Checklist: Commands and Fixes

Title card on a dark background reading: Drupal 10 to 11 upgrade checklist. Commands, checks and fixes, step by step.

Drupal 10 reaches end of life on 9 December 2026, according to the drupal.org core release schedule (updated 24 November 2026). This checklist gives you the commands, decision points and failure fixes for moving a Drupal 10 site to Drupal 11, in the order you need them.

It follows the official drupal.org upgrade guide (updated 21 August 2026). Where we add our own advice, we label it "our recommendation". Any command that does not come from the guide is ours and untested, so run it on a development copy first.

For EOL dates and which 11.x minor to target, read our Drupal 10 end-of-life post. Drupal 7 sites cannot use this path: see Drupal 7 to 11: migrate or rebuild.

Key Takeaways
  • Be on Drupal 10.3.0 or later and PHP 8.3.0 or later before the core update.
  • If you rely on a core module that Drupal 11 removed, require its contrib version first. Uninstalling it deletes its configuration.
  • Run Upgrade Status on the Drupal 10 site, because most of its checks cannot run after you upgrade.
  • Fix custom code with Rector, then decide an action for every contrib module.
  • Use composer why-not drupal/core ^11 to find what blocks the update.
  • Take a database dump and a code tag before the production run, and rehearse the restore.

Before You Begin

You need the following before you start:

  • A Drupal site on 10.3.x or later (the guide says all core updates before 10.3.0 were removed in Drupal 11).
  • PHP 8.3.0 or later available for the site.
  • Composer, Drush and shell access.
  • A development copy with database and files. The guide suggests trying the upgrade in DDEV.
  • Git, so you can review every change to composer.json, composer.lock and config.
  • Difficulty: intermediate to advanced (our estimate).

Step 1: Record Your Current State

By the end of this step, you'll know your exact core minor, PHP, Drush and extension inventory. The commands in this step are ours. They assume a web/ docroot, so adjust paths if yours differs.

php -v
composer --version
vendor/bin/drush --version
vendor/bin/drush status --field=drupal-version
composer show --direct | grep -E 'drupal/core|drush/drush'
composer show --direct | grep '^drupal/' > inventory-contrib.txt
vendor/bin/drush pm:list --type=module --status=enabled --no-core --format=table > inventory-enabled.txt
find web/modules/custom web/themes/custom -name '*.info.yml'
grep -rL core_version_requirement web/modules/custom web/themes/custom --include='*.info.yml'

The last command lists custom info files with no core_version_requirement.

Document every customised scaffold file, especially .htaccess. The guide says all core files, including .htaccess, will change.

Decision point: if core is below 10.3.0, update to a 10.3.x or later release first, then continue.

Step 2: Meet the Platform Requirements

Drupal 11 needs PHP 8.3.0 or later. The PHP requirements page lists Drupal 10.4 to 10.6 as supporting PHP 8.1 to 8.4, so you can raise PHP while still on Drupal 10 and test there.

Drupal core

Supported PHP

10.4 to 10.6

8.1 to 8.4

11.1 to 11.2

8.3, 8.4

11.3 to 11.4

8.3, 8.4, 8.5

The page's matrix rows we read did not include 10.3, 11.0 or 11.5, so check the PHP requirements page for yours. In DDEV, set the PHP version with ddev config --php-version 8.4 (see the DDEV config docs). The upgrade guide does not pin a Drush version, so treat the Drush install table as authoritative for Drush and core pairings.

These database minimums come from the Drupal 11.0.0 release notes. They are 11.0.0 values, so check the requirements for the minor you target.

Requirement

11.0.0 value

MySQL / MariaDB

8.0 / 10.6

PostgreSQL

16

SQLite

3.45 with json1

PHP extension

zlib

To check your server version, our command is vendor/bin/drush sql:query 'SELECT VERSION();'. It assumes a server database and fails on SQLite, so use your database tool there. Check zlib with php -m | grep -i zlib (also ours). IIS support was removed and Drupal no longer ships web.config.

Bundled libraries change between minors. For example, the 11.2.0 notes make PHPUnit 11 the default, with a downgrade to 10 possible. We did not verify later 11.x versions, so read composer.lock after your dry run.

CKEditor 4 is end of life, and its contrib module gets no coordinated security releases, per the deprecated and obsolete modules page. Our recommendation: move CKEditor 4 editors to CKEditor 5 first.

Step 3: Check the Removed Core Modules

By the end of this step, you'll know which removed modules your site still uses.

The table below is the list from the deprecated and obsolete page (28 November 2026), which names a contrib project with the same machine name for each. It may not be exhaustive, so also check the 11.0.0 notes.

Module

Contrib project

What to check

Actions UI

action

Whether it is enabled and which config depends on it

Activity Tracker

tracker

Pages, blocks or views that link to it

Book

book

Book outlines and content using them

Forum

forum

Forum content and its taxonomy

Statistics

statistics

Anything showing counters

Tour

tour

Custom tours in your own modules

Our command finds them. It assumes the machine name appears in parentheses, so check your output format.

vendor/bin/drush pm:list --status=enabled --format=table | grep -Ei '\((action|tracker|book|forum|statistics|tour)\)'

If you rely on a removed module, do not uninstall it. The 11.0.0 notes allow uninstalling or requiring the contributed version, but uninstalling deletes its configuration. Require the contrib version first.

Our example, not from the guide, to test on a copy: on the Drupal 10 site, before the core bump, run composer require drupal/book. Do likewise for forum, statistics, tour, action and tracker as needed. Check each project page for a release that fits your core.

The guide lists Single Directory Components and Help Topics as obsolete, not removed. Check your site for them. We did not verify whether they need action. The "Add new module/theme" admin pages are also gone, so install code with Composer.

Drush can bypass update.php warnings about missing modules, so check /admin/reports/status after updating.

Step 4: Run Upgrade Status on the Drupal 10 Site

By the end of this step, you'll have a saved report of what blocks the upgrade.

Our reading of the project page: use the 4.3.x line for a 10 to 11 upgrade. Version 4.3.11 (15 November 2026) lists ^9 || ^10 || ^11. Version 5.0.0 (16 November 2026) lists ^10.4 || ^11 || ^12. Its page text is written for the next major, so we read it as the 11 to 12 readiness line. Confirm this on the project page.

Our recommendation: update to the latest 10.x first, so the scan sees current deprecations. Then, on 10.3 or later 10.x:

composer require --dev 'drupal/upgrade_status:^4.3'
vendor/bin/drush pm:install upgrade_status -y

In the admin UI, open Reports, then Upgrade status. Per the project page, the Drush commands need Drush 13 or later, or vendor/bin/dr on Drupal 11.4 and later.

vendor/bin/drush upgrade-status:analyze --all --ignore-uninstalled
vendor/bin/drush upgrade-status:report --groups=fix-with-rector

Short aliases are us-a and us-r. Other analyze options include --ignore-contrib, --ignore-custom, --phpstan-memory-limit (default 1500M) and --format.

Run it against Drupal 10. Most checks cannot run after the upgrade, and the project page says skipping majors, such as 10 to 12, is unsupported. Keep the module installed through Steps 5 and 6, and remove it only in Step 7.

Reading the categories

Results are action-based, not severity-based. The names below come from the project page text and may differ between release lines. "Fix now manually" and "Check manually" need human review. This table is our reading of the rest.

Category

Our reading

Fix now with rector

Run Rector (Step 5)

Update requirements

Fix info.yml or composer.json constraints (Step 6)

Consider contrib deprecations

Look for newer contrib releases

Raise core requirement and fix, Update core and fix

Revisit after the core change

Saving results and CI

Our recommendation: save a baseline, fix, then re-run and compare while the module is still installed. Confirm the output lands on stdout in your version.

vendor/bin/drush upgrade-status:analyze --all --format=csv > us-baseline.csv
# fix code and contrib, then re-run:
vendor/bin/drush upgrade-status:analyze --all --format=csv > us-latest.csv
diff us-baseline.csv us-latest.csv

For CI, per the project page, exit code 3 means next-major messages or a failed analysis, and 0 means neither. The GitLab templates job targets module porting, not site projects.

Step 5: Fix Custom Code with Drupal Rector

By the end of this step, you'll have applied the automatic fixes to custom modules and themes.

Start in your project:

composer require --dev palantirnet/drupal-rector
cp vendor/palantirnet/drupal-rector/rector.php .

The README documents a 1.0 beta: composer require --dev "palantirnet/drupal-rector:^1.0@beta". It also shows a composer-based config, which needs Rector 2.8.4 or later:

<?php

use Rector\Config\RectorConfig;

return RectorConfig::configure()
  ->withComposerBased(drupal: true);

Then dry-run, review and apply (inside the worktree, if you needed one, see below):

vendor/bin/rector process web/modules/custom/my_module --dry-run
vendor/bin/rector process web/modules/custom/my_module
git status
git diff

The README example uses web/modules/contrib, so we adapted the path to custom code. The README also lists vendor/bin/rector composer-based to show active rules, so check the README for your version.

If Composer reports a PHPStan 1 conflict

The Rector README warns of a conflict when a project pins PHPStan 1, for example through mglaman/phpstan-drupal. Our recommendation, to verify on a copy: keep Upgrade Status installed in your main checkout and run Rector in a separate working copy. Then apply the diff back.

In the worktree copy, drop Upgrade Status and, if it is the pinned package, mglaman/phpstan-drupal, as the Rector README describes (docs/running-against-drupal-10.md). Read your Composer error to see which package conflicts. Run the dry-run and apply commands above inside the worktree, not in your main checkout.

git worktree add --detach ../site-rector
cd ../site-rector
composer install
# remove the conflicting packages here, install Rector, run Rector
git add -N .
git diff -- web/modules/custom web/themes/custom > ../rector.patch
cd - && git apply ../rector.patch
git worktree remove --force ../site-rector

The git add -N . line makes files Rector created show up in the diff. Check git status first, and use your actual worktree path. The --force is needed because the worktree has modified composer files and intent-to-add files. The worktree is built from the committed HEAD, so uncommitted work in your main checkout is not in it.

What breaks on Drupal 11

Code using an API tagged @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0 breaks on Drupal 11. Items tagged for removal in Drupal 12 will not break on 11.

Object-oriented hooks arrived in Drupal 11.1.0 and are optional. Procedural hooks still work, so conversion is not required. The optional converter is --config=vendor/palantirnet/drupal-rector/rector-hook-convert.php.

Step 6: Triage Contrib Modules

By the end of this step, every contrib module has a decided action. First, update custom info.yml files:

core_version_requirement: ^10 || ^11

Precedence matters: the composer.json core requirement wins, then core_version_requirement, then a core module version in dependencies. A stale composer.json can still block you.

Our recommendation: where a contrib release supports both Drupal 10 and 11, update it on Drupal 10 first. Test, commit, then do the core bump.

Situation

Action

Drupal 11 release exists

Require it. Upgrade Status can miss these, so check the project page

Patch in the issue queue

Apply with cweagans patches, review it, and drop it when merged

Patch only, no release

Edit core_version_requirement in the module's info.yml, or try a module named Backward Compatibility on drupal.org (we did not verify its status). Apply via Composer Patches

Lenient plugin

Testing aid on a dev copy only, see below. Then replace it with a real release or a patch before production

Nothing exists

Contact maintainers; node 3032484 describes the patch practice

Abandoned, no owner

Our recommendation: replace it

No longer used

Uninstall on the dev copy, export config, then composer remove

To support both majors, the guide allows constraints like "drupal/linkit": "^6.1 || ^7.0".

The guide and the dedicated page disagree about the Lenient endpoint. The upgrade guide still mentions it. The dedicated drupal.org page says packages.drupal.org/lenient is no longer available, and you can remove the lenient entry from repositories. Follow the dedicated page. It also says the lenient approach should not be used in production, and core still blocks incompatible extensions.

You can use mglaman/composer-drupal-lenient as a testing aid on a dev copy. It rewrites core constraints so packages accept ^8 through ^12:

composer require mglaman/composer-drupal-lenient
composer config --merge --json extra.drupal-lenient.allowed-list '["drupal/example_module"]'

Its README gives no compatibility guarantee, and modules may be untested. Verify each one by hand. A global install is not recommended. Its config lives in composer.json and the lock file, which Step 12 deploys. Remove the plugin and re-run the dry run before the final lock.

Step 7: Run the Composer Upgrade

By the end of this step, core 11 is installed and the database updated, on your development copy.

If Upgrade Status is still installed, save your final report first. Then, per the guide, remove it:

vendor/bin/drush pm:uninstall upgrade_status -y
composer remove drupal/upgrade_status --no-update

If you installed Rector in the main project, not only in the worktree, remove it before the dry run, because a PHPStan pin can block resolution. Our commands, untested:

composer remove --dev palantirnet/drupal-rector --no-update
rm rector.php

Then run the guide's sequence. The core-dev line is optional in the guide, but the Step 10 PHPCS and PHPUnit checks need it:

chmod u+w web/sites/default
chmod u+w web/sites/default/*settings.php
chmod u+w web/sites/default/*services.yml

composer require 'drupal/core-recommended:^11' 'drupal/core-composer-scaffold:^11' 'drupal/core-project-message:^11' --no-update
composer config allow-plugins.symfony/runtime true
composer remove drupal/core --no-update   # only if listed explicitly
composer require drush/drush --no-update
composer require 'drupal/core-dev:^11' --dev --no-update   # needed for the Step 10 phpcs and phpunit checks

composer update --dry-run
composer update
composer install

vendor/bin/drush updatedb:status
vendor/bin/drush updatedb

chmod 755 web/sites/default
chmod 644 web/sites/default/*settings.php web/sites/default/*services.yml

For a core-only update, the guide gives composer update "drupal/core-*" drush/drush --with-all-dependencies. If resolution fails, the guide suggests trying a narrower constraint. Our reading: that helps only if you pinned a lower minor deliberately. ^11.4 is a subset of ^11, so if ^11 fails, ^11.4 cannot succeed. The useful diagnostics are composer why-not drupal/core ^11 and composer update --dry-run -vvv (the -vvv is our suggestion).

You can also isolate the blocker. Our recommendation: on the dev copy, remove the suspect package with composer remove vendor/package --no-update, then repeat the dry run.

Our recommendation on timing: per PSA-2026-11-02 (2 November 2026), 11.4 security support ends 21 April 2027 (UTC) and 11.5 runs to August 2027. Plan the move to 11.5 once your modules allow.

Step 8: Fix Composer Failures

Warning: deleting composer.lock re-resolves every package, so versions can move beyond Drupal. Do this only on the dev copy, and review the composer.lock diff.

Symptom

Fix

Unknown blocker

composer why-not drupal/core ^11 (alias of prohibits) lists what blocks it

Cause still unclear

Our command: composer update --dry-run -vvv

Direct dependencies pinned too tightly

The guide lists composer show --no-dev --direct --name-only | xargs composer require --no-update. Our risk note: it rewrites every direct constraint, so review the composer.json diff

Lock file out of sync

Delete composer.lock and vendor, then composer update (see the warning above)

Patch fails to apply

Check if it merged into core, or needs a Drupal 11 version

Upgrade Status Drush commands missing

Check your Drush version against the Drush install table

Patches from cweagans/composer-patches live in composer.json. Re-check each one:

"extra": {
  "patches": {
    "drupal/example_module": {
      "Describe the fix": "https://example.com/path/to/patch.diff"
    }
  }
}

Step 9: Review Config and Scaffold Files

By the end of this step, config and scaffold changes are understood and committed.

Run vendor/bin/drush config:status (alias cst) to see differences between the filesystem and database. In CI, use drush config:status 2>&1 | grep "No differences". Our recommendation: if differences appear, run drush config:export on the dev copy and read the Git diff before committing.

Because all core files change, compare .htaccess and other scaffold files with your Step 1 notes and reapply your customisations. The guide says to remove custom Statistics rules. This matters only if you customised .htaccess with this line:

RewriteCond %{REQUEST_URI} !/core/modules/statistics/statistics\.php$

Step 10: Verify After Upgrade

The guide asks you to deploy, check file permissions and ownership, and work through your launch checklist. It also asks you to run PHP CodeSniffer, PHPUnit or Behat, drush watchdog:tail and drush cron. The exact invocations below are ours.

The phpcs and phpunit lines need drupal/core-dev. If you skipped it in Step 7, install it with composer require --dev 'drupal/core-dev:^11', or skip those two checks.

vendor/bin/phpcs --standard=Drupal,DrupalPractice web/modules/custom
vendor/bin/phpunit -c web/core web/modules/custom
vendor/bin/drush watchdog:tail
vendor/bin/drush cron

PHPUnit paths depend on your setup. Run Behat too if you use it. Open /admin/reports/status and confirm no missing-module warnings remain.

Also check your themes. Confirm each active theme and its base theme still exist, and compare any core themes you use with the deprecated and obsolete page.

Step 11: Plan the Rollback (Our Recommendation)

This section is our recommendation, not from the drupal.org guide, and it is untested. Database updates change the schema, so a code rollback alone is not enough. Rehearse the restore on a copy and time it.

Name one go/no-go owner and agree the criteria before the window opens. To roll back:

  1. Restore code: git checkout pre-d11-upgrade, then composer install --no-dev to match what production ran. Checking out a tag detaches HEAD, so match your deploy tooling.
  2. Restore files from your backup, run from the project root: tar -xzf /backups/files-pre-d11.tar.gz.
  3. Restore the database. Our preferred route is a new empty database: create it, repoint settings.php, then run:
gunzip -c /backups/pre-d11.sql.gz | vendor/bin/drush sql:cli

The alternative is vendor/bin/drush sql:drop -y before the same restore command. This wipes the live database, so use it only on a rehearsal copy or when you are rolling back.

The Step 12 dump was taken in maintenance mode, so the restored site is in maintenance mode too. After restoring, run these (ours, untested):

vendor/bin/drush state:set system.maintenance_mode 0 --input-format=integer
vendor/bin/drush cache:rebuild

Step 12: Run the Production Upgrade (Our Recommendation)

This sequence is also our recommendation and untested, so rehearse it on a staging copy. It assumes you built and committed composer.lock on the dev copy, so production installs what you tested.

Before the window: raise PHP to 8.3 or later and the database server to the minimums from the 11.0.0 notes (MySQL 8.0, MariaDB 10.6, PostgreSQL 16, SQLite 3.45) on production while it is still on Drupal 10.

  1. Enter maintenance mode: vendor/bin/drush state:set system.maintenance_mode 1 --input-format=integer.
  2. Dump the database. --gzip writes a compressed .gz file:
vendor/bin/drush sql:dump --gzip --result-file=/backups/pre-d11.sql
  1. Back up files, for example tar -czf /backups/files-pre-d11.tar.gz web/sites/default/files.
  2. Tag the currently deployed code: git tag pre-d11-upgrade.
  3. Deploy your release tag or commit. Deploy tooling varies, so git checkout <tag> may not match your process.
  4. Run composer install --no-dev, optionally with --optimize-autoloader.
  5. Run vendor/bin/drush updatedb.
  6. If you use config management, run vendor/bin/drush config:import.
  7. Run vendor/bin/drush cache:rebuild (our step, not from the guide).
  8. Smoke test key pages and forms. In maintenance mode this needs a logged-in admin.
  9. Leave maintenance mode: vendor/bin/drush state:set system.maintenance_mode 0 --input-format=integer.

If the go/no-go owner calls it off, follow Step 11.

What to Hand to Your Team

  • Core on 10.3.0 or later, PHP 8.3.0 or later, Drush version checked against the Drush install table
  • Production PHP and database server raised before the core release
  • Inventory of contrib and custom code saved
  • Removed core modules checked, contrib versions required where used
  • Upgrade Status baseline and final report saved
  • Rector changes reviewed in Git
  • Every contrib module triaged, patches re-checked
  • Scaffold customisations documented and reapplied
  • Database dump, files backup, code tag and rehearsed restore ready
  • Go/no-go owner named

For dates and the minor to target, return to our Drupal 10 end-of-life guide.

Sources

All retrieved 30 November 2026.

Related articles

  • November 28, 2026

    Drupal CMS vs Payload CMS: Choosing the Right Foundation

    Choosing a content management system is not just a technical decision. It affects how your team creates content, how your website evolves, how developers build new features, and how much effort it takes to maintain the platform over time.

    10 min read
  • November 28, 2026

    When Does a Headless CMS Make Sense?

    Headless CMS architecture has become a popular choice for organisations building modern websites, digital platforms and applications. By separating content management from the frontend, it gives developers greater freedom to build experiences using the technologies that best fit their requirements.

    12 min read