TypeError: Cannot access offset of type string on string in _label_help_prepend_description()

Created on 13 December 2024, 10 days ago

Problem/Motivation

TypeError: Cannot access offset of type string on string in _label_help_prepend_description() (line 419 of /var/www/html/web/modules/composer/label_help/label_help.module)

Steps to reproduce

In my case:

This issue occurs only in the file upload field in "comment form".

Proposed resolution

if(!is_array($element['#description'])){
$element['#description'] =[];
}

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇮🇳India maniesraj

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

Comments & Activities

Production build 0.71.5 2024