Express Form Error - Whoops \ Exception \ ErrorException (E_WARNING)

Had an error using the Legacy Form (4543), which is what my site uses, but decided to change to the Express Form and I’m getting a different error.
It happens when I use PHP 8.1.12, it works when I use PHP 7.4.

When I submit a form with and empty select form I get the following:

Whoops \ Exception \ ErrorException (E_WARNING)
Trying to access array offset on value of type null

/updates/concrete-cms-9.1.3/concrete/attributes/select/controller.php
        if (!$akSelectAllowMultipleValues && !$akSelectAllowOtherValues) {
            // select list. Only one option possible. No new options.
            $option = $this->getOptionByID($data['atSelectOptionValue']);   <-- Error on line 250
            if (is_object($option)) {
                return $this->createAttributeValue($option);
            }

Please add this as a bug into GitHub

Thanks @hutman - that’s definitely the right way to go. Here’s a link to where they should submit on Github:

I suppose I should state that I added as a bug to GitHub. This is my first time, so I’m not sure what I should do.

1 Like