Skip to content Skip to sidebar

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: 

This topic contains 5 replies, has 2 voices.

Last updated by Andrey 1 year, 10 months ago.

Assisted by: Andrey.

Author Posts
November 2, 2023 at 12:52 pm #14716787

ana-luisaB-2

Hi,

I'm trying to edit a page translation in worpress backoffice, but I keep getting 500 error.
I've look for system requirements and found out that everything matches you requirements.

Can you help me?

November 2, 2023 at 7:19 pm #14720667

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Could you please update your WPML plugin to the latest version 4.6.7 and add-ons to benefit from the latest bug fixes and improvements? This may not necessarily resolve your problem, however, in order to troubleshoot the issue best we need to work on the latest code available.

You can check the latest released versions under "My Account -> Downloads" on this site. Instructions to update can be found here: http://wpml.org/faq/install-wpml/

Please remember to backup your database first before you proceed. You can use a plugin for this if you like (example: http://wordpress.org/plugins/duplicator/)

If the issue persists after an update has been done, you need to activate the debug.log. The 500 error means that there is an error in the PHP code that your site runs. When errors are not caught, the server stops everything and returns a page that says “500 error” or an empty page. Different servers are configured to display these errors slightly differently, but they all mean the same – there is an unhandled PHP error in the site’s code.

First, you need to see what the errors are. Guessing what might be the problem and trying different solutions may lead to even more trouble. The first step is to enable debug. You can do this by adding a few lines to the site’s wp-config.php file. With error log enabled, you will see what the actual problem is.

To enable it, open your wp-config.php file and look for define(‘WP_DEBUG’, false);. Change it to:

define('WP_DEBUG', true);

In order to enable the error logging to a file on the server you need to add yet one more similar line:

define( 'WP_DEBUG_LOG', true );

In this case, the errors will be saved to a debug.log log file inside the /wp-content/directory.

https://wpml.org/documentation/support/debugging-wpml/

Let me know what you see after the debug mode has been enabled.

November 3, 2023 at 2:25 pm #14726475

ana-luisaB-2

Hi Andrey,

I've just updated the WPLM plugin and the problem persists.
I've activated the debug mode and this what I see:

Fatal error: Uncaught Error: Call to undefined function mb_ereg_replace_callback() in /home/casarcom/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/xliff/class-wpml-tm-validate-html.php:124 Stack trace: #0 /home/casarcom/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/xliff/class-wpml-tm-validate-html.php(34): WPML_TM_Validate_HTML->hide_wp_bugs('Casamentos') #1 /home/casarcom/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/xliff/wpml-tm-xliff.php(196): WPML_TM_Validate_HTML->validate('Casamentos') #2 /home/casarcom/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/xliff/wpml-tm-xliff.php(169): WPML_TM_XLIFF->validate('html', 'Casamentos') #3 /home/casarcom/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/xliff/wpml-tm-xliff.php(141): WPML_TM_XLIFF->appendData('source', Array, Object(DOMElement)) #4 /home/casarcom/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/xliff/class-wpml-tm-xliff-writer.php(133): WPML_TM_XLIFF- in /home/casarcom/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/xliff/class-wpml-tm-validate-html.php on line 124
Ocorreu um erro crítico neste site. Por favor, verifique o email de administração do site para obter instruções.

Any clues?
Thanks

November 3, 2023 at 2:51 pm #14726639

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for sharing the information.

It seems like your server is missing the "Multibyte String Extension" which includes "mb_ereg_replace_callback". You can resolve the issue by installing this extension. If you're not sure how to do this, please contact your hosting company for assistance.

Additionally, please make sure that your server meets all the minimum requirements. You can check these requirements by visiting https://wpml.org/home/minimum-requirements/.

November 3, 2023 at 3:12 pm #14726805

ana-luisaB-2

Hi Andrey,

Thank you for your help, just asked my host provider and they have installed the Multibyte String Extension. Now everything is working fine!

November 3, 2023 at 3:15 pm #14726871

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Nice! Have a great weekend ahead 🙂