[Troubleshooting] Error: Cookies are blocked or not recognized by your browser. You must enable cookies to use WordPress

Last update March 2, 2023 at 05:33 am

We will try to solve in this article the errors of blocked cookies by showing you how to activate cookies in wordpress.

In this article we will talk about an error that can occur when managing a WordPress site.

With the debug mode activated, we can see this message displayed on one of the pages like the Login page in our case: Error: cookies are blocked or are not recognized by your browser. You must enable cookies to use WordPress.

WordPress: How to display a portion of source code in a post without extension?

How to enable cookies in wordpress?

The solution that worked for us was to open the wordpress wp-config.php file on our server.

Added this line before the comment / * That's all, stop editing! Or in French / *c’est tout, arrêtez l’édition

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

The result will be a line that looks like this:

define('COOKIE_DOMAIN', $_SERVER['HTTP_HOST'] ); /* That's all, stop editing!

In this new category of troubleshooting, we will expose development problems that we had encountered. Often their solutions were difficult to find on the web where were created from scratch by our team.

All In One WP Security - ERROR: Access from your IP address has been blocked for security reasons. Please contact the administrator - 2021

[Troubleshooting]: Error: cookies are blocked or are not recognized by your browser. You must activate cookies to use WordPress