if you recently encounter “Cookies Blocked Error on WordPress Admin Dashboard” You must be very frustrating about this stupid issue. Right?
Don’t worry it’s easy to fix the issue than you think.
Why are you having this problem at first place?
The majority of times this happens If you have installed caching and security plugins more heavily on Your WordPress websites.
How to Fix A Cookies Blocked Error
- Refresh your browser most of the time this will take you straight to WordPress Dashboard.
- If above method doesn’t solve the problem- Acess your site via FTP.
- Go to your wp-content folder and then Themes folder.
- Select the theme which is currently activated on your website.
- Right click on “functions.php file and choose open and edit the file. (this will open the file in notepad editor)
- Add the following code at the very bottom of your file’s content.
setcookie(TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN); if ( SITECOOKIEPATH != COOKIEPATH ) setcookie(TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN);
- Save and Exit the file and Now Try Again. It should have been fixed Like Magic.
How to enable cookies for specific site in Chrome and Firefox
If the method #1 didn’t work for you, then you have to enable cookies in your browser to log in to your WordPress site.
Here is how you can enable cookies for a specific site in Chrome and Firefox:
a. Enable cookies in Chrome
- Go to any website and click on the little padlock or page icon from the starting of the site link and click site settings as shown in the following screenshot (alternatively go to chrome://settings/content)
- Now click the button Cookies (Alternatively go to chrome://settings/content/cookies)
- In Allow cookies section click on “Add new Site”
- Just add your site to the list here like this: [*.]yoursite.com and click the button DONE
- Once done, you will be able to login via Chrome browser into your WordPress site by now.
b. Enable cookies in Firefox
- Run the Firefox and click the Menu button from top right corner and click Options
- Click Privacy tab
- Here, you can see under History, Firefox will and select Use custom settings for history
- Now, set the things up as per as following screenshots
So, now after following this article and make changes to your browsers as described, you will be able to troubleshoot the so called WordPress error:
“Error: cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.“
hahaha! Hope you enjoyed this article. If you have any problem please comment below.
Comment below and Let me know If it works or doesn’t work and I’ll do my best to help you out.