Skip Navigation

[Resolved] error 502

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

Problem:

I am encountering a 502 error when viewing translated event category archives using WPML. The error occurs even after trying default themes and disabling most plugins. The issue only affects translated event categories.

Solution:

After deactivating all plugins except WPML and Toolset, the 502 error disappears. This suggests that one of the other plugins is causing the issue. You should reactivate plugins one by one to identify the problematic plugin. In this case, deactivating the EWWW and Iubenda plugins resolved the issue. These plugins likely cause a conflict, possibly due to JavaScript errors. Consider using alternatives or reaching out to the plugin developers for support.

Relevant Documentation:

https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 6 replies, has 2 voices.

Last updated by Christopher Amirian 3 months ago.

Assisted by: Christopher Amirian.

Author
Posts
#2769380

Hi, I have a strange problem.
When I view the translation (with wpml) of an archive of an event category of a custom post I get a 502 error.
hidden link

I tried to set a default theme, and to deactivate plugins (except wpml and toolset) but the problem does not resolve.
The problem occurs for all translated event categories.
In the site logs I do not find any strange errors.
What could I check?
thanks
federico

#2769400

Christopher Amirian
Supporter

Languages: English (English )

Hi,

Firstly, I'd appreciate it if you could provide the debug information:

https://toolset.com/faq/provide-debug-information-faster-support/

Then please check if you enable the WordPress debug mode, do you see any sort of error?

Would you please access your website files and edit the "wp-config.php" file on the root folder of your WordPress installation and add the code below into the file:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', true );

Please add the code above the line below:

/* That's all, stop editing! Happy blogging. */

Also, check if both WPML and Toolset plugins are up to date:

- IMPORTANT STEP! Create a backup of your website. Or better approach will be to test this on a copy/staging version of the website to avoid any disruption of a live website.
- Go to "WordPress Dashboard > Plugins > Add new > Commercial (tab)".
- Click the "Check for Updates" button.
- Update WPML and its addons there.
- Do the same for Toolset

For more information:
https://wpml.org/faq/install-wpml/#automated-updates

Finally, check if it is a server related problem as 502 error is a server level error:

hidden link

You can test by copying the website to another server or your local machine.

Thanks.

#2770595

Christopher Amirian
Supporter

Languages: English (English )

Hi,

Thank you for the login information. You did not set the reply to private, I set the reply to private to protect the login information.

What I did was to deactivate all plugins except WPML Multilingual CMS, WPML String Translation, Toolset Types, and Toolset Blocks and the 502 error is not showing anymore.

It seems that one of the plugins you used on your website cause the issue.

You can enable the plugins one by one to see which one is the culprit.

Thank you.

#2770632

yes the problem is due to toolset and wpml. I don't understand why it happens and why only in the custom categories in English.

#2773898

Christopher Amirian
Supporter

Languages: English (English )

Hi, it seems there is a misunderstanding.

I mentioned that the culprit is not Toolset or WPML.

I deactivated all other plugins and actually kept Toolset and WPML activated and the issue is not there.

You can check it here:

hidden link

So there is no 502 error when only WPML and Toolset are used.

Please enable the plugins you use one by one to see which plugin causes the 502 error.

Thanks.

#2773945

yes you are right sorry
in fact by deactivating the ewww and iubenda plugins the categories are visible.
this error is very strange

#2776158

Christopher Amirian
Supporter

Languages: English (English )

Hi,

So it seems that those plugins force an incompatibility and cause a Javascript error with Toolset.

You will need to find an alternative for the plugin in question or contact they support.

Thanks.