Skip Navigation

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

Problem:
The secondary language pages show Internal Server Error with different languages in directories language URL format from WPML >> Languages page.

Solution:
This was a known issue due to some plugins/themes on your site and could be solved by following the workaround from this errata: https://wpml.org/errata/htaccess-is-rewritten-with-language-folder/

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 0 replies, has 1 voice.

Last updated by erezS-3 1 year, 4 months ago.

Assisted by: Noman.

Author Posts
July 25, 2023 at 12:06 pm #14096199

erezS-3

Hi,

Every time I change via the language switcher (In the header) to the German version, it works OK. But when I try to return to English via the language switcher, I ALWAYS get a 500 error (See attached image). The only way to get rid of it is to reload the homepage and navigate back.

I prefer to handle it as a ticket rather than a chat unless you believe you have a quick fix for that.

Thanks

July 25, 2023 at 12:51 pm #14096571

erezS-3

The function.php code did the trick.