- Issue created by @sakthi_dev
- Merge request !109Update the Content source to fetch the max length of media fields → (Open) created by sakthi_dev
Getting following error on saving translation of media image alt text which exceeds the database max length.
Drupal\Core\Entity\EntityStorageException: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'thumbnail__alt' at row 4: INSERT INTO "media_field_data" ("mid", "vid", "bundle", "langcode", "status", "uid", "name", "thumbnail__target_id", "thumbnail__alt", "thumbnail__title", "thumbnail__width", "thumbnail__height", "created", "changed", "default_langcode", "revision_translation_affected", "content_translation_source", "content_translation_outdated", "publish_on", "unpublish_on", "publish_state", "unpublish_state")
Add a media field with Image type with alt enabled.
Create a page.
Translate using tmgmt.
Add text into alt field in translation more than 512 characters.
Validate the max length before submitting.
Review.
Active
1.0
Miscellaneous