Default image used by image file field causes error

Created on 27 April 2021, over 3 years ago
Updated 19 January 2024, 12 months ago

I have a content type that includes an image file field.

Field Type: Image

I added a default image to be used if no image is uploaded.

If I click “used in” I get the error: “The website encountered an unexpected error. Please try again later”.

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "default_image" entity type does not exist. in Drupal\Core\Entity\EntityTypeManager->getDefinition()

For all other files, the system is working correctly.

🐛 Bug report
Status

Closed: cannot reproduce

Version

1.0

Component

Miscellaneous

Created by

🇺🇸United States Bwolf

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.

  • First commit to issue fork.
  • Status changed to Closed: cannot reproduce 12 months ago
  • 🇺🇦Ukraine AstonVictor

    Hi @Bwolf,

    the issue is not reproducible anymore.
    I tested on Drupal 10.1.5, php 8.1, mariadb.

    for testing I
    1. created a new content type with an image field
    2. added default image
    3. created a new node with the default image
    4. remove the file on /admin/content/files page

    Results:
    the file was removed, there is no file on the node overview page, there are no error/warning logs.

Production build 0.71.5 2024