AMP Theme depends on deprecated stable theme (removed in Drupal 10)

Created on 13 January 2023, over 1 year ago
Updated 13 February 2024, 4 months ago

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.

πŸ› Bug report
Status

RTBC

Version

3.0

Component

Code

Created by

πŸ‡·πŸ‡ΊRussia pick_d

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024