Notification texts go here Contact Us Buy Now!

Solution for: Error: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress

 Cookies are blocked or not supported by your browser Solution for: Error: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress

On some clients' website built using WordPress, there was this error:
Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress

If you also have a WordPress website where you are seeing the error "Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress" when attempting to login, please find the solution below.


Temporary Solution:
After you get the error "Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress" on the login page, you can simply refresh the page and login again. You should be able to login.

Permanent Solution:
Add the following line at the end of the wp-config.php file.

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

That's it.

After adding the above line in wp-config.php file, I do not get the error again.


Related Reference: https://codex.wordpress.org/Editing_wp-config.php

إرسال تعليق

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.