Uninstall impossible, without disabling text format first

Created on 28 January 2022, over 2 years ago
Updated 17 October 2023, 9 months ago

Problem/Motivation

Uninstall impossible, without disabling the 'Gutenberg Blocks text format' first.

Steps to reproduce

$ drush pmu gutenberg

In PmCommands.php line 196:
                                                                                    
  gutenberg: Provides a filter plugin that is in use in the following filter forma ts: <em class="placeholder">Gutenberg Blocks text format</em>

Proposed resolution

Let the uninstall process remove the Gutenberg text format.

Tested on

drupal/gutenberg (2.4.0) and drupal/gutenberg (dev-2.x 3787812)
drupal/core-recommended (9.3.3)
PHP 8.1.2
Apache/2.4.52

πŸ› Bug report
Status

Closed: duplicate

Version

2.0

Component

Code

Created by

πŸ‡ΈπŸ‡ͺSweden emilcarpenter

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.

  • πŸ‡―πŸ‡΅Japan tyler36 Osaka

    Encountered this will debugging another issue.

    ## Test

    1. Install Drupal
    2. Install Drush

    composer required drush/drush
    

    3. Install Gutenberg

    composer required drupal/gutenberg
    

    4. Enable Gutenberg

    $ drush en gutenberg
     [success] Successfully enabled: gutenberg
    

    5. Disable Gutenberg

    $ drush pmu gutenberg
    In PmCommands.php line 211:                                                                                                                           
      gutenberg: Provides a filter plugin that is in use in the following filter formats: <em class="placeholder">Gutenberg Blocks text format</em>  
                                                                                                                                                     
    
  • Status changed to Closed: duplicate 9 months ago
  • πŸ‡©πŸ‡ͺGermany szeidler Berlin

    It is actually related to a Core issue #2635728: Uninstalling a module providing display extenders causes fatal errors β†’ and might happen with other modules (that provides text filters) as well.

    In #3204782: Uninstalling Gutenberg editor broke site β†’ we implemented such a routine, but unfortunately the Drupal core config validation (your error) is triggered before gutenberg_uninstall(). So manual steps would be to disable the Gutenberg text filter on all text formats that are using it (most likely only the Gutenberg text format) and afterwards uninstall the module.

Production build 0.69.0 2024