Group label required? + WSOD issue

Created on 5 May 2024, 8 months ago
Updated 19 June 2024, 6 months ago

Problem/Motivation

This is my first time using this module. Installed version 2.0.0-alpha3 on Drupal 10.2.6
I tried to create a Site Setting Type without a Group label, and when I save it gives a WSOD error:

The website encountered an unexpected error. Try again later.

TypeError: reset(): Argument #1 ($array) must be of type array, null given in reset() (line 203 of modules/contrib/site_settings/src/Form/SiteSettingEntityTypeForm.php).

Steps to reproduce

  1. Go to link /admin/structure/site_setting_entity_type
  2. click Add Site Setting Type button
  3. Label field (marked required) --- enter any label
  4. Create a new "Group" label (not marked required) --- leave blank
  5. Click Save button at bottom

Proposed resolution

It seems the resolution here depends whether or not the group label field is intended to be a required field...
from reading the documentation, a group label seemed optional and I didn't think I needed it for my use case...
However, if all site settings types should be part of a group, well then simply rendering that form field as required would fix this issue, since the error clears up when I enter a group label in that field.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States fizcs3 Omaha, Nebraska; USA

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024