This thread is resolved. Here is a description of the problem and solution.
Problem:
The site shows a critical error when sending a page to translation.
Solution:
If you're experiencing a critical error when sending a page to translation, we recommend you check if the "Multibyte String" PHP extension is enabled on your server. This extension is necessary for the WPML plugin to function correctly. You can find the minimum requirements for WPML here: https://wpml.org/home/minimum-requirements/.
Please contact your hosting support and request that they enable the "Multibyte String" PHP extension. For more information about this extension, visit: https://www.php.net/manual/en/book.mbstring.php.
After the extension is enabled, the error should no longer occur.
Please note that this solution might be irrelevant if it's outdated or not applicable to your case. If after checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins, the problem persists, we highly recommend you open a new support ticket. If you need further assistance, please contact us in the WPML support 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.
Tagged: Exception
This topic contains 16 replies, has 2 voices.
Last updated by Lauren 8 months, 2 weeks ago.
Assisted by: Lauren.
Author | Posts |
---|---|
April 9, 2024 at 1:24 pm #15499380 | |
bhavani-shankarS-2 |
The site shows a critical error when sending a page to translation |
April 9, 2024 at 1:53 pm #15499549 | |
Lauren Supporter
Languages: English (English ) Timezone: America/New_York (GMT-05:00) |
Once you have the file management plugin installed, please enable the debug log and see if there are any errors we can locate. To enable it, open your wp-config.php file and look for define('WP_DEBUG', false); Change it to: define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false ); In this case the errors will be saved to a debug.log log file inside the /wp-content/directory. The wp-config.php is located in your WordPress root directory. It’s the same file where the database configuration settings are. You will have to access it by FTP or SFTP in order to edit it. /* That's all, stop editing! Happy blogging. */ Please note that you’ll see everything, not only related to our Plugins. This will most likely include messages from other plugins, your theme, and sometimes even WordPress core. The messages appear all over the place. DOC: After enabling the debug mode, please try to replicate the issue. Navigate to the page where the error message being displayed. The errors will be either displayed on the screen or logged in the debug.log log file inside the /wp-content/directory. Paste the latest lines here. No need to paste the entire log file, just 50 lines or so will do. Please censor any sensitive information. |
April 15, 2024 at 10:16 am #15518965 | |
bhavani-shankarS-2 |
Hi Lauren, Can you please suggest me which file management plugin needs to be installed? Regards |
April 15, 2024 at 1:55 pm #15520523 | |
Lauren Supporter
Languages: English (English ) Timezone: America/New_York (GMT-05:00) |
This one will work find: https://wordpress.org/plugins/wp-file-manager/ |
April 15, 2024 at 2:52 pm #15520907 | |
bhavani-shankarS-2 |
Hi Lauren, because of security reason, we don't want to use file manager plugin. we made changes the below suggestions, but still facing the issues. To enable it, open your wp-config.php file and look for 1 1 |
April 15, 2024 at 8:22 pm #15521883 | |
Lauren Supporter
Languages: English (English ) Timezone: America/New_York (GMT-05:00) |
After trying to send the product to translation and getting the error again, please check the debug.log in wp-content folder and let me know what errors you see there. |
April 16, 2024 at 7:33 am #15522828 | |
bhavani-shankarS-2 |
Hi Luren, getting this Stack trace: |
April 16, 2024 at 12:15 pm #15525060 | |
bhavani-shankarS-2 |
Hi Lauren, Can you please help me with the next steps. Regards |
April 16, 2024 at 1:37 pm #15525798 | |
Lauren Supporter
Languages: English (English ) Timezone: America/New_York (GMT-05:00) |
That does not look like a full error, can you share a link to the debug log, or a copy of it? You can upload it to Google Drive or Drop box and share the link here. If no fatal errors are showing in the debug log, then the next thing to test will be minimal settings, meaning only WPML active with a default theme, and test to see if the same issue is happening. Do you have a staging site where we would be able to test that? If not, I can set one up and you can migrate your site there. |
April 17, 2024 at 8:52 am #15530309 | |
bhavani-shankarS-2 |
Hi Lauren, here is the code [10-Apr-2024 10:34:23 UTC] PHP Fatal error: Uncaught Error: Call to undefined function mb_ereg_replace_callback() in /var/www/html/wp-content/plugins/sitepress-multilingual-cms/classes/xliff/class-wpml-tm-validate-html.php:124 |
April 18, 2024 at 7:36 am #15535770 | |
bhavani-shankarS-2 |
Hi Lauren, Can you please take us to the next steps. Regards |
April 18, 2024 at 2:33 pm #15539631 | |
bhavani-shankarS-2 |
Hi Lauren, I'm still waiting for your response. Regards |
April 18, 2024 at 6:15 pm #15540561 | |
Lauren Supporter
Languages: English (English ) Timezone: America/New_York (GMT-05:00) |
This error happens when the "Multibyte String" PHP extension is not enabled by your server, which is necessary for the WPML plugin to work properly: https://wpml.org/home/minimum-requirements/ So please contact your hosting support and ask them to enable it on your site. Here is some information about it: hidden link Once this is enabled, the error should be resolved. |
April 22, 2024 at 2:25 pm #15551294 | |
bhavani-shankarS-2 |
Hi Lauren, Happy Monday. Issues Resolved but there are lot of things which we need to discuss here. Regards, |
April 22, 2024 at 2:34 pm #15551417 | |
Lauren Supporter
Languages: English (English ) Timezone: America/New_York (GMT-05:00) |
Glad the original issue is now resolved. We do not offer phone or video support, but you are welcome to open up a new chat for the issue you are experiencing and our team will be happy to help. As the original issue is resolved, please mark this ticket as resolved and we can continue in the next chat. Thanks for your understanding. |