Redirected to root blog when attempting: ...wp-admin/network. Can't get to network admin.

Multisite subfolder install. I am using domain mapping (required). when I attempt to access network admin, I am getting a redirect to the root blog. I am able to access each blogs' admin individually through mapped_domain1.com/wp-admin. And once in I can visit other blogs' dashboards. But when I attempt to visit network admin... redirected to domain.com/wp-login. Ahhh!

I renamed plugin folder but problem still persists. Been reading about various redirect loops for admin login but none of those solutions resolved the issue. Peculiar.

My db metauser capabilities are 'a:2:{s:13:"administrator";b:1;s:15:"create_listings";b:1;}' and my user level is '10'.

When I login to an individual blog's admin and hover over my name in the upper right corner, I do not see 'network admin'.

  • Jack Kitterhing

    Hi there @d_j__nickles

    Hope your well today and thanks for your question.

    Your capabilities look good, it's possible this is a single sign on issue, if your signed into one mapped area, but not the other.

    Would it be possible for me to take a closer look at this to help you get this resolved? :slight_smile:

    Can you send me the following please?

    - In the subject field add "Attn: Jack Kitterhing"
    - Link back to this thread
    - Include admin/network access
    - Include FTP
    - Include any relevant URLS for your site

    On the contact form, select "I have a different question", this ensures it comes through and gets assigned to me.

    https://premium.wpmudev.org/contact/

    Thank you!

    Kind Regards
    Jack.

  • DJ Nickles

    Jack,
    Without me making any changes to anything, I can now get into network admin!???

    My firefox crashed when I was downloading a 320 page pdf while having lots of tabs open. After I said yes to "Restore tabs?" network admin came up!???

    What is peculiar is that I cleared history and cache before with no results and I attempted to login on different browsers with no results. So maybe the Firefox crash had nothing to do with it.

    I had an earlier problem that went away seemingly magically a couple of days ago too. Maybe there is a pattern I am missing here. Everyone was getting an intermittent db connection error when going to http://root_domain.com but not when going to http://www.root_domain.com. http://mapped_domain1.com and http://www.mapped_domain1.com also displayed fine. Then suddenly the problem stopped. I thought it had something to do with me commenting out the following:
    define('DOMAIN_CURRENT_SITE', 'mysite.com');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

    But maybe not. I'm afraid to remove the comment tags to see if the problem(s) come back.

    I wanted to update you. Any thoughts?

  • Jack Kitterhing

    Hi there @d_j__nickles,

    Hope your well today and thanks for the additional information.

    Very interesting, does it work each and everytime now you try? Or sometimes does it work and others it doesn't? For instance if the cache is cleared?

    It is very possible that after commenting out those lines that it started working, as if your having issues with Domain Mapping, those are the links to comment out.

    Do all other sites still work correctly?

    Thank you!

    Kind Regards
    Jack.

  • DJ Nickles

    Network admin login works consistently now. It was only the network admin login that was redirecting me to root_domain.com after I commented out said 'defines'. Suddenly, after over a day and after my Firefox crash, network admin suddenly was accessible again.

    Well, there you have it. It's probably obvious to someone but not me. Maybe my os had cached the route. That is the only thing I hadn't cleared manually. Wish I would have thought of that at the time.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.