Upgrade Drupal 9 to 10: Now It’s Time to Migrate Drupal v10

Upgrade your Drupal 9 to 10

It’s time to upgrade Drupal from an older version to Drupal 10.

Again I repeat! This is the right time to upgrade your Drupal 7, 8 or 9 to Drupal 10.

If you are using Drupal 9, 9.x or more than that, we have got you covered.

Upgrading Drupal from version 9 to 10 involves several essential tasks and is generally similar to the upgrade process from Drupal 8 to 9. If you have already upgraded your Drupal 8 site to version 9, the process to version 10 should be simple. Still, one should expect to experience unexpected issues.

So, Let’s start.

Why Upgrade to Drupal 10?

Drupal 10 is a great experience for everyone. Content editors will benefit from a user-friendly and accessible admin interface using Claro, a more enjoyable way to edit text with the modern CKEditor 5. Site owners will benefit from Automatic Updates and Project Browser. They are features of the future version of v10. As soon as we get them, they will give the most significant control tool for managing your Drupal website in the admin UI. The most beneficial will be to developers since they will gain the new paradigm for theming with the Starterkit. And the future they will have the standard approach to headless, as the Decoupled Menus proposals. This will make Drupal more for non-technical users, people explorers of what is built with Drupal.

Before starting get familiar with…

What’s New in Drupal 10?

What are the Steps Involved in Drupal 10 Migration?

The following steps are involved in Drupal 10 migration.

1)Latest Drupal 9 Version

Preparing your site to upgrade to a newer major version

Make sure your site has been updated and running Drupal 9 latest versions like Drupal 9.4 or Drupal 9.5

2)Install Upgrade status module

Install the Drupal upgrade status module to check all the contrib modules, custom modules, custom themes, platform requirements etc

It is Scan the modules and fix deprecation and compatibility

First, install the module using composer

composer require ‘drupal/upgrade_status:^3.19’

Go to the admin->extends

Enable the module

List of deprecation code changes in custom modules and custom themes in the upgrade status report

Make sure your PHP version should be at least 8 or above. And drush minimum version is 10.

Fix the remove/replace the deprecated code in custom themes and modules manually using the upgrade status report module otherwise, you can use the upgrade rector module for automated generated patches.

Uninstall bartik, seven, stable themes and CKEditor 4, colour, RDF, and Quick edit modules these are the modules and themes that are not available in Drupal 10.

And Enable CKEditor 5 modules when you uninstall CKEditor 4 and configure its admin->configuration->Content authoring replace the CKEditor with CKEditor 5, and also install the RDF and Color contrib module when you uninstall the colour and RDF deprecated module.

Set configuration of CKEditor 5 is shown in the next slide

3)How to install modules that are not Drupal 10 compatible?

  1. First, install the Composer plugin that will let you install modules that are not yet D10-ready. First, install the plugin using the composer

composer require mglaman/composer-drupal-lenient

Suppose the node class module is not available in Drupal 10 and then proceed with adding a module to the allowed list by executing another Composer command

for example : composer config –merge –json extra.drupal-lenient.allowed-list ‘[“drupal/node_class”]’

As you can see in the screenshot above, the command that we executed created a new section called drupal-lenient. This is the place where you have to add all modules you want to have a lenient Drupal core version constraint.

Finally, add a patch that will make the module D10-ready. In this example, the Node class module has a simple patch that will make it compatible with Drupal 10.

4) Check the Upgrade Status report

Using the Manage administrative menu, navigate to Reports > Upgrade status and, if necessary, click the Check available updates link under the Gather data column.

Once you have addressed all of the blockers to a Drupal 10 upgrade, you will see “N/A” in the Fix incompatibilities column and “100%” in the Relax column (along with other information).

5) Upgrade Drupal core

Once successfully finished all the previous criteria of the upgrade status module are then after the process to Drupal upgrade using the upgrade command

You have to use a specific Drupal version like: ^10.1

For example, Run the below command:

composer require ‘drupal/core-recommended:^10.1’ ‘drupal/core-composer-scaffold:^10.1’ ‘drupal/core-project-message:^10.1’ –update-with-dependencies –no-update

The upgrade process from Drupal 9 to 10 will be displayed in the below screenshot.

6) Run Database update

Make sure to put your site in maintenance mode in order to run database updates.

Maintenance mode:

Configuration > Development > Maintenance mode (admin/config/development/maintenance)

When the upgrade process is complete last step is to update your database

Run database updates: You can upgrade your database in two ways

Using drush command: drush updb drush updatedb

Or you can visit [YOUR DOMAIN]/update.php in a browser. Ex: https://example.com/update.php


Now that you have about a year to prepare for the transition to Drupal 10, do not waste time, especially if you are updating from Drupal 7 or lower. Remember: migration is a process that requires both time and preparation. Besides, this is a great time to think about redesign options for your website. And it is always worth it: when working with the right partner and the right tools, updated or migrated services will allow you to provide the kind of digital experience your clients want and expect.

No matter which version of Drupal you are at or even if you want to migrate from another CMS to Drupal, this is the ideal time to plan your upgrade to Drupal 10. You can contact our Drupal experts at KrishaWeb. We are just a call away!

Recent Articles

Browse some of our latest articles...