Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
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
Comment | File | Size | Author |
---|---|---|---|
#2 | compatibility_preg_split-3398760.patch | 452 bytes | wouter waeytens |
Comments
Comment #2
wouter waeytens CreditAttribution: wouter waeytens commentedComment #3
liam morlandThis could be the fix, though it would be best to figure out why it is not a string.
Comment #4
cilefen CreditAttribution: cilefen as a volunteer commentedIt seems like a broken or missing module configuration but I haven’t traced the code.
Comment #5
djkozzI 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.
Comment #6
liam morlandWebform 6.2.x requires PHP 8.1.
Comment #7
shyam_bhatt@Wouter Waeytens It's like a similar issue https://www.drupal.org/project/webform/issues/3392954
Comment #8
cilefen CreditAttribution: cilefen as a volunteer commented@Wouter Waeytens Can you confirm that repairing webform settings eliminates the deprecation message?
Comment #9
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commented