Home›Support›English Support›[Resolved] Urgent Help Needed: WPML Plugin Issue After Moving to Production Domain
[Resolved] Urgent Help Needed: WPML Plugin Issue After Moving to Production Domain
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing errors when attempting to add translations to a page or a post after migrating their website to a production domain. The debug log file shows the following error:
PHP Fatal error: 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: We have identified that the 'Multibyte String' PHP extension is not enabled on the client's server, which is necessary for WPML to function correctly. We recommend contacting the hosting provider to enable this extension. For more details on the 'Multibyte String' PHP extension, please visit WPML's minimum requirements and the PHP manual.
If this solution does not apply to your case, or if it is outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please open a new support ticket in our forum.
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.
I hope this message finds you well. I am reaching out to request assistance with an issue I've encountered with the WPML Multilingual CMS plugin on my website (hidden link).
While the plugin worked seamlessly on our development server, we've run into problems after migrating to our production domain. Specifically, we are experiencing errors when attempting to add translations to a page or a post. This issue has significantly impacted our ability to manage and update multilingual content on our website.
Before this ticket gets assigned to my colleagues, can you please elaborate a bit more on this matter?
Can you please explain what you are trying to accomplish, what are the exact steps that you are taking, what is not working and how would you expect to see things happening? Do you see any error messages? And if you do see error messages, can you please send us a copy of those?
When i try to add the translation of a page for example, i get the error from the uploaded image.
this is the mail i get automatically when the error shows:
"Howdy!
WordPress has a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.
In this case, WordPress caught an error with one of your plugins, WPML Multilingual CMS.
First, visit your website (hidden link) and check for any visible issues. Next, visit the page where the error was caught (hidden link) and check for any visible issues. "
i tried to deactivate and even to delete the plugins: WPML Multilingual CMS and WPML String Translation. but still the same issue.
To enable it, open your wp-config.php file and look for:
define('WP_DEBUG', false);
And change it to:
define('WP_DEBUG', true);
// Enable Debug logging to the /wp-content/debug.log file
define('WP_DEBUG_LOG', true);
// Disable display of errors and warnings which is recommended on a live site.
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors',0);
Then try to reproduce the issue by translating a page and check if any errors were saved to the debug.log log file inside the /wp-content/ directory.
If you can paste your debug.log to https://pastebin.com/ and provide me that link, it would be great!
[28-Feb-2024 12:24:04 UTC] PHP Fatal error: 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
Please contact the hosting provider and ask them to enable it on your site. Kindly check this link for more details: hidden link
Kind regards,
Mohamed
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.