Multisite forcing login for every site
-
A few months ago I “inherited” a WP (ver. 5.1.1) multisite installation that hosts 24 networked sites on subdomains, and uses the Domain Mapping plugin + Sunrise to map each site to its external domain. So for example, site1.ourdomain.com is mapped to atotallydifferentdomain.com using the plugin.
The previous contractor on this project did not update the 120+ plugins (even had one still installed that was removed from the repository 2 years ago for malicious code), allowed the sites to get loaded with spam comments (6,000 on one site), and basically made a mess of things. I have no idea how this setup was originally installed or if it was done correctly, and it is set up in a subdirectory. To make matters worse, there is no dev server and therefore everything I do is live. In between fires I’m trying to create my own local dev, fruitlessly so far.
Over the last 6-8 weeks, the domain mapping has stopped working on all sites. When I log in to the network, then try to go to any site’s dashboard, I am kicked out to the selected site’s public home page. If I type in the direct URL to any site’s wp-admin, I am sent to the network’s main dashboard.
I have gone round and round with this trying numerous fixes from the internet for weeks, and nothing has worked. So, this week I decided to ditch the domain mapping plugin and set up the WP built-in domain mapping by editing the individual sites. This seems to allow me into the dashboards correctly, but is unsatisfactory because now WP is forcing us (me and the handful of other Super Admins) to log in to each and every site on the network separately. I presume this is because the sites are mapped to external domains but again I’ve tried all the fixes I could find on the internet to no avail. (Setting the cookie constants, disabling Sunrise + Domain Mapping, making sure WP_ALLOW_MULTISITE and SUBDOMAIN_INSTALL are true, etc.)
OK. All that said, I am at the point where not only am I not sure I can get this working, I’m not sure I can get this installation healthy as a whole. I’m terrified to attempt updating WP because again, this is a live site and it’s had so many problems already, and it belongs to our largest and oldest customer. Can anyone offer me any advice on how to proceed with this beast? And is it possible to have networked sites pointed to external domains and NOT have to log in to each one in the admin separately? I appreciate any help on this, I’m tearing my hair out.
- The topic ‘Multisite forcing login for every site’ is closed to new replies.