Entity:media doesn't exist error when searching for url in "add link" in wysiwyg When adding a link into a rich text field (wysiwyg) (see images bellow) and searching for a keyword the throbber icon keeps spinning and that's it.




I looked at the error logs and found the following, this was working recently, no idea what happened.

Uncaught PHP Exception Drupal\Component\Plugin\Exception\PluginNotFoundException: "The "entity:media" plugin does not exist. Valid plugin IDs for Drupal\linkit\MatcherManager are: entity:contact_form, email, entity:contact_message, entity:feeds_feed, entity:node, entity:scheduled_update, entity:taxonomy_term, entity:user, entity:file, front_page"


If anyone has an idea what happened?
Drupal 8.7.3
I had a similar problem, but not with entity:media, but with entity:shortcut

I ended up by deleting the matcher from the database.

It is in the datatable config under the name "linkit.linkit_profile.ckeditor"

SELECT * FROM config WHERE name= "linkit.linkit_profile.ckeditor";

The data is stored in a serialized string. To remove it, you must be confident in editing serialized strings, which is a bit dangerous.

I used (UN)Serialize.me to convert the unserialized string to a JSON string, then edited the JSON in JSON Editor Online and back again.

I first tried to use drush to export the config, editing the config YAML file and then importing, but it yielded the same error.