Can't save a template if I used long label

Created on 7 March 2023, about 2 years ago

Problem/Motivation

I faced an issue we I tried to create a template and used a long label (> 50 characters).

Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'label' at row 1: INSERT INTO "section_library_template" ("uuid", "langcode", "user_id", "label", "type", "entity_id", "entity_type", "image__target_id", "image__display", "image__description", "created", "changed") 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, :db_insert_placeholder_9, :db_insert_placeholder_10, :db_insert_placeholder_11); Array
(
    [:db_insert_placeholder_0] => 50d6c8cf-860e-4b55-b282-2b799737f554
    [:db_insert_placeholder_1] => en
    [:db_insert_placeholder_2] => 1
    [:db_insert_placeholder_3] => Lorem ipsum dolor sit amet consectetur adipiscing elitrwt
    [:db_insert_placeholder_4] => template
    [:db_insert_placeholder_5] => 1387
    [:db_insert_placeholder_6] => node
    [:db_insert_placeholder_7] => 
    [:db_insert_placeholder_8] => 
    [:db_insert_placeholder_9] => 
    [:db_insert_placeholder_10] => 1678180683
    [:db_insert_placeholder_11] => 1678180683
)

Steps to reproduce

Proposed resolution

I suggest increasing the max length of the label field to 255.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡―πŸ‡΄Jordan Odai Atieh Amman

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024