Support » Networking WordPress » ERROR: Cookies are blocked or not supported by your browser.

  • Hi,

    I have a website in Network mode. I’ve finished creating a website as a subdomain, and just set its URL to be a FQDN [ redundant link removed ]

    When I try to login with the parent site’s credentials, I receive the error:

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

    Cookied are not blocked, and they are supported by the browser. In wp-config.php, I have:

    define('WP_ALLOW_MULTISITE', true );
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', true);
    define('DOMAIN_CURRENT_SITE', 'www.perthpress.com.au');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);
    define('ADMIN_COOKIE_PATH', '/');
    define('COOKIEPATH', '');
    define('SITECOOKIEPATH', ''); 

    Help appreciated.

    Steve

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • This link might help.

    SRD75

    (@srd75)

    Hi @anujajakhade, adding:

    define('COOKIE_DOMAIN', $_SERVER['HTTP_HOST'] );

    produced an error:

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

    The other answers are not relevant or I am unwilling to edit core WordPress code.

    I am also getting this error with sub-sites but only when they are using a sub-domain. I Believe it is cookie related, as if I clear all cookies and browser cache, or use a different browser, then I can login just fine. So it seems to be some conflict with the main site cookies.

    I have tried with define(‘COOKIE_DOMAIN’, $_SERVER[‘HTTP_HOST’] );
    and every other suggestion I have found.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.