I wanted to upgrade Twig Tweak and Editor Advanced Link as well.With my process there were slight variations I wanted: 'drupal/core-project-message:^9.2.0' -update-with-dependencies -no-update I used a Drupal Document Page for my Composer update commands.Ĭomposer require 'drupal/core-recommended:^9.2.0' 'drupal/core-composer-scaffold:^9.2.0' I was now in a position to upgrade Drupal. Drupal 9 uses drupal/core-composer-scaffold, which we require on the upgrade process below.Ĭomposer remove drupal-composer/drupal-scaffold -no-update In my case, the only plugin that needed attention was drupal-composer/drupal-scaffold. composer selfupdate -2 Remove Plugins / Local Packages In this regard, these are the only plugins / local packages that I needed to upgrade. composer update cweagans/composer-patches -with-all-dependencies.composer update cweagans/composer-patches -with-all-dependencies -dry-run - this will show if there are errors. composer require cweagans/composer-patches:^1.7 -no-update - this updates composer.json file.composer update composer/installers -with-all-dependencies.composer update composer/installers -with-all-dependencies -dry-run - this will show if there are errors.composer require composer/installers:^1.9 -no-update - this updates composer.json file.While on Composer 1, remove plugins / local packages no longer required.While on Composer 1, upgrade plugins / local packages if required.It is the page I used for my process below. As I mentioned, your site may have different requirements. I installed 4.1.1 after the Drupal 9 upgrade was complete.īefore upgrading we need to do a couple of checks. I elected to uninstall the module (and Devel Kint) rather than upgrade to 4.1.1. I use Devel Kint, included in the 8.x-2.1 version, but not included in the 4.1.1 version. This is not Drupal 9 compatible, however 4.1.1 is. The module is not essential to the site, so we can uninstall it and remove it from our project composer.json file.ĭo this process for all the modules installed.Ī note on the Devel module. ✓ Recommended by the project’s maintainer. I have Module Filter 8.x-3.2 installed.Go to the official module page, and we can see: I will use Twig Tweak and Module Filter as examples. To check if the module is compatible with Drupal 9. Steps 1 and 2 should be self-explanatory. Drupal 8 sites could have a myriad of combinations of these components. The contributed and custom modules the site uses, theme, underlying Symfony Framework and the Composer plugins used all impact the upgrade process. I was still using Composer 1 and first needed to update to 2. Composer 1 is deprecated, and Drupal 9 needs Composer 2. This is due to Composer being key to the process. Furthermore, I think it is possible that each site's update process will be slightly different. I am sure there are more elegant ways of doing this. I am not saying it is absolutely correct, nor the most efficient. This article is a chronicle of my process. Over the past few days I knuckled down, dissected the documents and tutorials I found and succeeded. Then again, I did not allocate focussed time to get the job done. At times, I found the process confusing, almost contradictory. I have attempted to upgrade from Drupal 8 to 9 for some time now. The Topic: Upgrading Drupal 8.9.19 to 9.2.6.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |