Trying to access array offset on value of type null in Drupal\paragraph_group\Paragroup\ParagroupFormData->getCurrentWidget() (line 195 of /var/www/html/htdocs/modules/contrib/paragraph_group/src/Paragroup/ParagroupFormData.php

Created on 15 August 2024, about 1 year ago

Problem/Motivation

On initial install of module with composer, I enabled the module and tried to go to the configuration page, which then threw the error.

Steps to reproduce

  1. Install module with Composer
  2. Enable module
  3. Click on "Configure module"
  4. Enjoy WSOD

Proposed resolution

The resolution is a one character fix. I just added a "?" right before the call to the render function in line 195 below:

$current_widget_label = $defs[$current_widget]['label']?->render();

Remaining tasks

Still need to create a patch.

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States pamelalies Minneapolis area

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

Comments & Activities

Production build 0.71.5 2024