You Must Enable Cookies To Use WordPress


If you use WordPress multisite and can not log into websites, and receive the error “Cookies are blocked or not supported by your browser. You have to enable cookies to use WordPress.”

This issue may have many different causes, some of which may be associated with caching and do not necessarily cause cookies being blocked or not supported by your browser.

We have personally experienced this error before, even if cookies weren’t disabled in our browsers. At times, this error disappears by simply refreshing the browser nonetheless, if it remains, then implement the next possible fixes.

Are cookies enabled in the browser?

To begin with, you should be certain cookies are enabled in the browser, and they are not being blocked.

Cookies blocked by domain mapping.

A normal instance on multisite is when using a domain mapping feature. You may find after mapping a personalized domain name to your multisite subdomain it is no longer possible to get past this error message.

In order to solve this, add the following lines to your wp-config document:

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

Cookies blocked by caching or security plugin.

If you have recently set up a caching or security plugin on your Website, These plugins may interfere with the cookie and login managing of your WordPress website.

Because of this, this may result in the malfunction “Cookies are blocked or not supported by your browser”.

Caching plugins will cache and modify the website, which can either lead to cookies not getting generated in the first place, or they may not work how they need to.

We recommend disabling your caching and security plugins, and seeing if you can log in to your WordPress admin dash by deactivating the plugin temporarily by renaming the plugin’s folder.

To do this, you need to login to the Site through FTP/SSH or a file manager plugin and rename the plugin-specific folder /wp-content/plugins/plugin-name to something else such as /wp-content/plugins/plugin-name-off

If this fixed your issue, reinstall the cache and security plugins , or you might advise the plugin programmer for a fix.

Cookies blocked after changing hosting providers.

If you have recently migrated your site to another hosting provider, while the domain name remained the same, existing cookies might no longer work with your new website try clearing your cookies and website data on your browser.