Unable to remove the theme.

Created on 21 May 2024, 6 months ago
Updated 22 May 2024, 6 months ago

I'm not sure what has happened. I had installed material_base via composer, to evaluate; when I went to remove it ( uninstalled it from the APPEARANCE screen, which moves it to the "uninstalled themes" section at the bottom; then composer remove drupal/material_base) it seemed to come out; however when I then went to run update.php, I get an error that material_stable9is missing. I then composer require drupal/material_stable9, which satisfies the error, allowing the update process to complete, but then I have the Material Base and Material Base MDC themes back in my uninstalled themes area. So I try the composer remove command again, which completes without issue, and removes the themes. To test, I run update (update.php), and again, I get the

Missing or invalid theme
The following theme is marked as installed in the core.extension configuration, but it is missing:

    material_stable9


Review the suggestions for resolving this incompatibility to repair your installation, and then re-run update.php.

error message.

I have tried every variation I can think of. I have, through composer installed both material_base and material_stable9 (so that I have both of them showing in my composer.json, I then run composer update to make sure everything is updated and should be "clean", it still shows both entries in the composer.json file. If I remove drupal/material_base via the CLI, composer shows it removing both material_base and material_stable9. I check, and both entries are removed from the composer.json file, but then, when I run update.php, once again, I get the error that material_stable9 is missing. How do I remove this?

πŸ’¬ Support request
Status

Closed: works as designed

Version

3.0

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States BEGRAFX Laconia, New Hampshire

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

Comments & Activities

  • Issue created by @BEGRAFX
  • πŸ‡¬πŸ‡ͺGeorgia iamdroid

    Hi.

    The root of the issue is material_stable9 is a hidden theme, so it can't be uninstalled via appearance page, usually.

    Could you please try this:

    1. composer require 'drupal/material_base:^3.0'
    2. drush cr
    3. drush thun material_base_mdc
    4. drush thun material_base
    5. drush thun material_stable9
    6. drush cr
    7. drush cron
    8. composer removee drupal/material_base

    Hope it helps.

  • πŸ‡ΊπŸ‡ΈUnited States BEGRAFX Laconia, New Hampshire

    Thank you. No joy.

    composer require 'drupal/material_base:^3.0'
    ./composer.json has been updated
    Running composer update drupal/material_base
    Loading composer repositories with package information
    Updating dependencies
    Lock file operations: 1 install, 0 updates, 0 removals
      - Locking drupal/material_base (3.0.0)
    Writing lock file
    Installing dependencies from lock file (including require-dev)
    Package operations: 1 install, 0 updates, 0 removals
      - Installing drupal/material_base (3.0.0): Extracting archive
    Generating autoload files
    Hardening vendor directory with .htaccess and web.config files.
    57 packages you are using are looking for funding.
    Use the `composer fund` command to find out more!
    Cleaning installed packages.
    No security vulnerability advisories found.

    Then

    drush cr
     [success] Cache rebuild complete.

    So far, so good. Moving on...

    drush thun material_base_mdc
    
    In ThemeInstaller.php line 263:
                                         
      Unknown theme: material_base_mdc.  

    I also tried #4, just to see what happened. Same result. I saw no point in attempting to continue.

  • πŸ‡¬πŸ‡ͺGeorgia iamdroid

    There is a point to continue. I added #3 and #4 to be 100% sure nothing is blocking #5 and the rest of the commands.
    The main commands are #1, #5, and #7.

  • πŸ‡ΊπŸ‡ΈUnited States BEGRAFX Laconia, New Hampshire

    Yes, you're right. I was concerned as #3 and #4 both came back with what appeared to be errors, but #5 worked fine, and completing the whole process the themes were uninstalled, and the update routine ran without issue.

    Thank you, very much. I appreciate your help and your patience.

  • Status changed to Fixed 6 months ago
  • Status changed to Closed: works as designed 6 months ago
Production build 0.71.5 2024