Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have this error with too long alt or title values:
PDOException: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'field_work_photos_alt' at row 6: INSERT INTO {field_data_field_work_photos}
Comments
Comment #1
vasiliy0s CreditAttribution: vasiliy0s commentedI am adding this code to image_attribute_defaults_field_attach_presave() function for preparing fields 'alt' and 'title' attr .
Comment #2
13rac1 CreditAttribution: 13rac1 commentedMoving to correct issue queue
Comment #3
13rac1 CreditAttribution: 13rac1 commentedFields are now truncated.