Problem/Motivation

It would have been fun to put this in place...

Steps to reproduce

Drupal 8.9.6 - using module default installation added to basic html text filter
/node/1/edit

Error: Class 'Drupal\pirate\Plugin\Filter\Drupal' not found in Drupal\pirate\Plugin\Filter\Pirate->process() (line 47 of modules/contrib/pirate/src/Plugin/Filter/Pirate.php).

Attempted to import previous configurations - failed with error unable to uninstall
ResponseText: The website encountered an unexpected error. Please try again later.Drupal\Core\Extension\ModuleUninstallValidatorException: The following reasons prevent the modules from being uninstalled: Provides a filter plugin that is in use in the following filter formats: <em class="placeholder">Basic HTML</em> in Drupal\Core\Extension\ModuleInstaller->uninstall() (line 398 of core/lib/Drupal/Core/Extension/ModuleInstaller.php).

Attempted to manually remove the plugin from the basic HTML filter and got the same error received on node edit. (above)

Currently blocked from removing the module at this point.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

bsnodgrass created an issue. See original summary.

bsnodgrass’s picture

Issue summary: View changes

  • sillygwailo committed fbc3b95 on 8.x-1.x
    Issue #3171981 by sillygwailo: Fix the call to the Drupal object for...
sillygwailo’s picture

I just committed a fix to the dev branch, and I'll make a release shortly. Can you try the dev release to see if it resolves the issue for you?

And yes, I am aware of what day it is. Yarr!

bsnodgrass’s picture

Dev version worked
Cleared the error on the config screen and the node edit screen
The node I was editing was using Full HTML format (if that makes a difference) I changed it to Basic HTML and got the expected results,

Yarr Matey!

sillygwailo’s picture

Assigned: Unassigned » sillygwailo
Status: Active » Fixed

Great! I created a release which incorporates this. Closing this out, ye' scurvy dogs!

sillygwailo’s picture

Status: Fixed » Closed (fixed)
bsnodgrass’s picture

Thanks... see FoxValleyDrupal.org ...
Guess what day it is... International Talk Like A Pirate Day