When adding a link field to an entity and set the field to allow more then 1 value it breaks the site with WSOD when it tries to render the form

Created on 19 December 2023, 9 months ago
Updated 22 January 2024, 8 months ago

Problem/Motivation

When adding a link field to an entity and set the field to allow more then 1 value it breaks the site with WSOD when it tries to render the form. The following error is thrown in the logs:

TypeError: strlen(): Argument #1 ($string) must be of type string, array given in strlen() (line 396 of .../web/core/lib/Drupal/Component/Utility/Unicode.php).

Steps to reproduce

Add link field to any entity and set number of allowed values to more than one. When trying to access the form the site breaks throwing the error stated above. backtrace suggests that error is thrown when the twig engine is trying to render a table for the multiple value form.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Postponed: needs info

Version

10.2 ✨

Component
LinkΒ  β†’

Last updated 3 days ago

Created by

πŸ‡§πŸ‡ͺBelgium Dasm2000

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

Comments & Activities

Production build 0.71.5 2024