Deprecated function: fwrite(): Passing null to parameter #2 ($data) of type string is deprecated in Masterminds\HTML5\Serializer\OutputRules->wr() (line 454 of /app/vendor/masterminds/html5/src/HTML5/Serializer/OutputRules.php)

Created on 6 September 2024, 3 months ago

Problem/Motivation

Deprecated function: fwrite(): Passing null to parameter #2 ($data) of type string is deprecated in Masterminds\HTML5\Serializer\OutputRules->wr() (line 454 of /app/vendor/masterminds/html5/src/HTML5/Serializer/OutputRules.php)

This error pops up when I open any content as an anonymous user.

This error is related to the Masterminds/html5-php plugin as well. After investigating, the filter process: ckeditor5_premium_features/src/Plugin/Filter/FilterCollaboration.php, in the process method, $dom->nodeValue is null, and the object $dom is passing to HTML::serialize($dom).

I tried to do something like $dom->nodeValue = (string) $dom->nodeValue, but nothing changed. It is not possible to attribute value to nodeValue.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs work

Version

1.3

Component

Plugin: Collaboration

Created by

🇧🇷Brazil jkamizato

Live updates comments and jobs are added and updated live.
  • PHP 8.1

    The issue particularly affects sites running on PHP version 8.1.0 or later.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024