Skip Navigation

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 Noman 1 year, 6 months ago.

Assigned support staff: Noman.

Author Posts
June 30, 2019 at 1:21 pm #4114241


Hi, there, please kindly check below debug info cause if I press the translate buttons, fatal error page would popup.
Fatal error: Uncaught Error: Call to undefined function mb_ereg_replace_callback() in /var/www/html/wp-content/plugins/wpml-translation-management/classes/xliff/class-wpml-tm-validate-html.php:124 Stack trace: #0 /var/www/html/wp-content/plugins/wpml-translation-management/classes/xliff/class-wpml-tm-validate-html.php(34): WPML_TM_Validate_HTML->hide_wp_bugs('contact us') #1 /var/www/html/wp-content/plugins/wpml-translation-management/classes/xliff/wpml-tm-xliff.php(196): WPML_TM_Validate_HTML->validate('contact us') #2 /var/www/html/wp-content/plugins/wpml-translation-management/classes/xliff/wpml-tm-xliff.php(169): WPML_TM_XLIFF->validate('html', 'contact us') #3 /var/www/html/wp-content/plugins/wpml-translation-management/classes/xliff/wpml-tm-xliff.php(141): WPML_TM_XLIFF->appendData('source', Array, Object(DOMElement)) #4 /var/www/html/wp-content/plugins/wpml-translation-management/classes/xliff/class-wpml-tm-xliff-writer.php(128): WPML_TM_XLIFF->setTranslationUnits(Array) #5 /var/www/html/wp-content/plugins/wpml-tra in /var/www/html/wp-content/plugins/wpml-translation-management/classes/xliff/class-wpml-tm-validate-html.php on line 124
The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.

June 30, 2019 at 2:56 pm #4114293


Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)


Thank you for contacting WPML Support. Could you please follow below steps and let me know how it goes?

- I have noticed that your website’s WP Memory Limit is 40MB. The WP memory limit needs to be increased, it's different than php memory. PHP memory is fine but WordPress uses 40Mb as default in your site. Minimum requirements for WPML are 128Mb:

Please add this to the top of wp-config.php to increase WP memory:

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

- I have noticed that MBString extension is disabled in your site, that is needed for using WPML String Translation plugin, Please ask your hosting support to install and enable mbstring PHP module on your server.
hidden link

- If still issue persists, please check for a possible theme and plugin conflict. To do that you can switch back to any default theme (e.g. Twenty Seventeen theme), Disable all plugins except WPML and see if this issue goes away with default theme and only WPML activated?

Thank you

The topic ‘[Closed] fatal error after using the plugin’ is closed to new replies.