How to fix 🍪 “ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.”

How to fix 🍪 “ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.”

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

error - How to fix 🍪 “ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.”

Google Chrome Incognito mode and some other browsers like Tor block JavaScript by default and in order to use WordPress without JavaScript we can add the following code snippet in our active theme’s function.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);
whoami
Stefan Pejcic
Join the discussion

I enjoy constructive responses and professional comments to my posts, and invite anyone to comment or link to my site.