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
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.
Thank you for contacting WPML support. I'd be happy to assist you on this issue.
Could you please go to WPML-> Support ->Troubleshooting and click the below buttons and see if it helps?
+ Clear Cache in WPML
+ Set Language information
+ Fix element types collation
+ Remove ghost entries from the translation tables
+ Assign translation status to duplicated content
If not, To debug this issue further, I would need to check your site settings once, for this I would need temporary access (wp-admin and ftp) to your site.
So could you please provide me with those details, you will find the needed fields for this below the comment area when you log in to leave your next reply. hidden link
Your database shows homeurl and siteurl incorrectly as hidden link, I will need your permissions to change this, please confirm once you have a fresh backup.
Could you please comment it out instead of deleting it outright? Modify the code to:
/* define( ‘WP_HOME’, ‘hidden link . $_SERVER[‘HTTP_HOST’] . ‘/’ );
define( ‘WP_SITEURL’, ‘hidden link . $_SERVER[‘HTTP_HOST’] . ‘/’ );
*/