• Hello,

    I have a WPMU set up through Gator Hosting (self-proclaimed compatibility with WPMU).
    I have installed 3 sites in subdomains and am using mysite3.com, mysite2.com etc structure for naming.
    All three sites display on www.
    The latest site https://customgaragecabinets.net will not allow me to login… and from the main site https://matthewkuehlhorn.com when I attempt to view the dashboard of the Cabinets site I am redirected to a login page, where I cannot login.
    I have also attempted to login from https://customegaragecabinets.net/wp-admin and the user the network admin assigned to the site cannot login.
    ANY guidance is greatly appreciated – thanks in advance!
    Rob

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter Rob_Strickland

    (@rob_strickland)

    P.S. I deactivated all plugins and the issue was not resolved. My theme for the primary site in the network is Divi, but the customgaragecabinets.net is using twenty fourteen.

    what does your wp-config.php look like (just show custom config). You might have problems because your sub-site has a different domain. BTW how did you configure the domain? Did you just update the siteurl?

    • This reply was modified 7 years, 7 months ago by jkhongusc.
    Thread Starter Rob_Strickland

    (@rob_strickland)

    thanks for your reply. my config.php for the root looks like what I have been told to do in the wpmu tutorials.
    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, true);
    define(‘DOMAIN_CURRENT_SITE’, ‘matthewkuehlhorn.com’);
    define(‘PATH_CURRENT_SITE’, ‘/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);

    I’m not really sure what to do with the sub-site config files…

    The domains were all mysite1.domain.com and now I just changed them to mysite1.com

    I really appreciate your help!
    Rob

    Well thats your problem, DOMAIN_CURRENT_SITE. WP instructions are for subdomain and subdirectories. When you change a site for a different domain, that wont work. Try something like this in your wp-config.php:

    
    if (strpos($_SERVER['HTTP_HOST'], 'matthewkuehlhorn.com') !== false) {
        define(‘DOMAIN_CURRENT_SITE’, ‘matthewkuehlhorn.com’);
    } else {
        define(‘DOMAIN_CURRENT_SITE’, $_SERVER['HTTP_HOST']);
    }
    
    Thread Starter Rob_Strickland

    (@rob_strickland)

    oh… Thanks. What I shared was the config for the matthewkuehlhorn.com
    I’m not sure what the config should read for the child sites like ‘customgaragecabinets.com’…
    what is the standard wp-config.php for the child sites?

    You only have one wp-config.php right? Thats the way it should be. My code snippet should work for all your sites. Try it out replace your line define(‘DOMAIN_CURRENT_SITE’, ‘matthewkuehlhorn.com’);
    with my code

    Thread Starter Rob_Strickland

    (@rob_strickland)

    I have one wp-config for each site… and it looks like each site has a database too… which I do not think is correct…
    I’ve inherited this site, so I’m just trying to figure it out… and login to each child site ??
    Thanks. I’ll replace that line with your code… but should I delete the other child config files?

    If you have one wp-config.php for each site then you are not using WP multisite. You probably have multiple single WP sites. Do NOT delete the wp-config.php. Modify the wp-config.php DOMAIN_CURRENT_SITE of the child sites to match their domain.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘WPMU User logins fail’ is closed to new replies.