• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar

Zubair Amin

Helping You Be Your Own Boss!

  • WordPress
  • SEO
  • Blogging
  • Business
    • Ecommerce

How to Fix the WordPress Error “Cookies are Blocked or Not Supported by Your Browser”

October 18, 2021 by Zubair Amin Leave a Comment

Errors are a common occurrence during the development process. You may have noticed the error message

“ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.” When you try to log in to your WordPress website admin panel, you may receive this error.

In this piece of content,  I am going to explain you a tricky method for dealing with the “enable cookies” problem in WordPress.

Despite what the error message suggests, this message does not always appear as a result of blocked cookies. This issue is frequently caused by the use of a security or cache plugin on your site, as well as a change in your server/IP address after migrating your website to a different host.

This problem can sometimes be resolved by simply refreshing the browser. If the issue persists, try the following possible solution which is experienced by me and affectedly works.

Fix the error “Cookies are Blocked or Not Supported” by Editing the file functions.php

Step 1: Open and Edit the File functions.php

This file can be accessed and opened using either the cPanel file manager or an FTP client like Filezilla.
After logging in, navigate to the functions.php file in your website’s theme folder.

The file location: wp-content/themes/theme-name/functions.php

Step 2: Add Code to the File functions.php

Copy the following code and paste at the bottom of the file functions.php.

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

Step 3: Save the File

After editing and uploading the modified functions.php to your website, you should not see any longer the error “Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.”

That means your problem has been solved! Don’t forget to share your experience and thoughts.

 

Filed Under: Wordpress Tagged With: Cookies are Blocked, Fix cookies error, Wordpress Errors, wp cookies error

Leave a Reply Cancel reply

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

  • Facebook
  • LinkedIn
  • Medium
  • RSS
  • Twitter

Recommended Posts

  • How to Create Shine Effects on Your Website Logo With CSS
  • How to Check Your Laptop’s Battery Health on Windows 10
  • How to Change Checkout Form Heading in WooCommerce
  • How to Add a Class to body in Laravel View
  • How to Fix the WordPress Error “Cookies are Blocked or Not Supported by Your Browser”

Categories

  • Blogging
  • Business
  • Crypto Currency
  • Ecommerce
  • Make Money Online
  • Programming
  • SEO
  • Tech Tips
  • Technology
  • Web Design
  • Wordpress

Subscribe via Email

Sign up and receive make money online tips, blogging and travel tips right in your inbox.

  • About
  • Work
  • Contact me

Copyright © 2022 · Zubair Amin