Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
After translating a page and selecting the language in the WordPress bar under WPML, you encounter a 500 error and cannot access the language configurations to add, remove, or edit.
Solution:
To resolve this issue, we recommend enabling debugging to identify the underlying problem. Here are the steps to enable debugging:
1. Open your site's

wp-config.php

file.
2. Locate the line

define('WP_DEBUG', false);

and change it to:

define('WP_DEBUG', true);

3. To log errors to a file, add the following line:

define('WP_DEBUG_LOG', true);

This will save the errors to a debug.log file inside the /wp-content/ directory.
For more detailed instructions on debugging WPML, visit https://wpml.org/documentation/support/debugging-wpml/
After enabling debugging, please check the debug.log for errors and share them with us for further assistance.

If this solution does not apply to your situation, or if it seems 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 help, please open a new support ticket at 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: 

This topic contains 1 reply, has 0 voices.

Last updated by Andrey 2 months ago.

Assisted by: Andrey.

Author Posts
May 14, 2025 at 2:03 pm #17032837

victorB-30

Hi,

Thank you for your help.

I have made the changes and it seemed to have worked.

but now after translating a page into on the the countries I get a 500 error if I select the laguages in the wordpress bar under WPML.

It does not let me access the languages configurations to add/remove or edit.

thank you

May 14, 2025 at 2:06 pm #17032845

Andrey
WPML Supporter since 06/2013

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

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

Please upload any relevant screenshots that would help illustrate the problem. I want to ensure that I fully understand the issue at hand so that I can provide the best possible solution.

We need to find out what is behind the 500 error. The first step is to enable debugging. You can add a few lines to the site’s wp-config.php file. With the error log enabled, you will see the actual problem.

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

define('WP_DEBUG', true);

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 );

The errors will be saved to a debug.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.

I've enabled debug information for this support ticket. Please refer to this link for instructions on how to retrieve this information from your site and provide it to us: http://wpml.org/faq/provide-debug-information-faster-support/