- First commit to issue fork.
- Status changed to Fixed
over 1 year ago 12:44pm 1 April 2023 Automatically closed - issue fixed for 2 weeks with no activity.
Maximums are adjusted according to scheme
Scheme: iframe/src/Plugin/Field/FieldType/IframeItem.php:87
...
'url' => [
'description' => 'The URL of the iframe.',
'type' => 'varchar',
'length' => 2048,
'not null' => FALSE,
'sortable' => TRUE,
'default' => '',
],
'title' => [
'description' => 'The iframe title text.',
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
'sortable' => TRUE,
'default' => '',
],
....
and widget base: iframe/src/Plugin/Field/FieldWidget/IframeWidgetBase.php:368
...
$element['title'] = [
'#type' => 'textfield',
'#title' => $this->t('Iframe Title'),
'#placeholder' => '',
'#default_value' => $settings['title'],
'#size' => 80,
'#maxlength' => 1024,
'#weight' => 2,
// '#element_validate' => array('text'),
] + $required;
$element['url'] = [
'#type' => 'textfield',
'#title' => $this->t('Iframe URL'),
'#placeholder' => 'https://',
'#default_value' => $settings['url'] ?? '',
'#size' => 80,
'#maxlength' => 1024,
'#weight' => 1,
'#element_validate' => [[$this, 'validateUrl']],
] + $required;
....
this produces the following error
Drupal\Core\Entity\EntityStorageException: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column
Fixed
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Automatically closed - issue fixed for 2 weeks with no activity.