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.
If you attempt to clone a search page with a label longer than 23 characters, you get an SQL error message:
PDOException: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'label' at row 1: INSERT INTO {apachesolr_search_page} (page_id, label, description, env_id, search_path, page_title, settings) VALUES ...
This is because the length of the field in the database table is 32 characters, and the clone function is appending " [cloned]" to the existing label, regardless of the existing label's length.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2614666-cloning_search_page_length-02.patch | 729 bytes | nicrodgers |
Comments
Comment #2
nicrodgersAttached patch to trim the cloned label to 32 characters where necessary.
Comment #3
nicrodgersComment #4
jgrubb CreditAttribution: jgrubb as a volunteer commentedComment #5
nicrodgersUnassigning, after 7 months of inactivity.
Comment #7
jgrubb CreditAttribution: jgrubb as a volunteer commented