- Issue created by @nicxvan
- πΊπΈUnited States jrockowitz Brooklyn, NY
A few questions
Is the media.module and/or the schemadotorg_media.module enabled?
Do you see the media mapping here /admin/config/schemadotorg/types?
If the media.module and/or the schemadotorg_media.module are NOT enabled. I think you need to delete the media mapping. Older versions of the module shipped with the media mapping always installed.
- πΊπΈUnited States nicxvan
Media, media library and schemadotorg_media are not enabled.
Just to confirm I can delete the file: schemadotorg.schemadotorg_mapping_type.media.yml
- πΊπΈUnited States jrockowitz Brooklyn, NY
Yes, deleting `schemadotorg.schemadotorg_mapping_type.media.yml` should resolve the issue.
- πΊπΈUnited States nicxvan
Can confirm that that worked.
Maybe worth an update hook to remove it if those modules are not installed.
- πΊπΈUnited States nicxvan
I spoke too soon, I'm seeing these errors in the logs now:
[error] Drupal\Core\Field\FieldException: Field 'schema_video' on entity type 'node' references a target entity type 'media' which does not exist. in Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::schema() (line 172 of /app/web/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php).
I'll take a deeper look.