Skip to content Skip to sidebar

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

Problem:
The client is experiencing a '502 Bad Gateway' error and long loading times when trying to access the WPML Translation Dashboard after enabling automatic translation on a development site using the Consalt theme and Elementor.
Solution:
1. Increase the PHP Memory Limit to at least 256MB, preferably to 512MB. This adjustment can be made in the

wp-config.php

file or through the hosting provider's settings.
2. Temporarily pause automatic translation to reduce server load and attempt to access the dashboard.
3. If the issue persists, downgrade the PHP version to v8.1 or v8.2, update any outdated plugins or themes, and flush any existing cache.
4. Deactivate all plugins, including WPML ones, and switch to a default WordPress theme like Twenty Twenty. Then, insert the following code in the

functions.php

file of the active theme:

function wpmlsupp_1891_fix_missing_icl_tables() {<br />    if( function_exists( 'icl_sitepress_activate' ) )<br />        icl_sitepress_activate();<br />}<br />add_action( 'wp_footer', 'wpmlsupp_1891_fix_missing_icl_tables' );

5. After visiting the front page and allowing it to fully load, remove the code from

functions.php

. Reactivate the theme and plugins one by one to identify the culprit if the issue is resolved.
6. If problems continue, enable WordPress debug mode to identify any specific errors.

If these steps do not resolve the issue or if the solution seems outdated or irrelevant to your case, 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. Should the problem persist, please open a new support ticket at WPML support forum for further assistance.

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 9 replies, has 0 voices.

Last updated by Carlos Rojas 2 days, 23 hours ago.

Assisted by: Carlos Rojas.

Author Posts
October 12, 2025 at 4:30 am #17476987

qinglinW

Background of the issue:
I am working on a site under development and have enabled automatic translation using WPML. I expected the translation to be completed by now.

Symptoms:
When I click on 'wpml---translation dashboard', the page loads for a long time and then displays '502 bad gateway'. Restarting the server did not resolve the issue.

Questions:
Why am I seeing a '502 bad gateway' error when accessing the WPML translation dashboard?
What steps can I take to resolve the long loading time and error message?

October 13, 2025 at 10:54 am #17479208

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hello,
My name is Carlos, and I will continue working on this ticket

Please follow these steps:
- Create a full site backup
- Ask your hosting providers to downgrade the PHP version to v8.1 or v8.2
- Update any outdated plugins or themes
- Flush any cache memory that might exist
- Deactivate all plugins, including the WPML ones
- Activate a default WordPress theme, like Twenty Twenty
- Paste this code in the functions.php file located in the active theme folder:

function wpmlsupp_1891_fix_missing_icl_tables() {
    if( function_exists( 'icl_sitepress_activate' ) )
        icl_sitepress_activate();
}
add_action( 'wp_footer', 'wpmlsupp_1891_fix_missing_icl_tables' ); 

- Visit the front page and wait for it to fully load
- Remove the code you just pasted in the functions.php file
- If the issue disappeared, start by activating the theme and then the rest of the plugins, one by one, until the issue appears again and you find the culprit
- If the issue persists, then activate the WordPress debug mode as described in this guide: https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/ -> Reproduce the error -> Share any fatal error that might appear in the debug.log file located within the wp-content folder

Can you tell me the results of the steps described above?

October 13, 2025 at 11:23 am #17479385

qinglinW

Can I provide my WP-admin account and FTP to help me set it up?

October 13, 2025 at 11:33 am #17479423

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hi,

I'm sorry, I don't understand your question. Can you elaborate a little more?

October 14, 2025 at 4:04 am #17481769

qinglinW

The problem still exists. I Can provide the backend password and FTP account password? Can you help me log in and check?

October 14, 2025 at 10:20 am #17483028

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Sure!

Please share the access credentials to the site in your next message, which I have set private. This will allow me to apply the workaround, reproduce the issue, and double-check the configuration.

Confirm you have created a full site backup that you can restore if necessary.

October 14, 2025 at 12:41 pm #17483896

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Thank you for sharing the credentials requested.

1.- Confirm you have created a full site backup that you can restore if necessary.

2.- Update all outdated plugins that appear in this link: hidden link

Looking forward to your message.

October 14, 2025 at 3:08 pm #17484625

qinglinW

I have backed it up and upgraded everything

October 15, 2025 at 10:34 am #17486604

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hi there,
Thank you for your message

I have run the steps described in my previous message (https://wpml.org/forums/topic/when-i-click-on-wpml-translation-dashboard-the-page-will-load-for-a-long-time-and-then-displa/#post-17479208) and now the WPML -> Translation Dashboard page loads correctly.

Can you confirm that the issue is solved?

October 16, 2025 at 4:34 am #17488649

qinglinW

thanks

October 16, 2025 at 7:58 am #17489043

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

You are welcome!

Please don't hesitate to contact us if you need our help in the future with WPML.
Have an excellent day 🙂