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

The user was having an issue with the plugin, when he switched to the secondary language in the admin top bar, the logout link does not work anymore and only redirects to the homepage without logging out the user.
It is a compatibility issue and we could solve it by patching the plugin. The patch is changing or commenting line 151 of the same file "/classes/plugin.php" with the following.

return $this->user_trailingslashit( site_url( '/', $scheme ) . $this->new_login_slug() );

0% of people find this useful.

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 18 replies, has 3 voices.

Last updated by giulieteA 1 year, 1 month ago.

Assigned support staff: Jamal.

Author Posts
May 13, 2019 at 11:35 pm #3802169


Hi Jamal,

It works, thank you for you super effort!!!
I really appreciate it, thank you!!!


May 14, 2019 at 9:36 am #3805225


Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

Hi Susan,

Thank you for your feedback. Can you please mark this forum ticket as resolved.

Have a great week.

May 14, 2019 at 9:54 am #3805559


My issue is resolved now. Thank you Jamal!

August 23, 2019 at 9:27 am #4445649


Ok, solve