WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Multi Site Super-Admin Login Issue (16 posts)

  1. nicholaswyoung
    Member
    Posted 2 years ago #

    I have a rather odd dilemma...

    I installed WordPress, configured the network per the instructions, loaded up the domain mapping plugin, and created a few sites - setting each with a top-level domain.

    I created A-records for each domain, and pointed them at the server. At this point, I thought I was good to go - but I soon found a bug in this otherwise awesome setup...

    I can login to the main domain with super-admin credentials just fine. However, when I try to access the control panel for another site in the network, I'm kicked out and redirected to wp-login.php . (I can see the rest of the site just fine. This weirdness only appears when I try to view the admin panel.)

    I tried changing wp-config.php's DOMAIN_CURRENT_SITE constant from the principal domain to the domain to one of the network sites and it allowed me to login on that site - but only that site. (I could still hit the principal domain as well, but on any of the other network sites, login was still hosed.)

    Should I be messing with the DOMAIN_CURRENT_SITE constant, or should I just define it based on the current domain?

    Ideas?

  2. However, when I try to access the control panel for another site in the network, I'm kicked out and redirected to wp-login.php .

    Not a bug or an issue.

    What you're experiencing is called cross-domain browser protection. You can't use a cookie on multiple sites, even with integrated logins, with different domains.

    Point in case. The exact same user ID/Password you use here is used on buddypress.org and bbpress.org

    You have to log in to each site separately.

    Why? To stop evil people from being evil.

    Leave it alone and deal with the fact that you'll have to log in multiple times. Unless you turn off redirection for the backend of your site.

  3. nicholaswyoung
    Member
    Posted 2 years ago #

    What you're experiencing is called cross-domain browser protection. You can't use a cookie on multiple sites, even with integrated logins, with different domains.

    Not exactly. Even if I try to login (by inserting my credentials) and hitting the "Log In" button - it still won't authenticate me. It starts to redirect to /wp-admin as it should, then redirects away.

    The only way I can log in on that domain is to modify the DOMAIN_CURRENT_SITE constant, which then disables logging in on any other site in the network. I understand how cross-domain browser protection works, and this isn't it.

    It should authenticate with the same super admin credentials as the main network site, correct?

  4. Sorry, I combined this post with another one very similar... Too many tickets! My bad.

    Even if I try to login (by inserting my credentials) and hitting the "Log In" button - it still won't authenticate me. It starts to redirect to /wp-admin as it should, then redirects away.

    What happens if you go right to mappeddomain.com/wp-admin/ ?

    Also what options did you tick for domain mapping on the back end?

  5. nicholaswyoung
    Member
    Posted 2 years ago #

    It redirects me back to /wp-login.php with the wp-admin path as a post-auth path, and reauth=1.

  6. Should I be messing with the DOMAIN_CURRENT_SITE constant, or should I just define it based on the current domain?

    You shouldn't need to change that at all, TBH.

    Looking at the options pages:

    1. Remote Login
    2. Permanent redirect (better for your blogger's pagerank)
    3. User domain mapping page
    4. Redirect administration pages to site's original domain (remote login disabled if this redirect is disabled)
    5. Disable primary domain check. Sites will not redirect to one domain name. May cause duplicate content issues.

    Which did you check?

  7. nicholaswyoung
    Member
    Posted 2 years ago #

    I'm not exactly sure what you mean, as a few items on that list are virtually unknown to me at this point.

    The credentials I've been using are authorized on every domain. The domain mapping looks correct in the site options, and I haven't changed any other options beyond the domain. Everything else is stock.

  8. nicholaswyoung
    Member
    Posted 2 years ago #

    It looks like I've sorted this out by fiddling with the configuration. Thanks for your help!

  9. I'm not exactly sure what you mean, as a few items on that list are virtually unknown to me at this point.

    So ... you've NOT actually installed http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/ ?

    Cause those are THE options at http://example.com/wp-admin/network/settings.php?page=dm_admin_page

    You know? The admin setting page for the domain mapping plugin? :) The one you're told to go to and make your selections?

  10. azaharakis
    Member
    Posted 2 years ago #

    Could you perhaps tell me what configuration settings you changed, as i am having the same issue!? thanks heaps

  11. nicholaswyoung
    Member
    Posted 2 years ago #

    Could you perhaps tell me what configuration settings you changed...

    Sure. In the end, my issue was that domain mapping wasn't truly activated. Once I configured the domains (in Network Admin > Settings > Domains) everything worked.

    But, to recap, my method for setting up a multi-site install is as follows:

    1. Setup the basic network parameters.
    2. Install the multi-site plugin, and create your first site using a subdomain (noting the site_id as you do so.)
    3. Setup domain mapping by visiting Network Admin > Settings > Domains and adding the domain there. Make sure to input the site_id from the last step. (Do not map the network's principal domain.)
    4. Go back to your Network Admin > Sites page and make sure the domain mapping is correct. Also check that the super admin has access to each site by looking at the Users column.

    After that, point your A records and you should be good to go.

  12. Eugene
    Member
    Posted 2 years ago #

    I just set up multisite and am having the same issue. I can't log into the second site I set up with the super admin user.

    I'm not exactly sure if I set it up correctly so here's some background:

    • I installed WP on SiteA.mydomain.com
    • I enabled multisite
    • I created the second subdomain, but by default it defined it as SiteB.SiteA.mydomain.com
    • After I created it, I edited the settings so that it's domain is SiteB.mydomain.com
    • I created a DNS entry for SiteB (I'm not using wildcard DNS)

    I can access SiteB.mydomain.com fine, but when I try to login to wp-admin in SiteB using the super admin user, it goes back to the login page.

    The above posts looked promising. The problem is, I don't have a Network Admin > Settings > Domains in my dashboard. I only have Network Admin > Settings > Network Settings and Network Setup.

    I'm running version 3.4.1.

    Any help would be appreciated!

  13. PhilipBarrington
    Member
    Posted 1 year ago #

    Hi,

    I am having the same problem.

    I have a domain and wordpress working.
    I have implement the procedure to get multi site to work.
    I have a second domain parked on the original site.

    I can browse to the new domain and I get the default instance of WordPress.

    If I try to log in it simply refreshes with the log in page.

    If I log in to the original site I have a network admin menu and the sites are available, when I choose dashboard I get the login screen and I have the can;t log in problem.

    I am running WordPress 3.4.2

    Any help would be appreciated

  14. kostanos
    Member
    Posted 1 year ago #

    Hi, any solution? I have the same issue. Can't login with existing super-admin user to dashboard of recently created subdomain site.
    Thanks.

  15. Eugene
    Member
    Posted 1 year ago #

    When I changed my main site domain to be domain.com instead of http://www.domain.com it resolved the issue. So the main site would be domain.com and the second site would be SiteB.domain.com.

  16. advail
    Member
    Posted 1 year ago #

    I also had the issue. What I was trying to do. (To Spell it out clearly for others).

    My "parent domain" (the main one hosting the other sites) is vail-industries.com . I followed the instructions here for beginning of the setup.

    Then I installed the WordPress MU Domain Mapping plugin. and thoroughly followed the instructions there.

    I then added one of my spare domains (when registered I got the .info for free) fuelupwithadvocare.info.

    I started troubleshooting the site with this reference. Got further along.

    But I still couldn't get past the login for Dashboard. I tried the Android App and was able to post (couldn't access the Dashboard there either).

    The instructions did not specify adding the other domain into the Domain Mapping: Domains as a new domain. I haven't found anything that specifies what a SITE ID is and where to get it. So I just started at 1. The Parent Domain is not required (or so i think as it's not listed after adding) but after adding it. It works.

    Now I'm off to try this one.

Topic Closed

This topic has been closed to new replies.

About this Topic