Problem/Motivation
As mentioned in the title "Drupal\Component\Plugin\Exception\PluginNotFoundException: The "" plugin does not exist"
Drupal\Component\Plugin\Exception\PluginNotFoundException: The "blazy_filter" plugin does not exist. Valid plugin IDs for Drupal\filter\FilterPluginManager are: editor_file_reference, filter_caption, filter_url, filter_null, filter_autop, filter_htmlcorrector, filter_html, filter_html_image_secure, filter_align, filter_html_escape, media_embed, video_embed_wysiwyg in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).
Steps to reproduce
- Install Drupal
- Add a filter plugin module (e.g. drupal/blazy)
- Configure an input format to use that.
- Deploy to production
- In dev env (or similar) uninstall the filter module (e.g. drupal/blazy)
- Export your configuration
- Attempt to deploy your configuration to production (e.g running drush cim)
There are two issues here (three if you are using ckeditor 4 module from contrib)
- editor_filter_format_presave doesn't check if the entity is syncing and should
- If you have the CKE4 module from contrib - ckeditor_editor_presave doesn't check if the entity is syncing and should
- We shouldn't sort the plugins when we're syncing
Proposed resolution
We careful of loading filters when we're syncing