Created on 10 February 2012, almost 13 years ago
Updated 17 October 2024, 2 months ago

When entering a custom token that has a long name, this error appears:

PDOException: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'name' at row 1: INSERT INTO {token_custom} (machine_name, name, description, type, php_content) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4); Array ( [:db_insert_placeholder_0] => pdoexception-sqlstate-22001-stri [:db_insert_placeholder_1] => PDOException: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'name' at row 1: INSERT INTO {token_c [:db_insert_placeholder_2] => sdsd [:db_insert_placeholder_3] => custom [:db_insert_placeholder_4] => dd ) in drupal_write_record() (line 6888 of /var/aegir/platforms/dev/theaim-base_01_beta2/includes/common.inc).

You do not get this error when you enter a shorter Token name.

🐛 Bug report
Status

Fixed

Version

1.1

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

No activities found.

Production build 0.71.5 2024