3 min - Drupal
How to Migrate from Drupal 9 to Drupal 10
Published on Mar 3, 2024

Migrating from Drupal 9 to Drupal 10 can be challenging, and at DigitalProjex, with our experience working with Drupal, we understand the complexities involved. There isn't a single way to perform this update, as it depends on various factors such as the system's structure, module and theme compatibility, and any custom code in your project. In this article, we will explore the key points to consider for a successful migration, offering practical advice to facilitate the process.
Migration steps:
- Create a backup of your Drupal site. This is important in case something goes wrong during the migration. You can use a Drupal backup tool or simply copy your website's files and database.
- Install the Upgrade Status module, which provides information about available updates for your site and checks whether it meets the requirements for the next version of Drupal.
- Update custom code, if your project includes custom modules or themes, it is your responsibility to ensure that this code is compatible with Drupal 10. Validating custom code is important; use PHPStan for this purpose.
- Update all modules, themes, and Drupal core to the latest available version before upgrading to Drupal 10.
- Check the compatibility status with Drupal 10 in the admin menu /admin/reports/upgrade-status to take action. Once you have addressed all blockers for a Drupal 10 update, you will see "N/A" in the Fix incompatibilities column and "100%" in the RELAX column.
- Update the Drupal core using Composer:
composer require drupal/core:"^10.0" --no-update
composer require drupal/core-recommended:"^10.0" --no-update
composer update
# If this is successful, you will see a line like the following in the output.
- Upgrading drupal/core-dev (9.5.x => 10.x.x)
7. Run database updates.
Migrating from Drupal 9 to Drupal 10 can be a crucial step to improve your website. With the help of DigitalProjex, the process can be easier and more successful. Remember to back up your data before starting and follow the advice we’ve shared. If you need additional assistance, don’t hesitate to contact us.
We are here to ensure your transition is successful and hassle-free. Thank you for following our tips, and we wish you success in your upgrade to Drupal 10!
Need consulting services to create a recipe for your company?
Contact UsRelated Posts
-
DigitalProjex leaves its mark at Florida DrupalCamp 2025
DigitalProjex participated in Florida DrupalCamp, which took place from February 21 to 23, 2025.
Learn more -
DigitalProjex at DrupalCon Barcelona 2024
Digitalprojex shares its experience at DrupalCon Barcelona 2024
Learn more -
Recipes: The New Concept of Drupal 10
Recipes in Drupal are predefined configurations that allow for quick and easy installation and setup of websites.
Learn more