wp Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress. code example

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

you’ll need to open your website’s function.php file. 
 
Then add the following code:
 
setcookie(TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN);
if ( SITECOOKIEPATH != COOKIEPATH ) setcookie(TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN);
and then save/upload your functions.php file.


#https://www.fiverr.com/shadabdeveloper

Example 2: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.

#in wp-config.php

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


#https://www.fiverr.com/tamerjarrar

Tags:

Php Example