Migrations

Drupal 7 to Drupal 11 Migration: A Practical Guide

Bogdan Patrasescu 10 min read
Drupal 7 to Drupal 11 migration: migrate on Drupal 11, because the path is removed in Drupal 12

A Drupal 7 to Drupal 11 migration means building a new Drupal 11 site and moving your content and configuration into it with Drupal core's Migrate modules. You cannot update a Drupal 7 site in place. Do it on Drupal 11: Drupal 7 has been out of security support since 5 January 2025, and Drupal 12, due in the week of 7 December 2026, removes the Drupal 7 migration path from core.

Key takeaways

  • Drupal 7 reached end of life on 5 January 2025. It gets no security or compatibility updates from the Drupal Security Team.
  • Migrate to Drupal 11, not Drupal 12. Drupal 12 removes Migrate Drupal and Migrate Drupal UI, so the core Drupal 7 upgrade path only exists up to Drupal 11.
  • Drupal 11 is supported until early December 2028. That is the window for migrating with the core tools, and the earlier you finish, the longer you get on a supported version.
  • Content migrates well. Views, the theme and most custom code do not: you rebuild them.
  • What drives the timeline is the module inventory, the custom code and the content model, not the number of pages.

Why Drupal 11 is the target, and why the window is closing

Drupal 11 is the last major version that ships the core Drupal 7 upgrade path. The Drupal 12.0.0-beta1 release notes say that Migrate Drupal and Migrate Drupal UI have been removed from core and not moved to a contributed project. The same notes say sites can continue to migrate from Drupal 6 or 7 to Drupal 11, and then update to Drupal 12 with the normal update process. The Migrate API itself stays in core.

In practice, that gives a Drupal 7 site one clear route: migrate to Drupal 11, then follow Drupal 11 into Drupal 12 later, as a normal major update. We covered what else Drupal 12 removes and what it needs from your hosting in our guide to Drupal 12.

DateWhat it means for a Drupal 7 site
5 January 2025Drupal 7 end of life. No more security or compatibility updates.
Week of 7 December 2026Drupal 12.0.0 and 11.5.0 are scheduled. Drupal 12 has no core Drupal 7 migration modules.
Early December 2028Drupal 11 end of life. A migration with the core Drupal 7 tools has to be finished, and the site moved to Drupal 12, before then.

Last checked against the Drupal core release schedule, the Drupal 12.0.0-beta1 release notes and the Drupal 7 end of life page on drupal.org: 3 December 2026.

Migration, not upgrade: what moves and what you rebuild

A Drupal migration from version 7 copies data from the old database into a new, empty Drupal 11 site. The drupal.org upgrade guide explains why: since Drupal 8, Drupal stores content and configuration in a different way, so an update cannot be applied to a Drupal 7 site. The old site is not modified, which means it stays online while the new one is built.

Part of the siteWhat happens
Content: nodes, users, taxonomy terms, filesMigrated by core. Drupal core provides an upgrade path for every module that was in Drupal 7 core.
Configuration: content types, fields, user rolesMigrated by core, then usually cleaned up by hand.
ViewsNot migrated by core. Rebuild them, or try the contributed Views Migration module and test the result carefully.
ThemeCannot be migrated. The theme system changed, so the front end is rebuilt.
Contributed modulesOnly migrated if the module has a migration path and is installed on both the old and the new site. Many need a manual or custom migration.
Custom modulesRewritten for Drupal 11. Drupal 7 module code does not run on modern Drupal.

The drupal.org guide also makes a point that is easy to forget: if a site has little content or custom configuration, entering that content by hand on the new site can be faster than setting up an automated migration. Decide that per site, not per habit.

Before you start: audit the Drupal 7 site

Start with an inventory of what the Drupal 7 site actually does. Most surprises in a migration come from a module or a piece of custom code nobody remembered.

  1. List every enabled module. Use the Modules page or the Available updates report at admin/reports/updates. For each module, answer the questions the drupal.org preparation guide asks: do we still need it, has it moved to core (Views has), and is there a Drupal 11 version or a replacement?
  2. Check module availability. The drupal.org guide suggests the Upgrade Status module on the Drupal 7 site to list installed projects and show whether they exist for modern Drupal. The upgrade screen in the browser also shows which modules can be upgraded automatically.
  3. Update Drupal 7 first. The upgrade process expects the latest Drupal 7 core and the latest versions of the contributed modules you want to migrate. The final Drupal 7 release is 7.103, released on 4 December 2024.
  4. Read the known issues. The drupal.org known issues page covers ID conflicts, Views and multilingual details. Multilingual Drupal 7 sites have their own section in the upgrade guide.
  5. Decide what not to migrate. Old content types, unused fields, test users and orphaned files cost time in every test run. Removing them from the plan is cheaper than migrating them.
  6. Map the URLs. Export the current URL aliases and any redirects. Search traffic depends on the old URLs resolving on the new site.

Choose the migration approach

Pick the approach based on how long the old site has to stay live while the new one is finished. The drupal.org guide describes three options.

ApproachHow it worksFits when
One upgrade, then manual stepsPractise the migration, note every manual step, then repeat it once on a clean Drupal 11 install for production.Small sites where editors can pause for the final run.
Incremental upgradeRun the full migration, do the manual work on the new site, then run the migrations again to bring over new and updated content.The old site stays online and editors keep publishing.
Configuration through deployment, content migrated lastBuild and finish the configuration on development, deploy it to staging and production with configuration management, then migrate only the content into each environment.Larger sites with a development, staging and production workflow. Requires Drush.

One rule applies to all three: do not change the configuration of the old site between the first migration and the last one. The drupal.org guide recommends against it, and it is the fastest way to break a migration that already worked.

The migration step by step, with Drush

Use Drush rather than the browser for anything beyond a small site. It runs migrations one at a time and lets you roll them back. These steps follow the drupal.org "Upgrade using Drush" guide.

  1. Create a clean Drupal 11 site. The destination must be empty: no content created before the migration. Drupal 11 needs PHP 8.3 or later, Composer 2.7.0 or later and Drush 13.

    composer create-project drupal/recommended-project:^11 my-site
    cd my-site
    composer require drush/drush
    vendor/bin/drush site:install minimal
  2. Add the migration modules. Migrate and Migrate Drupal are in Drupal 11 core. Migrate Upgrade (4.x for modern Drupal) adds the Drush command that generates the migrations, and it needs Migrate Plus.

    composer require drupal/migrate_upgrade:^4 drupal/migrate_plus
    drush pm:install migrate migrate_drupal migrate_upgrade migrate_plus
  3. Install the destination modules. Migrations only run for modules that are installed on both sites. Install the Drupal 11 versions of the modules you decided to keep before you generate anything.
  4. Connect the Drupal 7 database. Use a copy of the live database, not the live one. Add it to settings.php under the key migrate; the drupal.org guide warns that other key names cause errors.

    $databases['migrate']['default'] = [
      'database' => 'drupal7',
      'username' => 'drupal7',
      'password' => 'secret',
      'host' => 'localhost',
      'port' => '3306',
      'driver' => 'mysql',
      'prefix' => '',
    ];
  5. Generate the migrations without running them. --legacy-root points to the old site, so files can be copied from it.

    drush migrate:upgrade --legacy-db-key=migrate --legacy-root=https://www.example.com --configure-only
    drush migrate:status --tag='Drupal 7'
  6. Run the migrations and check the results. Run them one at a time while you are still testing, and all at once when the run is stable.

    drush migrate:import upgrade_d7_user
    drush migrate:import --tag='Drupal 7'
    drush migrate:rollback upgrade_d7_user

    Migration names depend on your site, so take them from the migrate:status output.

  7. Do the manual work and export it. Rebuild the views, the theme and the custom features, then export the configuration with drush config:export and commit it.
  8. Run the final content migration. With an incremental approach, migrate the new and updated content just before launch. The drupal.org guide uses drush migrate:import --tag=Content for a content-only run.

Last checked against the drupal.org "Upgrade using Drush" and "Preparation" pages and the Migrate Upgrade project page: 3 December 2026.

What drives the timeline and the cost

The duration of a Drupal 7 migration depends on how much has to be rebuilt, not on how many pages the site has. A site with thousands of articles in two content types can be simpler than a site with a few hundred pages and complex custom logic.

FactorWhy it matters
Contributed modules without a migration pathEach one needs a replacement, a custom migration or a decision to drop the feature.
Custom modulesRewritten, not migrated. Business logic hidden in custom code is the most common cause of delays.
Content modelField collections, complex references and paragraph-like structures usually need custom migration code.
Views and themeAlways rebuilt. A redesign at the same time adds design and review work.
Multilingual contentDrupal 7 translation setups vary, and the upgrade guide treats them separately.
IntegrationsSingle sign-on, CRM, payment or search integrations are rebuilt and tested against the new site.
HostingDrupal 11 needs PHP 8.3 or later. If the Drupal 7 server runs an older PHP version, the new site may need a new server.

In our migration work, the decision that saves the most time is made in the audit: agreeing what the new site does not need to do. Every feature carried over "just in case" has to be migrated, rebuilt and tested.

The main risks and how to reduce them

Most migration risks are known in advance. The table lists the ones we plan for on every Drupal 7 project.

RiskHow to reduce it
ID conflicts overwrite contentMigrate into a clean site. The migration keeps the Drupal 7 IDs, so anything created on the new site first can be overwritten.
Lost search trafficKeep the URL aliases, add redirects for every URL that changes, and check the most visited URLs after launch.
Content created during the project goes missingUse incremental migrations, and agree a short content freeze before the final run.
Private files are not migratedGive the new site direct access to the private files directory and set file_private_path in settings.php before the run.
The Drupal 7 site is exposed during the projectKeep it patched as far as possible, restrict admin access, and consider the Drupal Association's Extended Security Support Provider Program if the project runs long.

After the migration: stay current on Drupal 11

A migrated site is a new Drupal 11 site, and it needs the same care as any other. Keep core and modules on supported minor versions with Composer, as described in our guide to updating Drupal core with Composer. When you plan the move to Drupal 12, run the Upgrade Status module to find what blocks it. Then uninstall Migrate Drupal and the migration modules before that upgrade, because Drupal 12 no longer has them.

Frequently asked questions

Is Drupal 7 still supported?

No. Drupal 7 security support ended on 5 January 2025, and it no longer receives security or compatibility updates from drupal.org. The Drupal Association runs an Extended Security Support Provider Program with certified vendors for sites that cannot migrate yet. That buys time, but it is not a long-term plan.

When was Drupal 7 released?

Drupal 7.0 was released on 5 January 2011. Its end of life came exactly 14 years later, on 5 January 2025, after several extensions.

Is there an end-of-life deadline for a Drupal 7 migration?

Yes, for the core tools. Migrate Drupal is only available up to Drupal 11, and Drupal 11 reaches end of life in early December 2028. After that, a Drupal 7 migration would need a custom migration built on the Migrate API, which is more work.

Planning a Drupal 7 migration?

DevAtWork is a Drupal agency in Bucharest, Romania. We migrate, upgrade and maintain Drupal sites for organisations and digital agencies across Europe. If you still run Drupal 7 and want to know what a move to Drupal 11 involves for your site, see our Drupal migration and upgrade services or tell us about your site.

Sources

Bogdan Patrasescu, Senior Software Engineer Drupal Focus
Written by Senior Software Engineer Drupal Focus

Bogdan is a Senior Drupal Developer who builds and maintains large, complex websites for corporate and enterprise clients.He specialises in custom development, including modules tailored to specific business requirements, themes aligned with strict brand guidelines, and integrations with existing enterprise systems.On the blog, he shares insights into enterprise Drupal development, covering custom solutions, performance optimisation, upgrades, and strategies for keeping large codebases reliable and maintainable.

More about the author
Start a project

Ship your next Drupal release with us.

Senior developers, clean code, and a reply within 24 hours.