Comments on: WordPress Multisite: cookies blocked or not supported https://pluginrepublic.com/wordpress-multisite-cookies-blocked-or-not-supported/ WooCommerce Plugins Wed, 08 Apr 2020 08:33:47 +0000 hourly 1 By: Peter https://pluginrepublic.com/wordpress-multisite-cookies-blocked-or-not-supported/#comment-80549 Wed, 08 Apr 2020 08:33:47 +0000 https://pluginrepublic.com/?p=894#comment-80549 Using Wordpress 5.4
define(‘COOKIE_DOMAIN’, false); or define(‘COOKIE_DOMAIN’, ”); or define(‘COOKIE_DOMAIN’, $_SERVER[‘HTTP_HOST’]);
had no effect for the response cookie domain at the wp-login.php.
I succeeded with
define(‘DOMAIN_CURRENT_SITE’, $_SERVER[‘HTTP_HOST’]);
in the wp-config.php
Domain Mapping was not needed (and did not work at my site).

]]>
By: Alicia https://pluginrepublic.com/wordpress-multisite-cookies-blocked-or-not-supported/#comment-25276 Wed, 03 Jul 2019 22:33:00 +0000 https://pluginrepublic.com/?p=894#comment-25276 This worked for me: define(‘COOKIE_DOMAIN’, false);

Thank you. 🙂

]]>
By: Aurelio https://pluginrepublic.com/wordpress-multisite-cookies-blocked-or-not-supported/#comment-19470 Sun, 17 Feb 2019 23:22:27 +0000 https://pluginrepublic.com/?p=894#comment-19470 In reply to Bas.

I tried to use that, but it didn’t work.
I had to use the “define(‘COOKIE_DOMAIN’, false);” solution to be able to log into multi sites sub domains. Thank you for offering another solution to try though!

]]>
By: Bas https://pluginrepublic.com/wordpress-multisite-cookies-blocked-or-not-supported/#comment-9180 Wed, 06 Jun 2018 07:01:00 +0000 https://pluginrepublic.com/?p=894#comment-9180 I think the real solution should be adding the following line to wp-config.php:

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

]]>
By: DAVID RADOVANOVIC https://pluginrepublic.com/wordpress-multisite-cookies-blocked-or-not-supported/#comment-5334 Sat, 23 Dec 2017 17:20:57 +0000 https://pluginrepublic.com/?p=894#comment-5334 In reply to DAVID RADOVANOVIC.

Wow, this is dumb: I forgot to add the new site to the Domain Mapping Configuration! That fixed it. Thanks and Happy Holidays!

]]>
By: DAVID RADOVANOVIC https://pluginrepublic.com/wordpress-multisite-cookies-blocked-or-not-supported/#comment-5333 Sat, 23 Dec 2017 17:15:40 +0000 https://pluginrepublic.com/?p=894#comment-5333 “ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.” just reared its ugly face with the installation/spinup of new subsite yesterday. I’ve tried your suggested fix and also added the following code to the bottom of the functions.php file: setcookie(TEST_COOKIE, ‘WP Cookie check’, 0, COOKIEPATH, COOKIE_DOMAIN);
if ( SITECOOKIEPATH != COOKIEPATH ) setcookie(TEST_COOKIE, ‘WP Cookie check’, 0, SITECOOKIEPATH, COOKIE_DOMAIN);

Cleared browsers caches on several different browsers and on server and still I can’t log into that one new subsite. The other sites do not have the same problem just the new site.

Any ideas?

]]>
By: alex https://pluginrepublic.com/wordpress-multisite-cookies-blocked-or-not-supported/#comment-2438 Sat, 24 Jun 2017 17:28:11 +0000 https://pluginrepublic.com/?p=894#comment-2438 thank you 🙂 .it worked for me by adding define(‘COOKIE_DOMAIN’, false)
wordpress 4.7

]]>
By: Catapult Themes https://pluginrepublic.com/wordpress-multisite-cookies-blocked-or-not-supported/#comment-1429 Wed, 11 Jan 2017 10:58:18 +0000 https://pluginrepublic.com/?p=894#comment-1429 Do you have any other plugins that might be conflicting with this? For example, Domain Mapping?

]]>
By: Paul https://pluginrepublic.com/wordpress-multisite-cookies-blocked-or-not-supported/#comment-1428 Wed, 11 Jan 2017 09:20:36 +0000 https://pluginrepublic.com/?p=894#comment-1428 Thanks for posting on this issue. However, when I add that to the wp-config.php file I get the following error across all sites:

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

If you have any other fix for this I’d be grateful to hear it.

]]>