Cookies blocked? Find out how to fix the cookie error in WordPress

The use of cookies can be extremely useful for managing your website, however, it requires a little more attention and knowledge. When a cookie error message occurs in WordPress, for example, it is important to fix it as soon as possible.

Thanks to digital technology and the greater use of mobile devices in the routine, more and more people adopt the Internet as a source of information and a mechanism for interaction with brands. For this reason, it is very important to create a website for your business, have a strong presence in the online environment, especially through platforms such as WordPress , and know how to repair blocked cookies.

To get the most out of these tools, it is also essential to understand some of their key components, such as cookies, present on practically all websites that aim to optimize visits and conversion .

However, when you log in, you may see a cookie error message in WordPress saying they are blocked. At first glance, it often seems like a big problem, but it is almost never serious. It is enough to know the correct way to solve!  

To help you, we will explain how to do it.

In this article, you will see:

  • What are cookies?
  • Why are cookies blocked?
  • How to fix the blocked cookies error in WordPress?

Read on and understand everything you need to know on the subject!

What are cookies?

When you enter a website , a small temporary file is automatically downloaded to your browser known as a cookie. In general, it is a text file that takes up practically no space on your computer and does not affect your browsing experience.

Its function is to act as a record of key browsing information and the user's profile such as their location, age and browsing history. With this data, you can gain a deeper understanding of your potential customers and optimize marketing campaigns, content, and other actions.

Why are cookies blocked?

Unfortunately, it is difficult to identify just one cause of the cookie error in WordPress without having all the context. Ultimately, there are many things that can cause it to crash, from a misconfiguration in the SSL certificate to a corrupted important file.

In general, identifying the most likely cause is often part of the problem-solving process . Likewise, it may be that the blocking is the result of some protocol of a security plugin.

This is more common when the cookie in question has some harmful behavior - such as capturing login data - or when the plugin has a problem.

How to fix the blocked cookies error in WordPress?

Regardless of the cause that originated the error, once identified, it is not that difficult to solve. Even if you have doubts, there are some methods you can use to solve this situation. Know the main ones and how they are executed.

Define domain

First of all, try to refresh the page to make sure that it was not a specific error in the execution of the code. If that doesn't work, the problem may be in the definition of the domain used in your cookie.

To fix it, you must access the wp-config file on your computer and add the following line of code:

In the part where "" is written, you must put the domain of your website, so that the cookie can find it. Remember to put the code before “/ * That's all, stop editing! Happy blogging. * / ”, Which indicates the end of the file.domain com », you must put the domain of your website, so that the cookie can find it. Remember to put the code before “/ * That's all, stop editing! Happy blogging. * / ”, Which indicates the end of the file.

Ignore cookies

Another possible, but not ideal, method would be to skip the installation of cookies on the site, thus allowing you to log in without having to use them as long as you do not fix the problem permanently.

To achieve this, you must access the functions.php file of your WordPress theme and add the following line of code:

  • setcookie (TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN);

It can be a bit difficult to safely make modifications to PHP. So to make things easier , we recommend downloading the Code Snippets plugin . This resource allows you to make these additions more easily and also allows you to manage each of them. So when you need it, you can disable these lines of code separately.

Reactivate the use of cookies

In some cases, the WordPress cookie error occurs because they are not specifically enabled in your browser. If they can't run, your WordPress login may be having a problem.

This can happen when your browser cannot find the site's authentication protocols. Fortunately, this can be solved by following four steps :

  • Access your PHPMYADMIN;
  • Open the WP-OPTIONS table in your database;
  • Go to OPTION_VALUE, double click and add the hosting protocol before your URL;
  • Repeat the previous step on the next line so that they are both the same.

That should fix the problem.

Other methods

In addition to the alternatives listed above, you can use other small procedures that do not require such a detailed explanation. Here is a list of the most interesting options:

  • Delete the .htaccess file and create a backup. If it works, save the permanent link to create a new file;
  • check that your SSL plugins redirect correctly to HTTPS;
  • Rename your plugin folder so that they are disabled and then enable them one at a time. This helps to fix the error in case it was caused by a security plugin;
  • Rename the folder with WordPress and theme files to revert to default settings. If that solves the problem, delete the folder and reinstall the theme. It's rare, but cookie errors in WordPress can be caused by your theme.
deep mistry



  1. The leagues and caucuses comprise the of condition site as Vivo Y15

Previous Post Next Post