PluginNotFoundException after editing link added to image

Created on 21 April 2020, about 5 years ago
Updated 27 June 2025, 6 days ago

Hi, we've been seeing an issue for a while with the following exception showing up in our logs, and we've finally found a reliable way to reproduce the issue.

Type: linkit_filter
Message: Drupal\Component\Plugin\Exception\PluginNotFoundException: The "" entity type does not exist

Steps to reproduce:

  1. Create a node and add an image by uploading an image file
  2. Add a link to the image to an external page such as https://example.com
  3. Save the node
  4. Edit the node, then edit the link. You don't even need to change anything about the link, just click the Save button in the linkit dialog.
  5. Save changes. A bunch of empty attributes will be added to the link, including data-entity-type="".
  6. View the node. The page will render fine but there will be a PluginNotFoundException in the logs.

We have thousands of these exceptions in our logs and that alone is fairly annoying, but another side effect we've seen is that sometimes this same exception pops up while running drush commands such as "drush cr" during deployments. The only way to work around it is to remote into the servers and re-run the commands manually until they work (normally they're run by a script). We're hoping that if none of our content had these empty data-entity-type attributes then everything would work fine.

I've linked to a related issue as it appears to be the same, though that issue didn't have steps to reproduce and ended up getting closed. Hopefully the steps above are enough to help get it resolved.

And lastly, thanks for contributing this module. We have been using it on our site for a while and it's definitely saved us a bunch of time and we've enjoyed using it!

πŸ› Bug report
Status

Closed: outdated

Version

7.0

Component

Code

Created by

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.

  • πŸ‡ΊπŸ‡ΈUnited States mark_fullmer Tucson

    This issue appears no longer to be an issue in the latest release of Linkit. As such, and given there has been no activity on this issue for more than 5 years, I'm going to go ahead and close it as outdated. If this is still an issue for anyone, please don't hesitate to create a new issue!

Production build 0.71.5 2024