If you enter a title that's longer than the title field allows, this error appears when you try to save the node:

PDOException: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'field_inline_images_title' at row 1: INSERT INTO {field_data_field_inline_images} (entity_type, entity_id, revision_id, bundle, delta, language, field_inline_images_fid, field_inline_images_alt, field_inline_images_title) 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, :db_insert_placeholder_8); Array ( [:db_insert_placeholder_0] => node [:db_insert_placeholder_1] => 5 [:db_insert_placeholder_2] => 5 [:db_insert_placeholder_3] => country_profile [:db_insert_placeholder_4] => 0 [:db_insert_placeholder_5] => und [:db_insert_placeholder_6] => 4 [:db_insert_placeholder_7] => [:db_insert_placeholder_8] => The first Habitat homeowner family in Medicine Hat, Alberta: Ximena Tejada is pictured with her children Yendri, 17, Esteban, 9, Jonathan, 12, and the family dog, Max. ) in field_sql_storage_field_storage_write() (line 424 of /var/www/habitat/dev/modules/field/modules/field_sql_storage/field_sql_storage.module).

Can we remove the character limit on the title field when it's being used as the caption, instead? (and perhaps also prevent it being used as an actual title attribute)

Comments

jenlampton’s picture

Status: Active » Postponed
jenlampton’s picture

Status: Postponed » Closed (fixed)

now resolved.

jenlampton’s picture

Issue summary: View changes

make description of error less offensive :)