- Issue created by @ggamba
- šÆš“Jordan Rajab Natshah Jordan
Thanks, Gabriele for following up on the subject
Working on #3391543: Plan: Release Varbase 9.0.16 ā
For sure you can start the testing upgrade process
Paving the way for a smoother upgrade process to Drupal 10
Updating Varbase ~9.0 to Drupal 10
- Update the project to latest version of Varbase
~9.0
- Add
"drupal/core": "~10.1.0",
in the root composer.json file. - Change
drupal/core-composer-scaffold
to^10
in the rootcomposer.json
file. - Change
drupal/core-project-message
to^10
in the rootcomposer.json
file. - Change
"drupal/core-dev": "~10.0",
in the rootcomposer.json
file. - Have the composer as in https://github.com/Vardot/varbase-project/blob/9.0.x/composer.json
- Run
composer update
number of times ( do that 3 times min ) - Run
drush updb
number of times ( do that 3 times min)
- For sure, more checks and upgrade status checks is needed on contrib modules and themes.
- Many contrib modules have deprecated PHP code ( classes, functions, or libraries )
- Many contrib modules have deprecated JavaScript ( JQuery UI libraries ) or use of old Drupal 9 ways
Issue #3392564 ā : Updated the Varbase
9.0.x
branch to use Drupal~10.1.0
Drupal 9 support will end in November 2023 ā
November 1, 2023 (UTC) Drupal 9 reaches end-of-life due to its dependency on Symfony 4.
Reference: Symfony 4.4 release checker.
What to do about Drupal 9's end of life in November 2023We are ready to upgrade any Varbase
9.0.x
site to Drupal~10.1.0
No need to wait on #3391543: Plan: Release Varbase 9.0.16 ā - Update the project to latest version of Varbase
- š®š¹Italy ggamba Milano
Hello Rajab, thank you for your quick reply!
I'm trying to follow your instructions but first time I run "composer update" I get the following error:
... 88/97 [=========================>--] 90% - Installing drupal/varbase_landing (dev-9.0.x 73524c5): Cloning 73524c5be2 from cache - Installing drupal/varbase_heroslider_media (dev-9.0.x 1b82cdf): Cloning 1b82cdf85b from cache - Installing drupal/varbase_email (dev-9.0.x d12d01d): Cloning d12d01d7d7 from cache - Installing drupal/varbase_core (dev-9.1.x ae189d8): Cloning ae189d8e7c from cache - Installing drupal/varbase_carousels (dev-9.0.x 053b9de): Cloning 053b9de21d from cache - Installing drupal/varbase_blog (dev-9.0.x bad40cc): Cloning bad40ccc11 from cache - Installing drupal/varbase_auth (dev-9.0.x f8fa06c): Cloning f8fa06c0a6 from cache - Installing drupal/varbase_api (dev-9.0.x 74c6cad): Cloning 74c6cad928 from cache 97/97 [============================] 100% In FilesystemRepository.php line 163: file_get_contents(/var/www/d10/vendor/composer/composer/src/Composer/Repository/../InstalledVersions.php): Failed to open stream: No such file or directory
Running "composer update" again doesn't help:
golem@t140:/var/www/d10$ composer update PHP Warning: require(/var/www/d10/vendor/composer/../longwave/laminas-diactoros/src/functions/create_uploaded_file.php): Failed to open stream: No such file or directory in /var/www/d10/vendor/composer/autoload_real.php on line 82 PHP Fatal error: Uncaught Error: Failed opening required '/var/www/d10/vendor/composer/../longwave/laminas-diactoros/src/functions/create_uploaded_file.php' (include_path='/var/www/d10/vendor/pear/archive_tar:/var/www/d10/vendor/pear/console_getopt:/var/www/d10/vendor/pear/pear-core-minimal/src:/var/www/d10/vendor/pear/pear_exception:.:/usr/share/php') in /var/www/d10/vendor/composer/autoload_real.php:82 Stack trace: #0 /var/www/d10/vendor/composer/autoload_real.php(65): composerRequirea04b5b931443125d9f9e6084e5fef0b5() #1 /var/www/d10/vendor/autoload.php(7): ComposerAutoloaderInita04b5b931443125d9f9e6084e5fef0b5::getLoader() #2 /var/www/d10/vendor/composer/composer/src/bootstrap.php(17): include('...') #3 /var/www/d10/vendor/composer/composer/src/bootstrap.php(20): includeIfExists() #4 /var/www/d10/vendor/composer/composer/bin/composer(19): require('...') #5 /var/www/d10/vendor/bin/composer(120): include('...') #6 {main} thrown in /var/www/d10/vendor/composer/autoload_real.php on line 82
I deleted my original composer.json file, downloaded https://github.com/Vardot/varbase-project/blob/9.0.x/composer.json, added under "require" section the modules that I need and corrected any "docroot" instance (webroot here is "public_html") .
Any suggestion? Thanks a lot in advance
- š®š¹Italy ggamba Milano
Sorry, my fault: I had "export PATH="./vendor/bin:$PATH"" in .bashrc (to easily run drush), so I was using version 2.2.2 of composer (from ./vendor/bin) instead of the updated one (2.6.5)
- š®š¹Italy ggamba Milano
Once disabled a few modules that were crashing "drush updatedb" (namely "Simple entity merge" and "Snowball stemmer") everything worked like a charm!
I have another two sites to update, and they are more complex but I'm now confident that it can be done without too much effort.
Thanks a lot again!
- š®š¹Italy ggamba Milano
I forgot to report the only warning I got during the update process:
[notice] The role Site Admin has had the following non-existent permission(s) removed: userprotect.protected_site_admin.bypass. [notice] The role Site Admin has had non-existent permissions removed. Check the logs for details.
I don't know what it means, but might be of your interest.
- šÆš“Jordan Rajab Natshah Jordan
Permissions must exist ā
Invalid permissions will trigger runtime exceptions in Drupal 10 ā . Permissions should be defined in a
permissions.yml
file or a permission callback.The
skip_missing_permission_deprecation
flag that was added in Drupal 9 to the Role entity in #2571235: [regression] Roles should depend on objects that are building the granted permissions ā .Modules cannot be in a disabled state anymore, only installed and uninstalled ā
#1199946: Disabled modules are broken beyond repair so the "disable" functionality needs to be removed ā# A special flag so we can migrate permissions that do not exist yet. # @todo Remove in https://www.drupal.org/project/drupal/issues/2953111. skip_missing_permission_deprecation: plugin: default_value default_value: true
It was removed from the
10.0.x
and10.1.x
branch.#2953111: Only migrate role permissions that exist on the destination ā
- Issue
#3344805 ā
: Added Permissions for user roles to Varbase Core from scanned
config/permissions
directory - Issue
#3344813 ā
: Added Permissions for user roles to Varbase Media from scanned
config/permissions
directory - Issue
#3344807 ā
: Added Permissions for user roles to Varbase Editor from scanned
config/permissions
directory - Issue
#3344811 ā
: Added Permissions for user roles to Varbase Layout Builder from scanned
config/permissions
directory - Issue
#3344791 ā
: Added Permissions for user roles to Varbase API from scanned
config/permissions
directory - Issue
#3344818 ā
: Added Permissions for user roles to Varbase Social Single Sign-On from scanned
config/permissions
directory - Issue
#3344801 ā
: Added Permissions for user roles to Varbase Carousels from scanned
config/permissions
directory - Issue
#3344808 ā
: Added Permissions for user roles to Varbase Email from scanned
config/permissions
directory - Issue
#3344810 ā
: Added Permissions for user roles to Varbase Landing Page (Paragraphs) from scanned
config/permissions
directory - Issue
#3344800 ā
: Added Permissions for user roles to Varbase Bootstrap Paragraphs from scanned
config/permissions
directory - Issue
#3344821 ā
: Added Permissions for user roles to Varbase Workflow from scanned
config/permissions
directory - Issue
#3393952 ā
: Added Permissions for user roles to Varbase Total Control Dashboard from scanned
config/permissions
directory - Issue #3341637 ā : Added permissions to the SEO Admin user role for Varbase Dashboards default dashboard
- Issue
#3344805 ā
: Added Permissions for user roles to Varbase Core from scanned
- š®š¹Italy ggamba Milano
Hi Rajab,
I've now successfully upgraded all my Vardot based Drupal 9 sites to Drupal 10, using https://github.com/Vardot/varbase-project/blob/9.0.x/composer.json as a model. But now updating again fails:
- drupal/varbase_workflow dev-2.0.x requires drupal/core ~9 -> found drupal/core[9.0.0-alpha1, ..., 9.5.x-dev] but it conflicts with your root composer.json require (~10.1.0). - vardot/varbase 9.0.x-dev requires drupal/varbase_workflow 2.0.x-dev -> satisfiable by drupal/varbase_workflow[2.0.x-dev (alias of dev-2.0.x)]. - drupal/varbase_workflow 2.0.x-dev is an alias of drupal/varbase_workflow dev-2.0.x and thus requires it to be installed too. - Root composer.json requires vardot/varbase 9.0.x-dev -> satisfiable by vardot/varbase[9.0.x-dev].
I guess I need to update varbase_workflow, but to which version?
- šÆš“Jordan Rajab Natshah Jordan
Not to use the 9.0.x-dev version of Varbase
the right one is ~9.0 as inhttps://github.com/Vardot/varbase-project/blob/9.0.16/composer.json
Updated the docuentation for that
What to do about Drupal 9's and Drush 11's end of life?
Updating Varbase ~9.0 to Drupal 10
Updating Drush to the Latest Stable VersionAll old Varbase
9.0.x
sites are ready to upgrade to Drupal~10.1.0
- šÆš“Jordan Rajab Natshah Jordan
- šÆš“Jordan Rajab Natshah Jordan
In some cases modules have custom config, code, logic for Drupal ~10, which differ from Drupal ~9
Facing issues like:
š Fix Drupal core content moderation to prevent old revisions from becoming default on re-save Active
š Revision user incorrectly appears as anonymous user when node author is cancelled Needs work
š Content moderation can wrongly set old revisions as default when they're resaved Needs review
š Fix editing and viewing paragraphs issues of incorrect revision of its parent when content moderation is involved Needs review
š Paragraph access check using incorrect revision of its parent, leading to issues editing and viewing paragraphs when content moderation is involved. Needs work
Which they needs fixes for Drupal 9 and other fixes in Drupal 10To follow with that
š Start a 9.1.x branch for Varbase Social Single Sign-On to support Drupal ~10 and drop support for Drupal ~9 FixedDoing that in all Varbase modules
š Revamp the 9.1.x branch for Varbase Media Header to work with Drupal ~10 for a smoother upgrade process and drop support for Drupal ~9 Fixed
š Revamp the 9.1.x branch for Varbase Style Guide to work with Drupal ~10 for a smoother upgrade process and drop support for Drupal ~9 Fixed
š Revamp the 9.1.x branch for Varbase Landing Page (Paragraphs) to work with Drupal ~10 for a smoother upgrade process and drop support for Drupal ~9 Fixed
š Revamp the 9.1.x branch for Varbase Media to work with Drupal ~10 for a smoother upgrade process and drop support for Drupal ~9 Fixed
š Revamp the 9.1.x branch for Varbase Media Hero Slider to work with Drupal ~10 for a smoother upgrade process and drop support for Drupal ~9 Needs review
š Revamp the 9.1.x branch for Varbase Email to work with Drupal ~10 for a smoother upgrade process and drop support for Drupal ~9 Fixed
š Revamp the 9.1.x branch for Varbase Carousels to work with Drupal ~10 for a smoother upgrade process and drop support for Drupal ~9 Fixed
š Revamp the 9.1.x branch for Varbase Blog (Corporate Blog) to work with Drupal ~10 for a smoother upgrade process and drop support for Drupal ~9 Fixed
š Start a 9.1.x branch for Varbase Total Control Dashboard to support Drupal ~10 and drop support for Drupal ~9 Fixed
š Start a 9.1.x branch for Varbase SEO to support Drupal ~10 and drop support for Drupal ~9 Fixed
š Start a 9.1.x branch for Varbase Search to support Drupal ~10 and drop support for Drupal ~9 Fixed
š Start a 9.1.x branch for Varbase API to support Drupal ~10 and drop support for Drupal ~9 Fixed
š Start a 9.1.x branch for Varbase Social Single Sign-On to support Drupal ~10 and drop support for Drupal ~9 FixedDoing one more full testing round before releasing Varbase 9.0.17 and Varbase 9.1.0
- š®š¹Italy ggamba Milano
Thank you Rajab,
I corrected composer.json, ran update script and successfully upgraded to drupal/core ver. 10.1.6 and vardot/varbase 9.0.16. But now I see this error while running drush updb:
[error] (Currently using Incompatible module The following module is installed, but it is incompatible with Drupal 10.1.6: * Entity Browser Generic Embed
Thanks a lot for your patience!
- šÆš“Jordan Rajab Natshah Jordan
Thanks, Gabriele for reporting the
"Currently using Incompatible module The following module is installed, but it is incompatible with Drupal 10.1.6"
issueā Released varbase_media-9.0.37 ā
ā Released varbase_media-9.1.1 āvarbase_media-9.1.0, varbase_media-9.1.1
- Issue
#3403763 ā
: Revamped the
9.1.x
branch for Varbase Media to work with Drupal ~10 for a smoother upgrade process and drop support for Drupal ~9
varbase_media-9.0.36, varbase_media-9.0.37
- Issue
#3403763 ā
: Changed
drupal/core
to~9
in the.info.yml
andcomposer.json
files in the9.0.x
branch
#3404183: Plan: Release Varbase 9.1.0 āPaving the way for a smoother upgrade process to Drupal 10
Eliminating errors of using the same codebase with Drupal 9 and Drupal 10 and drop support for Drupal ~9
- Issue
#3403763 ā
: Revamped the
- šÆš“Jordan Rajab Natshah Jordan
By the way, thanks for your follow up and listing of issues!
Updating the documentation and codebase as we goAll old Varbase
9.0.x
sites are ready to upgrade to Drupal~10
with Varbase9.1.x
To update the documentation too.
After the release of Varbase 9.1.0 - š¬šŖGeorgia almador
Hi, Rajab!
Let me first thank you for your efforts and so nice distribution!As I see Varbase 10.0.0-rc1 was released yesterday, but it is still stated:
"Only for testing!. Do not use in production or live sites yet!."Should I wait for another Drupal 10 version, that could be used in production?
- šÆš“Jordan Rajab Natshah Jordan
almador, Thanks for following up on Varbase 10
Drupal 10.2.0, 10.2.1, and 10.2.2 were released with some changes
Varbase10.0.0
stable is around
#3413373: Plan: Release Varbase 10.0.0 āDoing the final full testing rounds and pug fixes before the release
By the way we are doing micro releases for Varbase Modules. - Status changed to Fixed
10 months ago 5:58pm 18 January 2024