Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client was experiencing a deprecation notice related to WPML when trying to update their website. The notice was as follows:

Deprecated: mb_convert_encoding(): Handling HTML entities via mbstring is deprecated; use htmlspecialchars, htmlentities, or mb_encode_numericentity/mb_decode_numericentity instead in /****/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Integrations/Gutenberg/strings-in-block/dom-handler/dom-handle.php on line 32

Solution:
We recommended that the client disable debug mode in WordPress to prevent these warnings from being displayed to visitors. This can be done by editing the wp-config.php file and ensuring it contains the following line:

define( 'WP_DEBUG_DISPLAY', false );

We advised the client to try this solution after taking a backup of their website and to share their feedback with us.

Please note that this solution might be irrelevant due to it being outdated or not applicable to your case. If this is the case, we highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket with us.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 3 replies, has 3 voices.

Last updated by Bigul 1 year, 3 months ago.

Assisted by: Bigul.

Author Posts
February 21, 2024 at 2:13 pm #15328596

Arwut

I am trying to:
Update website

Link to a page where the issue can be seen:
All page on hidden link

I expected to see:

Instead, I got:

February 21, 2024 at 8:40 pm #15330414

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Thank you for contacting WPML support. While you are waiting for one of my colleagues to take this ticket and work on it, let me provide you with first debugging steps or if I can perhaps help with the issue quickly.

Can you please be more specific about the error? Sharing a screenshot of where it appears can help.

Thank you,

February 22, 2024 at 2:25 am #15330943

Arwut

Hi Luca,

Please find attached the error screenshot.

Thank you for your support.
Arwut

tsm.jpg
February 22, 2024 at 3:16 pm #15334355

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hi Arwut,

Thank you for the updates. The following notice is related to WPML. However, it appears to be a compatibility issue, and this deprecation notice has not been reported in the past.

Deprecated: mb_convert_encoding(): Handling HTML entities via mbstring is deprecated; use htmlspecialchars, htmlentities, or mb_encode_numericentity/mb_decode_numericentity instead in /****/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Integrations/Gutenberg/strings-in-block/dom-handler/dom-handle.php on line 32

This notice will not break your site or its functionality. To avoid displaying these unwanted warnings and errors to your visitors, it's best to disable debug mode in WordPress. This is a recommended practice to ensure peace of mind. To do so, edit your wp-config.php file and ensure it includes the following line. Please give it a try after a backup and share your feedback with us.

define( 'WP_DEBUG_DISPLAY', false );

--
Thanks!

Bigul

February 22, 2024 at 3:42 pm #15334563

Arwut

Thank you very much Bigul.
You are the best!