• Resolved soldenburg

    (@soldenburg)


    I know this issue has come up a lot in the past, but I’ve gone through probably 20 different topics now and cannot find a solution to my problem, and I’m hoping maybe someone here can help.

    As the topic title suggests, I cannot login to the sub-site dashboards for my WordPress multi-site installation.

    We are using the MU-Domain-Mapping plugin, but disabling it doesn’t help or change anything.

    Here are some things I tried doing as a solution:
    Commenting out the test-cookie check in wp-login.php (around line 745 or so, see:)

    // If cookies are disabled we can't log in even with a valid user+pass
    //if ( isset($_POST['testcookie']) && empty($_COOKIE[TEST_COOKIE]) )
    //$user = new WP_Error('test_cookie', __("<strong>ERROR</strong>: Cookies are blocked or not supported by your browser. You must <a href='https://www.google.com/cookies.html'>enable cookies</a> to use WordPress."));
    //else
    $user = wp_signon('', $secure_cookie);

    Adding several define lines to the wp-config.php file (see below)

    define('ADMIN_COOKIE_PATH', '/');
    define('COOKIE_DOMAIN', '');
    define('COOKIEPATH', '');
    define('SITECOOKIEPATH', '');

    None of these solutions seemed to change anything (other than the first removing the error, though I still could not login, it just didn’t show the error).

    Some other behavior:
    We can log into the network admin portion of our multi-site install.
    When logged into the network admin area we get the cookie error when trying to log into the sub sites. It displays this error regardless of whether or not the credentials are correct.
    When not logged into the network admin and trying to log in to the sub sites we get no error on successful login, but it still redirects back to the login page. It will display other errors such as invalid password or username not found however.

    I would greatly appreciate any help on this, I’ve been scratching my head over it all weekend and seem to be getting nowhere.
    Thanks in advance.

Viewing 5 replies - 1 through 5 (of 5 total)
  • What multisite did you configure – sub-directory or sub-domain? Did you install any other plugins or themes? You do not mention what was the initial error before you started modifying core files or changing wp-config.php

    Thread Starter soldenburg

    (@soldenburg)

    It was sub-domain. No worries, I actually figured this one out on my own (after many hours of banging my head!)

    Turns out we configured the set-up incorrectly somewhere along the line. Deleting the sites, and recreating them and reconfiguring the domains fixed the issue and everything is going smooth now.

    I have the same problem using 3.8.1

    I can’t log in since I updated to 3.8.1.

    When I browse to the sites, the browser tries to log in and it get just a white page. The URL is example.com/?action=login&dm=05f8cf3587aae345d453bcdd7c4933c954c&k=24095faac343df5a610353e45871c3134&t=1981370657 and if I try F5 I get this: “Unknown login key”.

    Thanks in advance.

    I have set up the multisite with MU-Domain-Mapping plugin in subdirectories.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can't login to sub-site dashboards?’ is closed to new replies.