WSOD error when using existing field for "Field with source information"

Created on 1 May 2025, 5 days ago

Problem/Motivation

When trying to use an existing field for "Field with source information", the module throws a White Screen of Death fatal error:

The website encountered an unexpected error. Try again later.

Drupal\Core\Entity\EntityStorageException: 'field_storage_config' entity with ID 'media.field_media_keepeek_1_json' already exists. in Drupal\Core\Entity\EntityStorageBase->doPreSave() (line 519 of core/lib/Drupal/Core/Entity/EntityStorageBase.php).

Drupal creates the media type, but it is missing the *_json field needed for Keepeek.

Steps to reproduce

  1. Create a "Keepeek image" media type with these options:
    • Keepeek
    • Create
  2. Create a "Keepeek video" media type with these options:
    • Keepeek
    • media.field_media_keepeek
  3. Go back to the list of media types and see the media type was created, but look at the list of fields to see that the *_json field needed for Keepeek is missing.

Proposed resolution

When deciding what field machine names to use, make sure the fields don't already exist.

The solution is related to this issue 🐛 Confusing field names when creating 2+ Keepeek media types Active

Remaining tasks

?

User interface changes

?

🐛 Bug report
Status

Active

Version

1.1

Component

Code

Created by

🇹🇼Taiwan johnalbin Taipei, Taiwan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024