Can no longer add a field in a webform

Created on 14 February 2024, 9 months ago

Problem/Motivation

When using latest 2.0.2 version or the dev version, I can no longer add a field to a Webform.
The error shown in console is:
TypeError: substr(): Argument #1 ($string) must be of type string, int given in substr() (line 44 of modules/contrib/media_contextual_crop_iwc_adapter/media_contextual_crop_iwc_adapter.module)

Proposed resolution

In media_contextual_crop_iwc_adapter/media_contextual_crop_iwc_adapter.module, line 44, change this line:
if (substr($item_key, 0, 1) != '#') {
to:
if (substr((string)$item_key, 0, 1) != '#') {

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇧🇪Belgium flyke

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

Comments & Activities

Production build 0.71.5 2024