Fixing the WordPress Cookies Are Blocked or Not Supported by Your Browser Error

Fixing the WordPress Cookies Are Blocked or Not Supported by Your Browser Error

Can't log in to WordPress because of a "Cookies Are Blocked or Not Supported by Your Browser" error message? Don't worry, in this article we will discuss several ways you can fix the WordPress cookies are blocked or not supported by your browser error.

Even though the error message states that cookies are blocked or not supported by your browser, the issue is usually not actually with your browser, so we will discuss how to fix it from the WordPress side.

Additionally, the cookies are blocked or not supported by your browser error is usually found more often on WordPress Multi Site.

Fixing the WordPress Cookies Are Blocked or Not Supported by Your Browser Error

There are several ways you can fix this issue, including

  1. Deactivating Plugins
  2. Clear WordPress cache
  3. Edit wp-config.php
  4. Edit functions.php
  5. Edit wp-login.php (not recommended)
  6. Use Default .htaccess

1. Deactivate Plugins

The first method you can try is to deactivate plugins, especially security plugins like Wordfence.

To turn off or deactivate WordPress plugins, you can use Softaculous [soon], or you can also do it through your web hosting file manager.

If you are using a file manager or FTP, you can open your WordPress installation folder, for example the public_htmlfolder, then open the wp-content/plugins

Mengatasi WordPress Cookies Are Blocked or Not Supported by Your Browser - 1-1-0

folder. In the list of plugins, rename the folder of the plugin you want to deactivate, for example wordfence changed to wordfence.off

Mengatasi WordPress Cookies Are Blocked or Not Supported by Your Browser - 1-2

After that, you can try logging in to your WordPress site again.

However, if this method does not work, you can try the second method.

2. Clear WordPress Cache

Wait, we can't log in, so how do we clear the cache?

Actually, not being able to log in to WordPress with this cookies are blocked or not supported by your browser error message only happens on the login page.

But if you log in directly using WordPress Manager or WordPress Kit as shown in this tutorial [How to Log In to WordPress Without a Password in cPanel], then there is no problem at all.

But if the hosting you are using does not have a feature to log in without a password, you can immediately try option number 3.

After successfully logging in, please clear the WordPress cache according to the cache plugin you are using, as the steps will vary.

3. Edit wp-config.php

Still can't log in? You can edit or add a line of code to the wp-config.php.

file. Depending on your type of WordPress installation, you can choose one of the following codes

WordPress single site

define( 'COOKIE_DOMAIN', 'wpgan.com' );// ubah wpgan.com dengan nama domain atau subdomain websitemu

If you are using WordPress multi site, then the code above might not work, so you need to use the following code

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

You can add one of those codes above the line /* That’s all, stop editing! Happy blogging. */ which is inside the wp-config.php

Mengatasi WordPress Cookies Are Blocked or Not Supported by Your Browser - 3-1

file.

4. Edit functions.php Besides usingwp-config.php , you can also edit the functions.php file in the active theme you are using, then add the following code to the very last line of the

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

functions.php file.If you have never edited thefunctions.php]

Mengatasi WordPress Cookies Are Blocked or Not Supported by Your Browser - 4-1

file, you can follow this tutorial on how to change it [

How to Add Code to WordPress Functions ]. 5. Edit wp-login.php (not recommended)

If methods 1 through 4 do not work, you can use this last method, but it is not recommended because you need to change the WordPress core file.

Mengatasi WordPress Cookies Are Blocked or Not Supported by Your Browser - 5-1-0

To use this method, you can edit the wp-login.phpfile located in your WordPress installation folder. Once you are in the

ob_start();

wp-login.php file editor, add the following code below the <?php

line. After adding it, you can save the changes to the

wp-login.php

RewriteEngine OnRewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]RewriteBase /RewriteRule ^index\.php$ - [L]RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule . /index.php [L]

file and try logging in to your WordPress site again.

Written by

Muhammad Khoirun Nasikin

I enjoy tinkering with WordPress, hosting, VPS, web development, and various small experiments related to websites. I have over 3 years of experience in the web hosting industry.

COMMENTS

Loading...