Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 10:00 8:00 – 10:00 8:00 – 13:00 8:00 – 13:00 9:00 – 13:00 -
- 11:00 – 17:00 11:00 – 17:00 14:00 – 17:00 13:00 – 17:00 13:00 – 18:00 -

Supporter timezone: America/New_York (GMT-05:00)

Tagged: 

This topic contains 3 replies, has 0 voices.

Last updated by Lauren 5 months, 2 weeks ago.

Assisted by: Lauren.

Author Posts
August 7, 2025 at 10:04 pm #17304149

Sam

Background of the issue:
I am trying to update the translated web pages for benoitviaudenturologiste.com. I changed it to debug mode and encountered errors when switching languages. The issue can be seen at: hidden link

Symptoms:
I receive the following errors: 'Deprecated: mb_strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/benoitviaudentur/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php on line 154' and 'Warning: Cannot modify header information – headers already sent by (output started at /home/benoitviaudentur/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php:154) in /home/benoitviaudentur/public_html/wp-includes/functions.php on line 7168'.

Questions:
How can I resolve the deprecated mb_strlen() error?
What steps should I take to fix the header information warning?

August 8, 2025 at 7:40 pm #17306221

Lauren
WPML Supporter since 10/2015

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

Thank you for contacting WPML support. I'll be happy to help you with this. Please check in your wp-config.php and see if the debug display is set to true. if so, it should be set to false. It should look like this:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

Also, make sure your WordPress version and PHP version is up to date. While this is not related, I did notice that the WP memory is below the required limit. Please try increasing the WP Memory Limit. Minimum requirements are 128Mb: https://wpml.org/home/minimum-requirements/

You can add this to wp-config.php to increase WP memory:

/** Memory Limit */
define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M' );

Add it above the line /* That's all, stop editing! Happy blogging. */

Once this is done, please follow these steps on the page you tried to edit when you saw this error:
1. Go to WPML -> Translation Management -> Translation Jobs and cancel the in progress job. If there is no in progress job, continue to the next steps.
2. Edit the default page. Make any small change and update the page.
3. Go to WPML -> Translation Management and send this page to the translation basket. Tick the checkbox, scroll down and click translate, then you will see the translation basket tab.
4. Click the translation basket and send the page to yourself as a translator.
5. Go to WPML -> Translations and take and translate the page. Save the translation 100% and then let's see if the correct content shows.

If this does not resolve the issue, please let me know and we can further troubleshoot.

August 17, 2025 at 3:58 pm #17325585

Sam

Hi,
It's still giving the error. I have attached a screesnhot.

unnamed.png
August 18, 2025 at 3:14 pm #17328427

Lauren
WPML Supporter since 10/2015

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

Please take a look at this ticket and review the solution at the top of the page in the yellow box: https://wpml.org/forums/topic/deprecated-mb_strlen-passing-null-to-parameter-1-string-of-type-string-is-deprecated/

If this does not resolve the issue, the next thing we need to test is minimal settings, meaning only WPML plugins active with a default theme, to see if the issue is still happening. This is best tested in a staging site, so as not to affect the live site.

If you don't already have a staging site, you can use something like WP Staging to create one, or often times your hosting provider can set one up. If not, let me know and I can set up a site to migrate a copy of your site to.

The topic ‘[Closed] getting error with WPML Multilingual’ is closed to new replies.