Using Drupal 9.0.5

When uninstalling footnotes, the site cannot be accessed any more, ony showing:

The website encountered an unexpected error. Please try again later.

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "filter_footnotes" plugin does not exist. Valid plugin IDs for Drupal\filter\FilterPluginManager are: blazy_filter, editor_file_reference, filter_htmlcorrector, filter_align, filter_html_image_secure, filter_autop, filter_caption, filter_html, filter_html_escape, filter_null, filter_url, linkit, media_embed, url_embed_convert_links, url_embed in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).
Drupal\Core\Plugin\DefaultPluginManager->getDefinition('filter_footnotes') (Line: 70)
Drupal\filter\FilterPluginCollection->initializePlugin('filter_footnotes') (Line: 80)
Drupal\Component\Plugin\LazyPluginCollection->get('filter_footnotes') (Line: 26)
Drupal\filter\FilterPluginCollection->get('filter_footnotes') (Line: 92)
Drupal\filter\FilterPluginCollection->sortHelper('filter_htmlcorrector', 'filter_footnotes')
uasort(Array, Array) (Line: 90)

Issue fork footnotes-3169347

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Yuri created an issue. See original summary.

scott_euser’s picture

Status: Active » Postponed (maintainer needs more info)

Is this still an issue?

luisrdm’s picture

Hi there, I'm encountering this error when I try to acces /admin/modules/uninstall

The website encountered an unexpected error. Try again later.

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "filter_footnotes" plugin does not exist. Valid plugin IDs for Drupal\filter\FilterPluginManager are: editor_file_reference, filter_align, filter_autop, filter_caption, filter_html, filter_htmlcorrector, filter_html_escape, filter_html_image_secure, filter_image_lazy_load, filter_null, filter_url, media_embed, php_code in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).

This is a Drupal 10.3.1
Apache/2.4.56
PHP 8.2.5
10.7.3-MariaDB-1:10.7.3+maria~bullseye-log

damienmckenna’s picture

Title: Uninstalling footnotes gives fatal error » Footnotes does not remove filter plugins from filter definitions on uninstall
Version: 8.x-2.x-dev » 4.0.x-dev
Status: Postponed (maintainer needs more info) » Active

Yes, this is still a problem in the 4.0.x branch.

When the module is uninstalled it needs to loop through all of the defined filters and remove mentions of the "filter_footnotes" plugin.

  • scott_euser committed 951d0c87 on 4.0.x
    fix: #3169347 Footnotes does not remove filter plugins from filter...
scott_euser’s picture

Status: Active » Fixed

Thanks, also removing the config/optional footnote text format used in the modal window

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.