Error Trying to access the the config page

Created on 8 May 2024, about 2 months ago
Updated 9 May 2024, about 2 months ago

When I try to go to the admin configure page for Linked Field (/admin/config/linked_field/config) I get a white screen with this error:
"The website encountered an unexpected error. Try again later."

In the error log I see this message:

TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in count() (line 85 of /app/web/modules/contrib/linked_field/src/Form/ConfigForm.php).

Which is this line:

// Each attribute needs 3 rows + "attributes:" row + 3 extra lines
// for adding a new attribute.
$rows = (count($config->get('attributes')) * 3) + 4;
🐛 Bug report
Status

Needs review

Version

1.5

Component

Code

Created by

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

Comments & Activities

Production build 0.69.0 2024