Problem/Motivation
AMP Theme uses Stable as a base theme.
Now Stable is deprecated:
https://www.drupal.org/project/drupal/issues/3308890 β
Stable theme is removed from Drupal 10.
However, Stable9 theme is provided by Drupal core for our compatibility needs.
Steps to reproduce
1. Install AMP Theme
2. Upgrade to Drupal 9.5.0+
3. Visit /admin/reports/status
4. Notice the following:
Deprecated themes found: Stable.
Proposed resolution
Probably switch to Stable9 if it is possible. I am not a developer in any way, but it seems just like almost direct swap and Stable9 is provided by Drupal Core and is present in Drupal 10. Since it's a core theme, it will be probably maintained well, so that's one less issue to bother about.
Here's what I did:
Simply changing 'stable' to 'stable9' in /themes/contrib/amptheme/amptheme/amptheme.info.yml
leads to white screen of death, because Stable9 theme is likely 'not installed', and the site log explicitly says so.
In order to install the Stable9 theme, one should remove 'hidden: true' line from /core/themes/stable9/stable9.info.yml
After that you're able to install it via gui at /admin/appearance
. Installation process throws white screen of death too, but the theme installs just fine.
Now we can change the following in amptheme.info.yml:
base theme: stable
to:
base theme: stable9
After that (and cache rebuild, of course), everything seems to work fine.
P.S.
In order to uninstall 'regular' Stable theme, go to /core/themes/stable/stable.info.yml
and remove 'hidden: true'
After that, once you deal with amptheme dependency, you can remove it via GUI if no other theme is using it as a base theme.
Worked for me.