Skip to content

Tipsnfreeware

Practical Tips and Downloads For Getting Things Done

  • Home
  • How To
  • Software
  • WordPress
  • HTML Sitemap
wordpress tips

How to fix a cookies are blocked error on WordPress admin dashboard

by Ben Jamir

Last updated on May 27th,

If you have a WordPress website, chances are that you must have experienced a “Cookies are Blocked or not supported by your browser” error message while trying to log into the WordPress admin dashboard at some point.

I’ve seen this error a couple of times. Frankly, I haven’t narrowed the problem down to the point where I know exactly which plugin or setting is causing the issue.

I have, however, found two quick methods for how to fix a “Cookies are blocked” error on the WordPress admin dashboard.

cookies are blocked error on WordPress

If you’re seeing this message,” Cookies are blocked or not supported by your browser “ when trying to log in to your WP Admin dashboard, this article may be for you.

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

I use Google Chrome for Windows and I am sure cookies are not being blocked. I don’t believe the problem is actually that cookies are blocked by your browser.

I feel that WordPress may be looking for a test cookie, which is being blocked or not shown by the caching plugin installed on your site. I Could be wrong here, but that’s my current theory.

In case you missed: Fix: WordPress Keeps Logging Me Out Of Admin Session

Page Contents

  • 2 ways to fix Cookies are blocked error on WordPress Admin.
    • Solution 1:Quick Fix Cookies are blocked error
    • Solution 2: Permanent Fix Cookies are blocked

2 ways to fix Cookies are blocked error on WordPress Admin.

Solution 1:Quick Fix Cookies are blocked error

When I faced this problem, I had to google and read in many forums where people described elaborate methods of getting into their WordPress admin dashboard.

Some people even went to the extent of reinstalling WordPress, deactivated all their plugins, some in panic mode even paid hefty amounts to developers, etc.

The simple quick fix, when you get this error Cookies are blocked, simply refresh the page or re-enter your user name and password and hit enter and you will be able to log in.

I’ve been able to get into every one of my website Admin dashboards, simply by refreshing the browser and or re-entering the username and password. Somehow, the cookie that was missing is then picked up and I am allowed in.

But this method is not the permanent solution to error Cookies are blocked.

Solution 2: Permanent Fix Cookies are blocked

The first solution doesn’t remove the error permanently. After you log out and close the browser, you will get the error if you try to log in to the WordPress dashboard.

However, this solution will

You will need to have access to your Functions.php file. You can do that either via an FTP tool such as Filezilla or CyberDuck. Alternately log in to your hosting cPanel, and open the file manager Add 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);

Upload/Save your Functions.php file

After doing this I’m not seeing the error any longer and I expect that you’ll have the same result.

But is this solution a “permanent fix”? I feel the only fix is for either the plugin developers to adjust their code, or WordPress to acknowledge this and make an adjustment for it in the core.

Currently, I’m on WordPress 5.7.2. Maybe we’ll see this fix in future updates.

Ben Jamir
Ben Jamir

Hello! I am Ben Jamir, Founder, and Author of this blog Tipsnfreeware. I blog about computer tips & tricks, share tested free Software’s, Networking, WordPress tips, SEO tips. If you like my post /Tips then please like and share it with your friends.

tipsnfreeware.com

Related Posts:

  • Error redirecting too many times
    How to fix Error Too Many Redirects in WordPress
  • wordpress tips
    Fix: WordPress Keeps Logging Me Out Of Admin Session
  • fatal; error featured
    How To Fix Fatal Error Warning In WordPress
  • super-cache
    Fix! Super Cache dynamic page detected but late init not set
  • deactivated
    Deactivate WordPress Plugins Without Admin Access: A…
  • 500 Internal Server Error in WordPress: A Comprehensive Guide to Troubleshooting
    500 Internal Server Error in WordPress: A…
  • How To Fix : Custom Wordpress HTML Widget Error ! Won't Allow To Save
    How To Fix : Custom Wordpress HTML Widget Error !…
  • http-error-featured
    How To Fix WordPress HTTP Error When Uploading Images
Categories WordPress Tags admin dashboard, can't login, cookies are blocked, cookies error, login error, wordpress dashboard
How To Configure Entity Tags (eTags)|Speed Up WordPress
Incredible Airtel Data Plans And Airtel Thanks Rewards 2020

Recent Posts

  • How To Check & Update Your WordPress PHP Version for Better Performance
  • How To Disable Google AMP Plugin in WordPress Site
  • How to Fix Leverage Browser Caching Warning in WordPress
  • How to Find Your Google Analytics Tracking ID and Code (Step-by-Step)
  • How To Play Videos With Unsupported Audio Format On TV

SUBSCRIBE FOR FREE E-MAIL

Enter your email address:

Delivered by FeedBurner

  • Sitemap
  • Terms and Conditions
  • Copyright Notice
  • Privacy Policy
Copy right Tipsnfreeware.com
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
.
SettingsAccept
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are as essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
SAVE & ACCEPT