Skip Navigation

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

Problem:
When trying to translate products with WooCommerce Multilingual, the following error appears:

An error of type E_ERROR was caused in line 124 of the file ......./wp-content/plugins/sitepress-multilingual-cms/classes/xliff/class-wpml-tm-validate-html.php
Error message: Uncaught Error: Call to undefined function mb_ereg_replace_callback() in ......./wp-content/plugins/sitepress-multilingual-cms/classes/xliff/class-wpml-tm-validate-html.php:124

Solution:
The 'Multibyte String' PHP extension was not being enabled on the server. We recommend that you contact your hosting support and ask them to enable the 'Multibyte String' PHP extension. This extension is necessary for WPML to work properly. Please check the WPML’s Minimum Requirements.
For more information on the 'Multibyte String' PHP extension, you can visit the PHP manual at https://www.php.net/manual/en/book.mbstring.php.
If this solution doesn't look relevant, please open a new support ticket in our forum at https://wpml.org/forums/forum/english-support/.

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.

This topic contains 1 reply, has 2 voices.

Last updated by Mohamed Sayed 11 months ago.

Assisted by: Mohamed Sayed.

Author Posts
January 17, 2024 at 3:14 pm #15195693

artakG

I am trying to translate the products with woocommerce multilingual. But I get the error "There has been a critical error on this website. Please check your site admin email inbox for instructions."

I receive the following error in the mail.

"Error Details:
==============
An error of type E_ERROR was caused in line 124 of the file /home5/maatandco/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/xliff/class-wpml-tm-validate-html.php. Error message: Uncaught Error: Call to undefined function mb_ereg_replace_callback() in /home5/maatandco/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/xliff/class-wpml-tm-validate-html.php:124
Stack trace:
#0 /home5/maatandco/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/xliff/class-wpml-tm-validate-html.php(34). WPML_TM_Validate_HTML->hide_wp_bugs('Home')
#1 /home5/maatandco/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/xliff/wpml-tm-xliff.php(196). WPML_TM_Validate_HTML->validate('Home')
#2 /home5/maatandco/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/xliff/wpml-tm-xliff.php(169). WPML_TM_XLIFF->validate('html', 'Home')
#3 /home5/maatandco/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/xliff/wpml-tm-xliff.php(141). WPML_TM_XLIFF->appendData('source', Array, Object(DOMElement))
#4 /home5/maatandco/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/xliff/class-wpml-tm-xliff-writer.php(133). WPML_TM_XLIFF->setTr
"

January 17, 2024 at 8:45 pm #15197139

Mohamed Sayed

Hi there,
Thanks for contacting WPML support.

It seems that the "Multibyte String" PHP extension is not enabled on your server, which is necessary for the WPML to work properly: https://wpml.org/home/minimum-requirements/

Please contact your hosting support and ask them to enable it on your site. More info: hidden link

Let me know please if that helps.

Kind regards,
Mohamed

January 19, 2024 at 11:03 am #15204285

artakG

Thank you, the problem is solved.