Comment form cause PHP warning on strip_tags

Created on 4 January 2024, 12 months ago
Updated 15 September 2024, 3 months ago

Problem/Motivation

The parent issue is also happening with Drupal 9.5 and PHP 8.1. If you choose to not use the comment_body field of the module and you submit a comment, it will cause a PHP warning with an empty strip_tags parameter.

Proposed resolution

At a minimum, we should add a test: !$comment->comment_body->isEmpty() as applied on the parent issue to prevent the warning.

https://git.drupalcode.org/project/drupal/-/merge_requests/5871/diffs#35...

🐛 Bug report
Status

Closed: duplicate

Version

11.0 🔥

Component
Comment 

Last updated about 4 hours ago

Created by

🇫🇷France t.maquin

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024