php 8.2+ deprecated function: mb_convert_encoding(): Handling HTML entities via mbstring is deprecated

Created on 30 January 2025, 2 months ago

Problem/Motivation

Once I updated my server to php 8.3, the warning below showed up:

Deprecated function: mb_convert_encoding(): Handling HTML entities via mbstring is deprecated; use htmlspecialchars, htmlentities, or mb_encode_numericentity/mb_decode_numericentity instead in print_pdf_dompdf_print_pdf_generate() (line 139 of sites/all/modules/contrib/print/print_pdf/lib_handlers/print_pdf_dompdf/print_pdf_dompdf.pages.inc).

Steps to reproduce

1. Generate a PDF file
2. Refresh the page or navigate to another page.
3. The error message will be displayed.

Proposed resolution

Patch attached

Remaining tasks

n/a

User interface changes

n/a

API changes

n/a

Data model changes

n/a

Please note that I am not proficient in creating patches, therefore please correct if something is off.

Thank you!

πŸ› Bug report
Status

Needs review

Version

2.5

Component

Code

Created by

πŸ‡·πŸ‡΄Romania lucian.ilea

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

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

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024