• Hello,

    I installed WordPress multisite and after I added my second website I am getting the following error when I try to access the dashboard:

    ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.

    Here is what I have done so far:

    1. I added the subdomain with my hosting provider (secondsite.mainsite.com)
    2. Added the nameserver information to my domain hosting provider (secondsite.com)
    a. Also added the server site IP address to the domain A record)
    3. I did some research and deleted my cache, cookies and history with no luck.
    4. I can access the website if I type in the domain (secondsite.com), but one I try to login, I get the same error.
    5. I also tried adding a redirect (secondstie.com to point to secondsite.mainsite.com). This didn’t work, so I removed it.

    Any suggestions would be greatly appreciated.

Viewing 9 replies - 16 through 24 (of 24 total)
  • @sternsbergerm THANK YOU! Saved me after hours of frustration.

    Same problem – subdomain dashboards worked, but logging into a secondsite domain dashboard did not, got cookie errors.

    Changed to false in wp-config.php:

    define(‘SUBDOMAIN_INSTALL’, false);

    And the dashboard of all of them now work.

    i had the same issue and that worked.

    define('SUBDOMAIN_INSTALL', false);

    thanks!!!

    NOT CORRECT
    define(‘SUBDOMAIN_INSTALL’, false);

    CORRECT
    Edit wp-config.php # Edit wp-config.php
    If you get an error about cookies being blocked when you try to log in to your network subsite (or log in fails with no error message), open your wp-config.php file and add this line after the other code you added to create the network:

    define(‘COOKIE_DOMAIN’, $_SERVER[‘HTTP_HOST’]);

    ??

    @foodlivery : I’ve just added the constant cookie_domain in wp-config.php on my WMPU and here is now the displayed message

    The constant "COOKIE_DOMAIN" is defined (probably in wp-config.php). Please remove or comment out that define() line.

    @sternsbergerm you sir are a gentleman and a scholar!

    Same error, but I already had

    define('SUBDOMAIN_INSTALL', false);

    Adding all this finally got it to work without the cookie error:

    define('ADMIN_COOKIE_PATH', '/');
    define('COOKIE_DOMAIN', '');
    define('COOKIEPATH', '');
    define(‘COOKIE_DOMAIN’, $_SERVER[‘HTTP_HOST’]);

    Oh yeah… be sure you check that your single ticks are coming thru your cut & pastes ok!

    • This reply was modified 5 years, 6 months ago by grokman.

    Hey,
    I have a short question.
    So I set up a Multisite, but when I create a new sub-domain, via multisite,
    the browser doesnt find the site. So i can’t see the site, neither can I log me in my dashboard.
    Example:
    site:
    example.com
    subdomain:
    site1.example.com
    I don’t know if its okay to write my question here.
    But hopefully I will get an answer.

    Greets from germany

    @lescienx We like to keep the requests from different users separate incase the topic wanders away from the original problem(s). Please create a new post in the forums here.

    You can actually just cut and paste the text from your post here right into your new forum post where my system should see it and point me to it.

    Except when the post (question) is very general, I prefer a working URL to the site in question so I might see the problem and run whatever checks I can run before trying to answer. I have quite a repertoire of tools here so being able to look first is always good for me.

Viewing 9 replies - 16 through 24 (of 24 total)
  • The topic ‘Can’t Login to My Second Website (Multisite)’ is closed to new replies.