Drupal 11 is early! But don’t panic, the new Drupal 10 support model means you are not under pressure to upgrade. Drupal 10 will continue to be supported until mid-late 2026. But as we know, it’s best to be prepared and understand the upgrade process when that time comes for your organization.
Similar to the upgrade from Drupal 9 to Drupal 10, the latest version of Drupal 10 – Drupal 10.3.1 – defined all the deprecated code for Drupal 11. Also like previous modern Drupal major version upgrades there is a recommended set of areas to focus in order to get your applications upgraded as cleanly as possible.
MySQL 5.7 backport module that you can use temporarily.
- On FASTDOT Cloud, customers will need to use the MySQL 5.7 Backport module for now.
- The MariaDB database driver requires MariaDB 10.6. Drupal 11 does not directly use MariaDB 10.5 specific syntax yet, but it will in future versions. If you can’t yet upgrade to MariaDB 10.6, there is the MariaDB 10.3 backport module that you can use temporarily.
- The PostgreSQL database driver requires PostgreSQL 16.
- The SQLite database driver requires SQLite 3.45 with the json1 extension.
Web Server
Contents
Apache is the most commonly used web server for Drupal. Drupal requires Apache 2.4.7 or greater. Drupal 11 does not provide a web.config file. Support for IIS is removed so sites using IIS are encouraged to change to a supported web server. If you encounter bugs, you are encouraged to report them in case they affect web servers other than IIS.
Dependencies
- Symfony 7
- jQuery 4
- PHPUnit 10
- Composer 2.7.7
More information about platform requirements is available on drupal.org.
Upgrade to the Latest Drupal 10
Upgrade to Drupal 10.3 if you have not already. Drupal sites running 10.2.x or earlier versions must first update to 10.3.0 or later because all core updates added prior to 10.3.0 have been removed. In general, sites should update to the most recent release of their current major branch before updating to the next major release.
Run a Deprecation Scan
Like previous modern Drupal major version upgrades, the main difference between Drupal 10.3 and Drupal 11.0 is the removal of all the deprecated code. What that means is that if you have functionality in your site that relies on removed PHP code, you’ll run into errors. So we want to avoid that up front. There are a number of tools you can use on your site that will tell you if you are compatible with Drupal 11 or not.
One highly recommended solution here is the Upgrade Status module.
Upgrade Status on your development site as you would any other Drupal module. Upgrade Status helps “gamify” the process to a certain degree, giving you a checklist of the next steps you might need to perform.
Use the Administer >> Reports >> Upgrade Status page to check if there are contributed modules you can update to get compatible. The module will also help you learn about the deprecated API uses you can fix in your custom code. Use the latest Drupal 10.3 release to check to make sure all deprecated APIs are detectable.
Leverage Drupal Rector
Drupal Rector is available as well to help automatically fix code issues. You should use drupal-rector to review and update any issues in your custom code. Upgrade Status will help you identify where to take what actions, as warranted. Drupal Rector will also take the steps of leaving “To Do” comments in your code to direct humans on what needs to be done. Learn more about Drupal Rector today.
Check Project Update Bot
Right now contributed projects on drupal.org are receiving help from the Project Update Bot to be Drupal 11 ready. The bot runs on every project on drupal.org and opens issues with compatibility that need to be addressed. Learn about the Project Update bot on Drupal.org.
Remediate Deprecated Contributed Code
Now let’s update all of those contrib modules to be Drupal 11 compatible. This is best accomplished with Composer. As mentioned, Upgrade Status will help you understand which modules have compatible versions and which don’t. Thankfully, many modules are D11 compatible right now.
Additionally, Acquia provides some fairly in depth reporting on the readiness of community modules here on dev.acquia.com on the Drupal 11 project deprecation status dashboard. Try it out today!
mglaman/composer-drupal-lenient and/or apply needed patches with cweagans/composer-patches. Make sure to provide feedback to project maintainers about patches in the issues.
Remediate Deprecated Custom Code
Much like correcting any contributed code, after receiving your Upgrade Status report, you will need to check your custom code. You might be fortunate to have only a few modifications to make, but the truth is that any sort of trial run or actual transition to Drupal 11 can’t proceed until all Drupal application code has been corrected.
Often, you’ll find that the depreciations necessitate only slight modifications (such as swapping out one function or method for another).
Nonetheless, it’s important not to underestimate these adjustments. Substitutions as simple as a single word could potentially disrupt your site if they aren’t managed and verified with care.
tutorial on removing BLT on dev.acquia.com.
Do A Dry Run
If you’ve done this type of update in the past you are probably, like me, assuming it will fail at least the first time. That’s OK because you should always be doing this type of work and testing in a safe space like a local sandbox or cloud IDE where – if and when things go wrong – nothing important will break. Likely, you’ll do several dry runs.
Research how to utilize: composer update --dry-run
Once you get a dry run result with no errors, you are ready to do the core composer update.
If you still can’t get a composer update drupal/core --with-all-dependencies
to resolve into Drupal 11.x, you can always run composer why-not drupal/core 11.0
to get some insight into what in your composer dependency tree still requires something other than 11.x.
Always Backup Everything
Finally, when you’re ready to do the deployment into your production environment, make sure you have an up-to-date snapshot of your code and database. Assuming you did dry runs in other environments (and they succeeded) then you should be clear to continue with the update. But, it’s always best to back things up just in case.