3 min - Drupal

How to Migrate from Drupal 9 to Drupal 10

Published on Mar 3, 2024

Drupal 9 to Drupal 10

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:

  1. 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.
  2. 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.
  3. 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.
  4. Update all modules, themes, and Drupal core to the latest available version before upgrading to Drupal 10.
  5. 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.
  6. 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!

Share This Post

Need consulting services to create a recipe for your company?

Contact Us
Blue chart
Read All Posts