Warning: Trying to access array offset on value of type bool in Drupal\abtestui\Form\ABTestForm->buildForm() (line 195

Created on 25 April 2022, almost 3 years ago
Updated 19 July 2023, over 1 year ago

Problem/Motivation

After installing the module I am getting the following error when visiting /admin/config/user-interface/ab_test/add

Warning: Trying to access array offset on value of type bool in Drupal\abtestui\Form\ABTestForm->buildForm() (line 195 of modules/contrib/abtestui/src/Form/ABTestForm.php).
Drupal\abtestui\Form\ABTestForm->buildForm(Array, Object, NULL)
call_user_func_array(Array, Array) (Line: 531)

Steps to reproduce

  1. install module
  2. go to /admin/config/user-interface/ab_test/add
  3. Error message should be displayed

Proposed resolution

Looks like the form value needs to be checked if it is empty.

Remaining tasks

  1. Submit patch/PR

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Needs review

Version

1.1

Component

Code

Created by

🇺🇸United States pcate

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024