Skip Navigation

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

Problem:
The client is experiencing a 500 Internal Server Error on their multilingual e-commerce site when switching to languages other than the default. The issue is causing the site to go down frequently, and sometimes the layout appears broken. The client attempted to resolve the issue by inserting code into the

functions.php

file based on an outdated WPML errata page, but this did not resolve the problem.

Solution:
We recommend the following steps to troubleshoot and resolve the issue:
1. Verify that the server meets all WPML minimum requirements by checking our documentation: WPML Minimum Requirements.
2. Consult our FAQ for guidance on resolving 500 errors: 500 Error FAQ.
3. Enable WordPress debugging to gather more information about the cause of the 500 errors: Debugging WPML.
4. Test for a compatibility issue with plugins or themes:
- Create a full website backup.
- Disable all plugins except for WPML and its add-ons.
- Check if the issue persists.
- If the issue is resolved, reactivate plugins one by one to identify the culprit.
- If the issue still occurs with non-WPML plugins disabled, switch to a default theme like TwentySeventeen and test again.
Performing these steps in a staging environment is highly recommended.

If these steps do not resolve the issue or if the solution provided here is outdated or not applicable to your case, we highly recommend checking related known issues at WPML 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 assistance, please open a new support ticket: 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 3 replies, has 2 voices.

Last updated by Mihai Apetrei 11 months, 3 weeks ago.

Assisted by: Mihai Apetrei.

Author Posts
February 13, 2024 at 1:32 pm #15297848

pierreM-15

I am trying to: have my site working

Link to a page where the issue can be seen: hidden link

I expected to see: fullwidth sections, like hidden link

Instead, I got: broken page or even error 500

Apparently the the Rewrite is breaking the site and causing 500 error

I tried already to insert code in functions.php at https://wpml.org/errata/htaccess-is-rewritten-with-language-folder/
But this code is from 2017 and is not working for me.

It is e-commerce website, super urgent. Thank you

February 13, 2024 at 1:37 pm #15297856

pierreM-15

Website in NL looks like working but as soon as going to another language it is 80% of the time down with error 500.
Sometimes, page is opening but the layout looks broken...

February 13, 2024 at 2:25 pm #15298129

pierreM-15

I have added the code to functions.php....and changed the htaccess again....it looks like it is not overwriting...will double check after the night

February 13, 2024 at 4:16 pm #15298822

Mihai Apetrei
Supporter

Languages: English (English )

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

Hi there.

Before this ticket gets assigned to my colleagues, I will try to help.

1. Usually, the 500 errors (Internal Server Errors - blank pages) are related to the server configuration or server limitations being reached.

You can check our documentation to see if you meet all the WPML minimum requirements here: https://wpml.org/home/minimum-requirements/

2. Also, please take a look here:
https://wpml.org/faq/500-error

3. You can also activate WordPress debug to find out more about what is actually happening when you receive that 500 error:
https://wpml.org/documentation/support/debugging-wpml/

4. This issue might also be caused by incompatibility or not 100% compatibility between WPML and (at least) one of the active plugins or the active theme.

Can you please try to see if this issue happens even when only the WPML plugins are active and you are using a default WordPress theme?

Please try the following steps so that we can test for a compatibility-related issue:

- create a full website backup

- disable all plugins except WPML and its add-ons

- check if the issue is happening again

- if it's not, reactivate your plugins one by one, checking every time if the issue shows up again so that you can understand which plugin is causing that issue

If the issue happens even with the non-WPML plugins disabled:
- leave all the non-WPML plugins deactivated

- switch to a default theme like TwentySeventeen

- try to recreate the issue now

If you have the chance, it would be best to do this in a staging (testing) environment.

I hope that you will find this information helpful.

Please let us know how things go.

Mihai Apetrei