Updating Varbase ~9.0 to Drupal 10
Paved the way for a smoother upgrade process to Drupal 10
1. Read First Before Updating
2. Uninstall Removed Modules and Themes
Switch From Swift Mailer to Symfony Mailer
Bringing a security issue with the composer No longer supported in Drupal
3. Check for Drupal 10 Compatibility
4. Update old Varbase ~9.0.0 to ~9.1.0 in composer.json File
Update the project to latest version of Varbase
~9.0.0Change
"vardot/varbase": "~9.0.0",to"vardot/varbase": "~9.1.0",in theroot composer.jsonfile.Add
"drupal/core": "~10",in theroot composer.jsonfile.Change
drupal/core-composer-scaffoldto~10in the rootcomposer.jsonfile.Change
drupal/core-project-messageto~10in the rootcomposer.jsonfile.Change
"drupal/core-dev": "~10",in the rootcomposer.jsonfile.Have the composer as in https://github.com/Vardot/varbase-project/blob/9.1.0/composer.json
Run
composer updatenumber of times ( do that 3 times min )Run
./bin/drush updbnumber of times ( do that 3 times min)
Fix Non-existent Permissions Issues
Have the system faced an issue with missing static or dynamic permissions while updating/upgrading? or after disabling/uninstalling a module?
Drush Command to Fix Non-existent Permissions in Varbase
Update the Varbase Core module to 9.1.7 or later.
Run the following drush command
Before or After Uninstalling a Module
Better to remove all permissions first for all user roles for the module before the uninstall. That can be from the Drupal UI page for permissions. Or:
Have the system faced errors when uninstalling a module?
This method can be used before or after uninstalling a module.
Some modules use the dynamic permissions option for custom plugins, entity types, blocks, terms. To grant extra limited permissions for user roles.
Run the following command to do the bulk remove for non existent permissions, in case not wanting to do that one by one.
Fix Mismatched Entity or Field Definitions Issues
Have the system faced issues with mismatched entity or field definitions while updating/upgrading?
Drush Command to Fix Mismatched Entities in Varbase
Update the Varbase Core module to 9.1.7 or later.
Run
./bin/drush varbase:entity-update
Important Issues
Last updated