Created on 2 July 2022, over 2 years ago
Updated 16 February 2023, almost 2 years ago

If you visit a prinable print page (/printable/print) on PHP8.x Drupal creates log entries notifying about the use a deprecated function for libxml_disable_entity_loader().

The Printable module uses the htmlpagedom library at version 1.3. It seems that version 3 is PHP compatible.

Will this module work with versions of htmlpagedom higher than 1.x?

Warning message in logs:

Deprecated function: Function libxml_disable_entity_loader() is deprecated in Wa72\HtmlPageDom\Helpers::getBodyNodeFromHtmlFragment() (line 91 of /code/vendor/wa72/htmlpagedom/src/Helpers.php)

htmlpagedom packagist page: https://packagist.org/packages/wa72/htmlpagedom

Deprecated warning info on php.net: https://www.php.net/manual/en/function.libxml-disable-entity-loader.php

πŸ“Œ Task
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States 3cwebdev

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