Skip to content Skip to sidebar

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

Problem:
If you're experiencing issues where your site defaults to English and does not switch back from Arabic correctly, the problem might be related to your site's configuration.
Solution:
We recommend checking your

wp-config.php

file for the following lines:

define( 'WP_HOME', 'https://' . $_SERVER['HTTP_HOST'] . '/' );
define( 'WP_SITEURL', 'https://' . $_SERVER['HTTP_HOST'] . '/' );

Please remove these lines and see if that resolves the issue. This adjustment should help in correctly switching the languages on your site.

Keep in mind that this solution might be outdated or not applicable to your specific 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. If the problem persists, please open a new support ticket.

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

Last updated by minZ-2 1 week, 6 days ago.

Assisted by: Shekhar Bhandari.

Author Posts
March 13, 2026 at 8:13 am #17894610

minZ-2

Please hold on, our technical staff is currently handling this.

March 13, 2026 at 8:24 am #17894627

minZ-2

Is the modification shown in the screenshot correct?

1234.png
March 13, 2026 at 8:25 am #17894643

minZ-2

If there are any errors, please let me know what should be changed.

March 13, 2026 at 8:27 am #17894647

minZ-2

Our technical team has resolved the issue through this modification. The page switcher now functions properly. Thank you.