Error Trying to access the the config page

Created on 8 May 2024, 7 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

Active

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.71.5 2024