The base theme stable is not operated correctly

Created on 20 April 2023, over 2 years ago

Problem/Motivation

The base theme Stable is not inherited correctly. It is not working with Drupal 10.

Steps to reproduce

Go to Appearance, and see the ZURB Foundation 6 under the uninstall theme section.

Proposed resolution

Change the base theme name stable to stable9 and remove

dependencies:
  - stable: stable 

in the ".info.yml" file in Drupal10.

See the issue attachment.

🐛 Bug report
Status

Active

Version

9.0

Component

Code

Created by

🇮🇳India bandanasharma

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

Merge Requests

Comments & Activities

  • Issue created by @bandanasharma
  • @bandanasharma opened merge request.
  • Status changed to Needs review over 2 years ago
  • Status changed to RTBC over 2 years ago
  • 🇮🇳India Manoj Raj.R Chennai

    Reviewed and looks good to me.

    Can be moved to RTBC

  • 🇮🇳India shyam_bhatt Gujarat

    Reviewed the "merge request !23". Working fine. Please check the below images:

    Before:

    After:

  • 🇺🇸United States sim_1

    So, my understanding is that this change switches to using core's stable9, rather than the contrib stable theme. I'm fine with this (especially if the contrib stable theme wasn't installing correctly anyway). Essentially using option 2 rather than option 1 from this page https://www.drupal.org/node/3309392 .

    In your testing, did it seem like this switch introduced any issues related to the differences between stable and stable9 that that documentation mentions?

  • 🇮🇳India shyam_bhatt Gujarat

    @sim_1 When we install Drupal "10.0.x", the "stable9" theme exists on the "core/themes" path. So there is no need to add an additional contributed project theme "stable".

    The contributed project theme "stable" will effectively work the same but it's now dependent on something outside of Drupal core.

    I have checked with the Option 2 approach and the site is working fine with that. I have not found any issues from the UI side.

  • 🇺🇸United States sim_1

    Great, thanks for checking. I think it's most important that we having a working install so hopefully we can just patch any visual issues that come up if we do end up encountering any. Thanks!

  • Status changed to Fixed about 2 years ago
  • 🇺🇸United States sim_1

    Great, thanks for this MR and testing! Merged.

  • Status changed to Fixed about 2 years ago
  • First commit to issue fork.
  • Merge request !32Resolve #3355260 "Fixed basetheme" → (Open) created by nmillin
  • 🇺🇸United States nmillin

    Since we aren't using the contributed theme stable anymore, and are using stable9 from core, I created a MR to remove stable from zurb_foundation's composer.json.
    https://git.drupalcode.org/project/zurb-foundation/-/merge_requests/32/d...

    I can't reopen the issue, but if a maintainer (@sim_1?) could please review this that would be great. Thanks!

  • 🇳🇱Netherlands DomoSapiens

    I tested the MR by making a patch file of it and install in locally. But that don't fix the problem for me. I still get the message:

    Drupal\Core\Theme\MissingThemeDependencyException: Base theme stable9 has not been installed. in Drupal\Core\Theme\ThemeInitialization->getActiveThemeByName() (line 115 of core/lib/Drupal/Core/Theme/ThemeInitialization.php).
    
  • 🇺🇸United States stephenplatz Greenbank, WA

    I'm having the same problem as #16, although I have just updated from beta1 to beta2. It makes a little sense, since I'm seeing that stable9 is disabled for my application

    drush pml | grep stable
      Core           Stable 9 (stable9)                  Disabled   10.5.1          
      Core           Stable (stable)                     Enabled    2.1.0 
    

    but attempting to enable it returns

    Unable to install modules stable9 due to missing modules stable9.

Production build 0.71.5 2024