Why does it say: ‘Cookies are blocked or not supported’?

Question

There are many many many many pages about this issue (and I could keep going).

For those who just came here for a solution, then it is:

1) Just try and refresh the page.

2) Try putting this in your wp-config.php

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

3) Or try putting this in your wp-config.php

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

4) Or putting this in your functions.php:

setcookie(TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN);
if ( SITECOOKIEPATH != COOKIEPATH ) setcookie(TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN);

5) Login-page cached by W3 Cache

If you’ve changed the login-url (like with WPS Hide Login), then remember to add the new URL as an exception. In W3 Cache it’s under: Performance >> Page Cache >> Never cache the following pages. This cost me half a day of my life, to figure this out!

BUT…

I can find no one explaining why it happens? I’m experiencing it on my local development environment, but I want to ensure that it doesn’t happen when I push to production.

Why is it, that that error occurs? … And why is it, that a simple refresh can bypass it?

0
Zeth 3 months 0 Answers 12 views 0

Leave an answer