Domain Mapping - Severe User Login Issues

Since I updated Domain Mapping a couple of weeks ago we have had tremendous issues with users unable to login and getting stuck in a loop. In order to resolve and allow people back into the main site we temporarily disabled it. STILL no one could log in until we realized they needed to delete their cookies.

After doing this they could get into the system however we don't know how many customers we may have lost to this issue.

We have tried re-activating and have now been greeted with the same problem however our users don't understand they need to delete their cookies and are getting stuck in a login loop.

I think I read somewhere about resetting the SALT keys in the config file? Is this something I can do to force all users to download new cookies and resolve this issue?

Thanks for your help.

  • Rupok

    Hi CS_Team,

    Just to make sure we are on the same page, let me describe what I understood. Please confirm if I'm missing something.

    You updated Domain Mapping > Users were having issue with login > You temporarily disabled it > Then you found out that deleting cookies help > You reactivated it > Again users having the same problem.

    I'm clear up to this point. Now can you please make sure, when Domain Mapping is activated again, users can login after clearing cookies? I mean clearing cookies help your users to login with updated and activated Domain Mapping? If yes, then your query is what you can do to force all users to download new cookies and resolve this issue, right?

    In that case, resetting SALT keys in config might help indeed. I just searched for you and found this:

    Updating your keys & salts will force all logged in users to log in again, because changing them automatically invalidates the login of any user logged in to the site. For example, if you have any suspicions of trouble, updating your keys and salts will force the logout and reauthentication of all user logins. If someone with higher-level access to your site accidentally clicks “remember me” in their browser (say on a public computer), no unauthorized user will be able to gain access to the site due to information stored in the same browser.

    Source: https://ithemes.com/2015/01/21/easily-change-wordpress-security-keys-salts-ithemes-security-plugin/

    That means new SALT will force the logout and reauthentication because previous authentication cookies will be invalidated. I think this might help. Can you please try this and let us know how it goes? For regenerating new SALT keys, you can use this official generator: https://api.wordpress.org/secret-key/1.1/salt/

    There are other ways of clearing cookies. Here are some references that might help you:
    http://stackoverflow.com/a/3794564/2808424
    https://codex.wordpress.org/Function_Reference/wp_clear_auth_cookie

    Please let us know if you have any confusion or if you are stuck at any point. We will be glad to assist further.

    Have a nice day. Cheers!
    Rupok

  • CS_Team

    Hi Rupok

    I know this is a very old post but I must confess I haven't turned it back on and instead have taken the drastic action to start separating some of the sites from the network. This saves future conflict issues arriving and although requires admins to log in individually across the network not all sites allow user login so the user will be unaffected.

    However I wanted to ask another question relating to this one if thats ok. I am looking to take whats left of the network SSL but one site at a time. If I remember correctly was there an option within the domain mapping plugin to make each site SSL? Is this right?

    If it is right I would like to turn it back on not to map any domains but just to use this feature, can this be done and if so when I reactivate will it remember my old settings as I DO NOT want it to I would like it to turn on as if it had never been installed before.

  • Lindeni Mahlalela

    Hello CS_Team

    I hope you are doing great today. I am sorry you had to go through the hard rout of separating the sites, it does not seem like an easy task.

    Domain Mapping plugin allows to switch between http and https for mapped domains. You have to map the domain in order to use this feature. If you want domains to default to https, you can achieve that by editing the site url, go to "Network Admin > Sites", hover your mouse over a site name and click on edit on the menu that appears, on the site editor page, you should set the "Site Address (URL)" under "Info" tab to https:// and also "Siteurl" and "Home" under "Settings". Like so

    I you activate domain mapping plugin, it will remember and load its old settings. If you want a fresh install, you will have to login to your database using either PhpMyAdmin or another database tool and from there you will have to find and delete the tables 'prefix_domain_mapping' and 'domain_mapping_reseller_log' the tables should be something like 'wp_domain_mapping' and 'wp_domain_mapping_reseller_log'.

    After deleting that, go to 'wp_sitemeta' table, find 'domainmaping_database_version' and 'domain_mapping' under 'meta_key' column, delete the corresponding rows. After doing that, you may activate the plugin and it should start as a fresh copy without the old settings.

    I hope this helps you, please do not hesitate to contact us should you need help with anything else.

    I hope you enjoy the rest of your day.

    Cheers,
    Mahlamusa

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.