Background of the issue:
I am trying to translate my product using WPML Multilingual CMS, but I encountered a problem. The issue can be seen on this page: hidden link. I expected to see the translated product in /bg/, but instead, I got a white screen and a fatal error. The error details are as follows: An error of type E_ERROR was caused in line 124 of the file /home/daniscoo/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 /home/daniscoo/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/xliff/class-wpml-tm-validate-html.php:124.
Symptoms:
I got a white screen and a fatal error when trying to translate my product. The error message is: Uncaught Error: Call to undefined function mb_ereg_replace_callback() in /home/daniscoo/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/xliff/class-wpml-tm-validate-html.php:124.
Questions:
How can I resolve the fatal error when translating products with WPML?
Is there a compatibility issue with PHP version 8.2.20 and WPML Multilingual CMS version 4.6.13?