utf8_encode() deprecation notice

Created on 18 August 2023, over 1 year ago
Updated 6 December 2023, about 1 year ago

Problem/Motivation

An error is thrown when visiting ~/admin/config/media/exif/sample

Deprecated function: Function utf8_encode() is deprecated in Drupal\exif\ExifPHPExtension->reformat() (line 387 of modules/contrib/exif/src/ExifPHPExtension.php).
Drupal\exif\ExifPHPExtension->reformat(Array) (Line: 138)

Steps to reproduce

Visit the url above to see the error.

Proposed resolution

Attached is a patch replacing all instances of the deprecated utf8_encode() function with the replacement mb_convert_encoding() function.

🐛 Bug report
Status

Fixed

Version

2.4

Component

Code

Created by

🇺🇸United States peachez

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

Comments & Activities

Production build 0.71.5 2024