Sample on a demo site, not client work.

Sample write-up · November 8, 2026

Sample upgrade write-up: Drupal 10.6 to Drupal 11.4 on a demo site

By Abhinav SaxenaDone and written up

What this is. Riverside Community Trust is not a real organization or client, and this is not client work. I built a small Drupal 10 site on November 8, 2026 to look like a typical small-organization site that hasn't been updated for a while, then upgraded it to Drupal 11. Every command, number and message quoted below is real output from that run. The full logs aren't published; short excerpts are quoted where they matter.

About the times. The times shown are how long the tools took on a tiny demo with 8 pieces of content. A real site job includes manual review and testing over several days.

The scan that came before this work is the sample readiness report.

Result: Drupal 10.6.21 → 11.4.12 (the newest Drupal 11 release on the day). The status report shows no errors, every public and admin page tested returns its normal response, and a rehearsed rollback restored the Drupal 10 site.

Problems found:

  • Composer refused to install old releases that have security advisories.
  • One contributed module (Share Everywhere) had no Drupal 11 release.
  • Statistics was removed from core in Drupal 11.
  • The custom module called two functions removed in Drupal 11.
  • Composer stopped halfway through the core upgrade because of a new plugin.
  • A settings page crashed on Drupal 11 even though the code scan had passed it.

All six are described below, each with its fix.


1. Starting point

Environment: PHP 8.3.32 (command-line build, on my own computer), Composer 2.11.1, SQLite 3.45.2, Drush 13.8.0. Pages were checked with PHP's built-in web server.

The site:

  • Drupal 10.6.21, created with composer create-project drupal/recommended-project:^10 and installed with drush site:install standard on SQLite.
  • 3 pages, 4 news articles, a main menu, Pathauto URL patterns (/news/[node:title]), a 301 redirect from an old address (/volunteering.html), an XML sitemap and the Webform contact form.

Contributed modules:

  • Admin Toolbar 3.4.2, Chaos Tools 4.0.5, Metatag 1.26, Pathauto 1.12, Redirect 1.9 and Token 1.14. These are held back on purpose, to match a site last updated around 2023.
  • Webform 6.3.1 and Simple XML Sitemap 4.2.3, which are current (see problem 1 below for why).
  • Share Everywhere 3.0.0 and Search 404 2.1.2.

Core module removed in Drupal 11: Statistics, switched on.

Custom code: a small module, riverside_tweaks. I wrote it for the demo, in the Drupal 9 style many real sites still have. It calls user_role_names() and format_size(), both removed in Drupal 11.

How the modules that block the upgrade were chosen: I checked the drupal.org release data for over 200 commonly used contributed modules and looked for ones whose newest stable release doesn't support Drupal 11. Share Everywhere (no Drupal 11 release at all) and Search 404 (Drupal 11 only in a release candidate) were the most realistic for a small organization.


2. Before and after, at a glance

Check Before (Drupal 10.6.21) Drupal 10 after fixes, before core upgrade After (Drupal 11.4.12)
Upgrade Status environment "Environment is incompatible" (Statistics) "Environment checks passed" Now measures Drupal 12 readiness (see section 7)
Projects compatible with Drupal 11 2 of 11 12 of 12 (Statistics is now a contributed project) n/a
Upgrade Status "Fix now" items 3 0 n/a
Status report errors 1 ("Unsupported release") not checked 0
Module update status 3 unsupported, 3 out of date all current all 13 projects "CURRENT"
Public pages tested 10 of 10 as expected 10 of 10 as expected 10 of 10 as expected
Admin pages tested (logged in) not tested not tested 14 of 14 return 200 (after the fix in step 9)

"As expected" means 200 for normal pages, 301 for the old address and 404 for a page that doesn't exist.


3. Steps, commands and results

All times are measured on this run, from a timing log and the time output of the commands. They are how long the tools took on a tiny demo site with 8 pieces of content. Section 5 explains what they do and don't mean.

Step 1: Back up

cp site/private/db.sqlite backups/db-d10-before-upgrade.sqlite
cp site/composer.json backups/composer-d10.json
cp site/composer.lock backups/composer-d10.lock
tar -czf backups/site-code-d10.tar.gz site/composer.json site/composer.lock site/web/modules/custom site/web/sites/default

A second snapshot (db-d10-ready-before-core11.sqlite and composer-d10-ready.*) was taken just before the core upgrade, so there is a way back from either stage. Section 6 shows the rollback being rehearsed.

Step 2: Audit with Upgrade Status

composer require --dev drupal/upgrade_status      # 4.3.10, with PHPStan 2.3.5
drush en upgrade_status
drush upgrade_status:analyze --all > logs/09-upgrade-status-before.txt

The scan took 26.7 seconds and wrote 13,497 lines. The summary page grouped the projects like this:

Environment is incompatible
Update: 7 projects
Collaborate with maintainers: 1 project
Fix with rector: 1 project
Compatible with next major Drupal core version: 2 projects

Of the 2,699 findings, 2,336 (87%) were in modules' tests/ folders and can be ignored on a live site. The full breakdown is in the sample readiness report.

Step 3: Update the contributed modules on Drupal 10 first

composer require 'drupal/admin_toolbar:^3.6' 'drupal/ctools:^4.1' 'drupal/metatag:^2.2' \
  'drupal/pathauto:^1.15' 'drupal/redirect:^1.13' 'drupal/token:^1.18' -W
drush updb -y
drush cr

Composer took 9.1 seconds. drush updb ran 14 updates, including Metatag's move from 1.x to 2.x:

>  [notice] Update started: metatag_post_update_v2_01_change_fields_to_json
>  [notice] There were no overridden Metatag records that needed to be updated to store the data using JSON.
>  [notice] Update started: redirect_update_8110
>  [notice] The 'enabled' field has been added to redirects.
>  [notice] The Metatag configuration for 403, 404 page(s) has been updated. Make sure to export the configuration to avoid losing the changes.
 [success] Finished performing updates.

All 10 pages still behaved the same afterwards. Updating the modules on Drupal 10 first keeps each change small, and if something breaks, it's clear which change caused it.

Step 4: Replace core Statistics with the contributed project

composer require 'drupal/statistics:^1'      # 1.0.1
drush cr
drush php:eval '... getPath("statistics") ...'
# modules/contrib/statistics

Drupal picked up the contributed copy at once, and its info file reports lifecycle: stable instead of deprecated. The core module was not uninstalled, so its settings and its node_counter table stayed in place (checked again on Drupal 11). No database updates were needed.

Step 5: Fix the custom module

Drupal Rector, dry run first:

composer require --dev palantirnet/drupal-rector     # 1.1.3, Rector 2.6.1
vendor/bin/rector process web/modules/custom/riverside_tweaks --dry-run
-  return t('Files up to @size.', ['@size' => format_size(2 * 1024 * 1024)]);
+  return t('Files up to @size.', ['@size' => ByteSizeMarkup::create(2 * 1024 * 1024)]);
 [OK] 1 file would have been changed (dry-run) by Rector

Rector fixed one of the two removed functions. It had no rule for user_role_names(), which was the one Upgrade Status marked "Fix now". I replaced that call by hand with code that returns the same list:

// Replaces user_role_names(TRUE), removed in Drupal 11.
$roles = [];
foreach (Role::loadMultiple() as $role) {
  if ($role->id() !== RoleInterface::ANONYMOUS_ID) {
    $roles[$role->id()] = $role->label();
  }
}

I also changed core_version_requirement to ^10.3 || ^11. The page built by this module still showed the same output: "Authenticated user, Content editor, Administrator" and "Files up to 2 MB." A re-scan reported:

Riverside tweaks, --
No known issues found.

Step 6: Search 404, a release candidate or nothing

The only Drupal 11-compatible Search 404 release is 2.2.0-rc3 (January 2025). drupal.org marks it "RC releases are not covered by Drupal security advisories." On this demo I accepted the release candidate, and Composer pinned the exact version:

composer require 'drupal/search404:2.2.0-rc3'
drush updb -y      # search404_update_8001, search404_update_8002

On a client site this is the client's decision, written into the plan. The alternative is to remove the module and keep Drupal's standard "page not found" page.

Step 7: Share Everywhere, which has no Drupal 11 release

The newest stable release, 3.0.0 (April 10, 2024), declares ^9 || ^10. The project's 3.x branch adds ^11 in commit 7168ee0, made the same day, but no release has been tagged since. Instead of running an untagged development branch, I kept 3.0.0 and:

  1. added Drupal Lenient, which lets Composer install a listed module on a newer core than it declares;
  2. added composer-patches with a local patch: the same one-line info file change as commit 7168ee0.
composer require 'cweagans/composer-patches:^2' 'mglaman/composer-drupal-lenient:^1'
composer config --json extra.drupal-lenient.allowed-list '["drupal/share_everywhere"]'
# composer.json "patches": share_everywhere -> patches/share_everywhere-3.0.0-d11-core-version-requirement.patch
composer patches-relock && composer patches-repatch
  - Patching drupal/share_everywhere
core_version_requirement: ^9 || ^10 || ^11

Upgrade Status then marked the module compatible. Step 9 shows that this wasn't the whole story.

Step 8: Second scan, then the core upgrade

The Upgrade Status summary after steps 3 to 7:

Compatible with next major Drupal core version: 12 projects
Environment checks passed

Then the core upgrade, using the standard Composer method:

composer require 'drupal/core-recommended:^11' 'drupal/core-composer-scaffold:^11' \
  'drupal/core-project-message:^11' --update-with-all-dependencies --no-update
composer update -W

Composer stopped halfway:

In PluginManager.php line 819:
  symfony/runtime contains a Composer plugin which is blocked by your allow-plugins config.

Drupal 11 brings in symfony/runtime, which includes a Composer plugin. The lock file had already been written for Drupal 11, but the core files on disk were still Drupal 10.6.21 (only one small library, doctrine/deprecations, had been removed). Finishing the install was the way forward, with the backup ready if it had gone wrong. Drupal's own Drupal 11 project template allows this plugin, so I allowed it the same way and finished the install:

composer config --no-plugins allow-plugins.symfony/runtime true
composer install
  - Upgrading drupal/core (10.6.21 => 11.4.12): Extracting archive

The Share Everywhere patch stayed applied, and no other package conflicted.

Step 9: Database updates, then testing (including a crash the scan missed)

drush updb -y     # 45 updates: 14 update hooks and 31 post-updates, 11 seconds
drush cr
drush status      # Drupal version : 11.4.12
drush core:requirements --severity=2    # no errors

The public pages all returned their normal responses. Then I logged in as an administrator and opened every module's settings page:

/admin/config/services/share_everywhere    500

The PHP log showed:

Uncaught PHP Exception ArgumentCountError: "Too few arguments to function
Drupal\Core\Form\ConfigFormBase::__construct(), 1 passed in
.../share_everywhere/src/Form/ShareEverywhereConfigForm.php on line 82 and exactly 2 expected"

Why the scan didn't catch it: in Drupal 10, the second constructor argument was optional, and leaving it out only raised a warning while the page ran (deprecated in 10.2.0). Drupal 11 made it required. Static analysis reads the code without running it, so it can't see this kind of change. That is why I click through every admin page after an upgrade, not only the public ones.

The fix: the issue already existed on drupal.org (#3544524, "Too few arguments & Passing null to parameter", status "Needs review", with merge request !14). I saved the merge request's diff as a local patch file, so it can't change under us, and added it as a second patch:

"#3544524: Too few arguments to ConfigFormBase::__construct() on Drupal 11 (MR !14, saved locally 2026-11-08)":
    "patches/share_everywhere-3544524-mr14-configformbase-d11.patch"

After reapplying, the settings page returned 200. I then saved the form through the site, posting it the way a browser does. the site returned 303 (the normal redirect after saving), and the settings were stored. After switching the share buttons on in the Article display, the buttons appeared on news articles.

Final checks on Drupal 11:

== Admin pages (logged in as admin)
/admin 200 · /admin/content 200 · /node/add/article 200 · /admin/structure/webform 200
/admin/config/search/path/patterns 200 · /admin/config/search/metatag 200
/admin/config/search/redirect 200 · /admin/config/search/simplesitemap 200
/admin/config/services/share_everywhere 200 · /admin/config/search/search404 200
/admin/config/system/statistics 200 · /admin/reports/status 200 · /admin/reports/upgrade-status 200
/admin/modules 200
== Feature spot-checks (anonymous)
metatag canonical: <link rel="canonical" href="http://127.0.0.1:8899/news/annual-report-published" />
sitemap.xml <loc> entries: 8
/volunteering.html  301 -> /volunteer-us
webform submission saved, sid=1
new article nid=8 alias=/news/posted-after-drupal-11-upgrade

The webform test also logged "Email not sent for Email confirmation handler because a To, CC, or BCC email was not provided". This is a side effect of the test, not an upgrade fault. The confirmation goes to [current-user:mail], and the test submission was made from the command line with no logged-in user.


4. Problems hit and how each was solved

# Problem How it showed up Fix
1 Composer refused to install old releases with security advisories (Webform 6.2.6, Simple XML Sitemap 4.1.9) found ... but these were not loaded, because they are affected by security advisories For the demo: used current Webform and Simple XML Sitemap. On a client site this is a finding in itself: the site is running releases with known security problems.
2 Swift Mailer, a common mail module, could not be added to the demo at all drupal/swiftmailer 2.4.0 requires egulias/email-validator ^2.0||^3, while drupal/core-recommended 10.6 pins ~4.0.4. The project is also marked abandoned (SA-CONTRIB-2024-006: "Uninstall this module immediately") Left out of the demo. On a real site it would be replaced (the advisory suggests Drupal Symfony Mailer Lite or Drupal Symfony Mailer) before the upgrade.
3 Statistics was removed from core in Drupal 11 "Environment is incompatible", "Deprecated modules installed" Contributed drupal/statistics 1.0.1, added on Drupal 10
4 Two removed functions in the custom module "Fix now" and "Check manually" items Rector for one, a hand fix for the other, then a re-scan
5 Share Everywhere has no Drupal 11 release "Collaborate with maintainers" Drupal Lenient plus a one-line patch matching the maintainers' unreleased commit
6 Search 404 is Drupal 11-ready only as a release candidate Upgrade Status "Update" group, drupal.org security note 2.2.0-rc3, pinned exactly, decision recorded
7 Composer stopped halfway on the new symfony/runtime plugin blocked by your allow-plugins config Allowed it, as Drupal 11's own project template does, then ran composer install
8 The Share Everywhere settings page crashed on Drupal 11 HTTP 500, ArgumentCountError in ConfigFormBase::__construct() Patch from merge request !14 in issue #3544524, saved locally

Two mistakes of my own, also recorded:

  • My first Upgrade Status run was cut short because I piped its output into head, which stopped the scan partway. I deleted that log and re-ran the scan to a file.
  • For one run, I installed drupal/core-dev to quiet the test-file noise. It downgraded PHPStan from 2.3.5 to 1.12.34, so I removed it again and kept the tools Upgrade Status installs by default. That run's output was kept for reference only.

One quirk of local testing, not of the upgrade: PHP's built-in server has to be started from inside the web/ folder. Started from one level up, pages failed with Template "core/modules/node/templates/field--node--title.html.twig" is not defined. That error is still in the site's log from before the upgrade.


5. Time taken per step

These are the elapsed times on this run, for a demo site with 8 pieces of content, where each command followed the last without waiting:

Step Elapsed Longest single command
Build the Drupal 10 demo site (including choosing the modules) 7 min 47 s composer create-project, 22 s
Install Upgrade Status, scan, read the results (including the core-dev detour) 7 min 17 s scan with core-dev: 3 min 3 s; final scan: 27 s
Back up under 1 s n/a
Update 6 contributed modules on Drupal 10, plus updb 25 s composer require, 9 s
Replace Statistics 16 s n/a
Custom code (Rector, hand fix, re-scan) 53 s Rector, 7 s
Search 404 and Share Everywhere (Lenient, patch, re-scan) 1 min 39 s full re-scan
Core to 11.4.12, including the symfony/runtime stop 1 min 13 s composer update, 15 s
Database updates 11 s n/a
Testing, finding and patching the Share Everywhere crash 3 min 28 s n/a
Final Upgrade Status scan on Drupal 11 40 s n/a
Rollback rehearsal (restore and check pages) 6 s to restore composer install from cache

These are tool times on a tiny demo, not a job estimate. A real site job includes manual review and testing over several days. What these times don't include: a real site takes longer, and the time goes elsewhere. On a client site there is a staging copy on the client's own hosting. There is a real database (MySQL or MariaDB) with years of content, plus uploaded files, a custom theme, and testing of editors' everyday tasks. There is also a content freeze and switch-over time agreed with the client, the go-live itself, and watching the logs afterwards. A small, clean site also makes Composer and the database updates fast. The point of this table is to show where the work is. The Composer commands are quick. Most of the time goes into deciding what to do about modules with no Drupal 11 release, and into testing that catches what the scan missed.


6. Rollback plan

Before any change: a copy of the database, composer.json, composer.lock, the custom code and sites/default (settings and files). This demo uses a SQLite file. On MySQL or MariaDB, the database copy is a drush sql:dump or the host's own backup.

A second restore point is taken after the Drupal 10 fixes and before the core upgrade, so a problem in the core step doesn't undo the module work.

To roll back: put back composer.json and composer.lock, run composer install, restore the database copy, restore sites/default, then clear caches.

Rehearsed on this run: I restored the Drupal 10 backup into a separate folder, ran composer install and pointed it at the restored database:

Drupal version   : 10.6.21
Drupal bootstrap : Successful
rollback restore took 6s
/                                  200 20032B
/about-trust                       200 19837B
/news/annual-report-published      200 20458B
/form/contact                      200 20164B
/volunteering.html                 301 382B

The page sizes match the original Drupal 10 site byte for byte. On a live site, the rollback is done on the server. Any content entered after the backup would be lost, which is why go-live is booked for a quiet time with a short content freeze.


7. Upgrade Status before and after

Before (Drupal 10.6.21, measuring Drupal 11 readiness):

Project Local 11-ready Problems listed Action
Admin Toolbar 3.4.2 Incompatible 12 Update to 3.6.3
Chaos Tools 4.0.5 Incompatible 211 Update to 4.1.1
Metatag 1.26 Incompatible 266 Update to 2.2.6
Pathauto 1.12 Incompatible 112 Update to 1.15
Redirect 1.9 Incompatible 221 Update to 1.13
Search 404 2.1.2 Incompatible 40 Update to 2.2.0-rc3
Token 1.14 Incompatible 118 Update to 1.18
Share Everywhere 3.0.0 Incompatible 2 Collaborate with maintainers
Riverside tweaks (custom) Incompatible 3 Fix with rector
Simple XML Sitemap 4.2.3 Compatible 57 None
Webform 6.3.1 Compatible 1,657 None

After the fixes, still on Drupal 10: all 12 projects (including contributed Statistics) were "Compatible", the custom module had "No problems found", and "Environment checks passed".

After the upgrade (Drupal 11.4.12): Upgrade Status now measures readiness for Drupal 12, which the drupal.org schedule lists for the week of December 7, 2026. It reports:

Environment is incompatible
Remove: 4 projects
Collaborate with maintainers: 9 projects
Fix manually: 3 projects
Compatible with next major Drupal core version: 2 projects

This is expected a month before Drupal 12 comes out. Most contributed modules, and even core's own Claro and Olivero themes, don't declare Drupal 12 support yet. The two "Remove" items to note are core's Contact and History modules, which are deprecated in Drupal 11. The Drupal 11 status report also gives three early warnings for Drupal 12:

  • the enable_html5_validation setting will default to off;
  • passwords will be hashed with argon2id;
  • Drupal 12 will need PHP 8.5.

None of this blocks Drupal 11, which the Drupal Security Team says is supported until December 2028 (PSA-2026-11-02). It does belong in a client's next-steps list.


8. What a client would receive

For a real Standard upgrade, the client gets:

  1. The readiness report (like the sample readiness report): versions, requirements, a module-by-module list, custom code findings, the scope tier and a fixed price.
  2. The upgraded site on Drupal 11, first on a working copy for review, then live at an agreed quiet time.
  3. A change log like section 4: every module updated or replaced, every patch (with its drupal.org issue link and the saved patch file), and every decision the client signed off, such as the Search 404 release candidate.
  4. composer.json, composer.lock, patches.lock.json and the patches/ folder, committed to the client's repository, so the next developer can see exactly what was changed and why.
  5. A test record: the pages and admin screens checked, before and after.
  6. The backups and the written rollback plan, and confirmation that the rollback was tested.
  7. A short follow-up list: patches to remove once the maintainers release a fixed version (here, both Share Everywhere patches and the Lenient entry), the Drupal 12 warnings from section 7, and the unrelated warnings found on the way (Webform spam protection and private files).
  8. 30 days of fixes after go-live for anything that doesn't work as agreed.

9. What this sample doesn't show

  • A real hosting environment: the demo used SQLite and PHP's built-in server, not MySQL or MariaDB behind Apache or Nginx, and there was no deployment to a live server.
  • Years of real content, uploaded media or several languages.
  • A custom theme: the demo uses core's Olivero and Claro. Custom themes are often where a real upgrade spends its time.
  • Visual comparison or accessibility checks: pages were checked by response code and by specific markup, not by screenshots.
  • The custom module and the module choices: I set these up to make the sample realistic. The problems they caused, and the fixes, are real.

Want this for your own site?

It starts with the free readiness report for Drupal 8, 9 and 10 sites, then one fixed price in writing. Upgrades from Drupal 10 start at $2,400. The Drupal 11 upgrade service.