Problem/Motivation
After updating to Drupal 11.4, the Status report page shows a warning about deprecated themes ("stable9"):
Deprecated themes installed | Deprecated themes found: Stable 9.
It is set as base theme in bootstrap5.info.yml:
'base theme': stable9
Perhaps we can phase out stable9 as base theme?
Steps to reproduce
Update Drupal to version 11.4 and see the Deprecated themes installed | Deprecated themes found: Stable 9. warning on the Status page.
Proposed resolution
Remove "stable9" as Bootstrap5 base theme .
Issue fork bootstrap5-3608124
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
mr.white commentedEnabling twig debug does show traces of stable9 being used when bootstrap is enabled.
Here are the traces I found.
Templates
Stylesheets
Comment #3
flyke commentedComment #5
flyke commentedAttempted an MR.
So, add it as a patch in composer.json:
Then run:
And check if everything still works for you.
For me everything is fine. It removed the warning at /admin/reports/status about deprecated stable9 theme, and my custom theme based on bootstrap5 still works. The MR was created on bootstrap5 4.0.x-dev but it also applies to bootstrap5 4.0.8
Comment #6
duckydan commentedAs a short term fix, there is a contrib stable9 that works.
https://www.drupal.org/project/stable9
I helped fix a bunch of CSS issues and got rid of the deprecation error specifically for my bootstrap5-themed site.
Seems like it is working well now.
Comment #7
mr.white commentedThe patch from #5 worked for me. The warning is gone from the Drupal status page and the site seems to be working normally.
The twig templates which were previously being pulled from stable9 are now coming from system.
And, as expected, all references to stable9 css are gone as well.
Comment #8
eduardo.heuvel commentedI, OP, can confirm that the patch from #5 worked for me. Thank you for your effort.
Comment #9
flyke commentedFrom the two possible ways of going forward:
- make bootstrap5 theme depend on contrib stable9 theme / keep the bootstrap5 theme having stable9 as base theme
- make bootstrap5 theme independant / set base_theme: false
I prefer this MR115 and not having to depend on a whole other contrib theme.
Myself and mr.white both reported everything working without depending on stable9 theme so its at least partly tested by the community.
I wouldn't mind getting more opinions on this to confirm that its a good idea to let this bootstrap5 theme not have a base theme.
Comment #10
bwoods commentedI ran into this exact same issue with D11.4. I applied the patch, ran the database update and no longer see the error message. I also agree that removing the dependency of Stable9 is the way to go, and I believe that was the intention of the latest Bootstrap5 version as well.
Comment #11
ressaThanks for reporting and working on this. Since more and more users are upgrading to Drupal 11 and running into this, should the priority be raised?
I have updated the Issue Summary and removed the mentions of uninstalling
stable9with Drush, since it is a Bootstrap5 base theme, and might corrupt an installation.Since many users report that the MR works, perhaps one of you reviewers can change the Status to RTBC?
(The tests seem to be failing generally, and could be a false alarm.)
Comment #12
ressa