Fix Cookies are blocked or not supported by your browser and you must enable cookies to use WordPress

How to Fix Error “Cookies are blocked or not supported by your browser and you must enable cookies to use WordPress”

3 minutes read

Tutorials

If you are a WordPress website owner, you will undoubtedly face the error that says Cookies are blocked or not supported by your browser and you must enable cookies to use WordPress. While trying to log into your WordPress website, you may run across this problem.

In this article, we will try to solve all your problem related to this error. Just stay tuned.

Reasons for the Error: Cookies are blocked or not supported by your browser and you must enable cookies to use WordPress

According to the error message, this message does not necessarily mean it arises because of blocked cookies. If you receive this problem, it’s usually because your site has a security or cache plugin, or because your server/IP address has changed after transferring to a new hosting provider.

Before explaining the solution, let’s discuss some possible reasons for this error:

Security or Cache Plugin Error

Some security or cache plugins can interfere with your WordPress site’s cookie and login processing, preventing the WordPress user login cookie from being created correctly. This same problem result Error: “Cookies are blocked or not supported by your browser and you must enable cookies to use WordPress”

“WordPress Not Supported Cookies Error” after Changing the Server or Hosting Service

While the domain remains the same, moving your WordPress website to another server might cause a cookie conflict between your browser and the new hosting server. Deleting your browser’s cookies will allow you to log in to your WordPress account.

How to Fix Error “Cookies are blocked or not supported by your browser and you must enable cookies to use WordPress”

Cookies are blocked or not supported by your browser and you must enable cookies to use WordPress

If you receive this problem, it’s usually because your site has a security or cache plugin or because your server/IP address has changed after transferring to a new host.

Just reloading the browser might fix the problem.
If the problem persists, You can quickly fix this error just by following the given steps:

Method 1: Editing the file wp-config.php

This issue may be fixed by adding a single line of code at this location. Use Filezilla to access the wp-config.php file in your website’s root directory and add the code.

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

It’s time to refresh your browser and log back into your website.

Method 2: Editing the file functions.php

Here is another method that you can follow to fix the issue.

Step 1: Edit the File functions.php

Depending on your preference, this file may be accessed and opened using the cPanel file manager or via an FTP program like Filezilla. You’ll find the file functions.php in your website’s theme folder once you’ve logged in. Functions.php is generally located in the wp-content/themes/theme-name/functions.php directory.

Step 2: Add the given code to functions.php

You can copy and paste the code below into functions.php at the bottom of the file.

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

Step 3: Now save the file

You should no longer notice the error “Cookies are blocked or not supported by your browser and you must enable cookies to use WordPress” after uploading and saving the updated functions.php to your website.

Sum Up

A blocked cookie isn’t the only reason for this error notice, as implied by its wording. If you receive this problem, it’s usually because your site has a security or cache plugin or because your server/IP address has changed after transferring to a new host.

Trying to repeat our discussion, here are a few key points:

That’s it, we hope you learned How to Fix the Error “Cookies are blocked or not supported by your browser and you must enable cookies to use WordPress” easily. And for the visitor who asked us to write an article on How to Fix 403 Forbidden Error in WordPress, we have a dedicated article on this.

If you enjoyed this post, subscribe to our WordPress video tutorials on YouTube Channel. Remember to follow us on Pinterest.

We accept all kinds of visitor suggestions, as they continuously motivate us to improve. Feel free to comment below.

What do you think?

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed

Related Articles

Menu