Problem/Motivation

Deprecated function: preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated in Drupal\webform\Element\WebformHtmlEditor::getAllowedTags()

Steps to reproduce

Throws a deprecation warning on preg_split().

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

Wouter Waeytens created an issue. See original summary.

wouter waeytens’s picture

StatusFileSize
new452 bytes
liam morland’s picture

Version: 6.2.0 » 6.2.x-dev
Status: Active » Needs review

This could be the fix, though it would be best to figure out why it is not a string.

cilefen’s picture

It seems like a broken or missing module configuration but I haven’t traced the code.

djkozz’s picture

I am not sure if it is related. But 6.2 update brokes my web site in a shared hosting, because it is not compatible with Drupal 9.5, PHP 8.0 and 10.5.20-MariaDB-cll-lve. So I am stuck with 6.1.

liam morland’s picture

Webform 6.2.x requires PHP 8.1.

shyam_bhatt’s picture

@Wouter Waeytens It's like a similar issue https://www.drupal.org/project/webform/issues/3392954

cilefen’s picture

Status: Needs review » Postponed (maintainer needs more info)

@Wouter Waeytens Can you confirm that repairing webform settings eliminates the deprecation message?

jrockowitz’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)