Cookies Error and Can't login (more complicated than you think)
-
Hi there,
Getting this error since a couple weeks ago upon login:
ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.
I tried the following:
-clearing cookies/cache
-removing plugins
-changing theme to twentyfourteenStill got error. I tried these workarounds as well:
-removing: <input type=”hidden” name=”testcookie” value=”1″ /> from wp-login.php
this removed the error message, but just sends me back to the login page.
-commenting out lines 744-746 in wp-login.php (or a variation of that. Solution was here: https://www.ads-software.com/support/topic/cookie-error-when-logging-in?replies=117
this removed the error message, but just sends me back to the login page.
-adding the following code to the functions.php page:
//fix for cookie error while login.
function set_wp_test_cookie() {
setcookie(TEST_COOKIE, ‘WP Cookie check’, 0, COOKIEPATH, COOKIE_DOMAIN);
if ( SITECOOKIEPATH != COOKIEPATH )
setcookie(TEST_COOKIE, ‘WP Cookie check’, 0, SITECOOKIEPATH, COOKIE_DOMAIN);
}
add_action( ‘after_setup_theme’, ‘set_wp_test_cookie’, 101 );Still nothing. I’m not super php savvy, so I’m definitely stuck. :S
Any help would be appreciated. REALLY appreciated. ??
Jonathan
- The topic ‘Cookies Error and Can't login (more complicated than you think)’ is closed to new replies.