Update 10014 failing from alpha 26 to alpha 35

Created on 21 July 2025, 16 days ago

Problem/Motivation

I am trying to update and I am getting this error on db updates.

schemadotorg   10014       hook_update_n   10014 - Issue #3517258: Refactor default component weight.                                  
  schemadotorg   10015       hook_update_n   10015 - Update to Schema.org v29.1.                                                         
  schemadotorg   10016       hook_update_n   10016 - Add legislation' to custom and prefixed names to truncate legislation* properties.  
  schemadotorg   10017       hook_update_n   10017 - Issue #3523448: Allow entity display for Schema.org properties to be disabled.      
 -------------- ----------- --------------- -------------------------------------------------------------------------------------------- 


 // Do you wish to run the specified pending updates?: yes.                                                             

>  [notice] Update started: schemadotorg_update_10014
>  [error]  The "media" entity type does not exist. 
>  [error]  Update failed: schemadotorg_update_10014 
 [error]  Update aborted by: schemadotorg_update_10014 
 [error]  Finished performing updates. 

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States nicxvan

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

Comments & Activities

  • 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.

Production build 0.71.5 2024