Weeks column not found error

Created on 10 October 2025, 3 days ago

Problem/Motivation

I have recently used this module and created a field called video_duration that takes minutes and seconds. Now when I try to add a data, it throws an error.

Drupal\Core\Entity\EntityStorageException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'video_duration_weeks' in 'field list': INSERT INTO "media__video_duration" ("entity_id", "revision_id", "bundle", "delta", "langcode", "video_duration_duration", "video_duration_seconds", "video_duration_weeks") VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7); Array ( [:db_insert_placeholder_0] => 9550 [:db_insert_placeholder_1] => 9583 [:db_insert_placeholder_2] => vertical_video_embed [:db_insert_placeholder_3] => 0 [:db_insert_placeholder_4] => en [:db_insert_placeholder_5] => PT6M [:db_insert_placeholder_6] => 360 [:db_insert_placeholder_7] => 0 ) in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 817 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).

I haven't even configured a week are part of my field so I am not sure why it is complaining. I have manually added video_duration_weeks to a field table and that did fix the error.

🐛 Bug report
Status

Active

Version

2.2

Component

Code

Created by

🇬🇧United Kingdom drs2034

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.

No activities found.

Production build 0.71.5 2024