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
- Create a "Keepeek image" media type with these options:
- Media source: Keepeek
- Media source configuration, Field with source information:
Create
- Create a "Keepeek video" media type with these options:
- Media source: Keepeek
- Media source configuration, Field with source information:
media.field_media_keepeek
- 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
*_jsonfield 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 #3522143: Confusing field names when creating 2+ Keepeek media types
Remaining tasks
?
User interface changes
?
Comments