Resolved

Reported for: WPML Multilingual CMS 3.2.7

Symptoms

You can stumble upon some issues with logging in and out from your website if you are using “a different domain per language” setting. The issues appear when trying to log in using a secondary domain URL.

By default, you are supposed to log in using the main domain only. We implemented a logic where you are redirected to the main domain login form if you try to login using a secondary domain URL. However, we discovered some glitches in our code that we are working on to make this logic free of bugs.

There are two kinds of issues you can experience that appear when you try to log in using a secondary domain URL:

  1. If you try to log in using a secondary domain URL like http://secondary-domain.com/wp-admin, you will be redirected to the main domain login form, but you will be unable to log in due to a redirection loop.
  2. If you log into your website using a secondary domain URL like http://secondary-domain.com/wp-login.php, you will be unable to log out from the secondary domain.

Workaround

Always make sure to log into your website using the main domain URL like http://main-domain.com/wp-admin.

If you cannot log out from the secondary domain, clear your browser’s cache and remove the WPML cookie. You should then be logged out.

6 Responses to “Issues with logging into a website with multiple domains”

  1. Hello,
    for me the problem also popped up after the two domain login had worked fine for a while, using the “login automatically for two domains”.

    Now all seems screwed up. I cannot translate an article any longer since I am asked to login into the second language – which should be done automatically.

    At the moment I am not able to add or work on any on my secondary language content.

    Thank you.

    • Hello Sabine,

      We noticed that some users may have issues with the “Auto sign-in and sign-out users from all domains” option on specific installations. We will release a new WPML version really soon (if everything goes as planned, it will be released this week). It should include the fixes for the issue.
      If you still have the issue with the new version (WPML 3.7), please report it on our Support Forum and we will take care of your issue individually. You can find our forum at https://wpml.org/forums/forum/english-support/

      For now, please disable the “”Auto sign-in and sign-out users from all domains” options.