Hi, I was looking for a solution how to extend the limit of the Title field in Drupal 7 and I found this module. So I put it up to 999 but when saved I get this error:
PDOException: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'title' at row 1: UPDATE {node} SET vid=:db_update_placeholder_0, type=:db_update_placeholder_1, language=:db_update_placeholder_2, title=:db_update_placeholder_3, uid=:db_update_placeholder_4, status=:db_update_placeholder_5, created=:db_update_placeholder_6, changed=:db_update_placeholder_7, comment=:db_update_placeholder_8, promote=:db_update_placeholder_9, sticky=:db_update_placeholder_10, tnid=:db_update_placeholder_11, translate=:db_update_placeholder_12 WHERE (nid = :db_condition_placeholder_0) ; Array ( [:db_update_placeholder_0] => 90 [:db_update_placeholder_1] => faqs [:db_update_placeholder_2] => und [:db_update_placeholder_3] => Here goes the text for the Title field. [:db_update_placeholder_4] => 7 [:db_update_placeholder_5] => 1 [:db_update_placeholder_6] => 1319770616 [:db_update_placeholder_7] => 1319794243 [:db_update_placeholder_8] => 0 [:db_update_placeholder_9] => 0 [:db_update_placeholder_10] => 0 [:db_update_placeholder_11] => 0 [:db_update_placeholder_12] => 0 [:db_condition_placeholder_0] => 90 ) in drupal_write_record() (line 6868 of /includes/common.inc).

Comments

schnitzel’s picture

Status: Active » Needs work

thanks for your report. Drupal itself is not able to save titles longer then 255 chars.
If you need this functionality I would suggest to use http://drupal.org/project/title Module, which allows you to use a Field as a Title and this one should be able to be longer then 255 chars.

But of course, we change the maxlength setting of the node title, which should be prevented, that the user defines more then 255 chars.

schnitzel’s picture

Status: Needs work » Closed (fixed)

fixed in the newest beta1, there is a check that the user cannot enter a maxlength setting for the title bigger then 255.

schnitzel’s picture

Issue summary: View changes

updated