-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP 8.1 fwrite(): Passing null to parameter #2 ($data) of type string is deprecated in Masterminds\HTML5\Serializer\OutputRules->wr() #254
Comments
Thanks for your report. Can you please provide a stack-trace that is leading up to this error? Thx! |
I am also encountering this issue in Drupal. This is triggered when setting
Here is the stack trace:
|
On further debugging, found some copypasta from a Microsoft source into CKEditor. In my instance, non-standard elements were found in the source. Specifically, these elements wrapping images:
Editing the content, and removing the non-standard HTML, resolved this issue for us. |
This is an error that shows up, using Drupal.
In that case, this method is called:
Html::serialize($dom);
, but $dom->nodeValue is null, and its causing the error.Propose a solution: upcasting
fwrite
function with string:The text was updated successfully, but these errors were encountered: