Viewing 13 replies - 1 through 13 (of 13 total)
  • I had this same problem today with a site that a new client asked me to work on.

    I did some searching online and found a workaround so you can log in. Basically, if you comment out lines 808-817 in wp-login.php it bypasses the cookie check and you don’t get the error.

    But this is just a workaround and not a permanent solution. I haven’t found a permanent solution yet but I will keep looking. Hopefully someone else can help.

    Thread Starter Onyido

    (@onyido)

    Please how do i comment out lines 808-817? should i delete those lines of codes there? or is there any command i should use to bypass it? Am new to this…..tell me what to do please

    Thread Starter Onyido

    (@onyido)

    Pls i have tried bypassing the lines of codes but its still not logging me into wp. Please what else should i do?

    The lines of code should look like this, with two forward slashes in front of each line:

    //	if ( empty( $_COOKIE[ LOGGED_IN_COOKIE ] ) ) {
    //		if ( headers_sent() ) {
    //			$user = new WP_Error( 'test_cookie', sprintf( __( '<strong>ERROR</strong>: Cookies are blocked due to unexpected output. For help, please see <a href="%1$s">this documentation</a> or try the <a href="%2$s">support forums</a>.' ),
    //				__( 'https://codex.www.ads-software.com/Cookies' ), __( 'https://www.ads-software.com/support/' ) ) );
    //		} elseif ( isset( $_POST['testcookie'] ) && empty( $_COOKIE[ TEST_COOKIE ] ) ) {
    //			// If cookies are disabled we can't log in even with a valid user+pass
    //			$user = new WP_Error( 'test_cookie', sprintf( __( '<strong>ERROR</strong>: Cookies are blocked or not supported by your browser. You must <a href="%s">enable cookies</a> to use WordPress.' ),
    //				__( 'https://codex.www.ads-software.com/Cookies' ) ) );
    //		}
    //	}

    Is this what you tried?

    But why we are having such issue, I am facing this on all my websites running on WP. Is this due to new update?

    I don’t know the cause of the problem unfortunately. I’ve only seen it on this site that I inherited from another developer so I don’t have much information.

    If it’s any help, the site was running WP 4.3.1 with the Eco Nature theme from Envato. I made a local copy of the site and uncommented these lines and the error went away. It’s also running without this error now on a staging server. I’ve just checked the original site, and the problem seems to have disappeared there too.

    Thanks mojen. I commented these lines in one my blog and Seems it solved the problem for all blogs. ??

    Now every blog is working fine and I am able to login without any issue.

    Thread Starter Onyido

    (@onyido)

    @ Mojen….I have tried it and it didnt work…..still cant log in….should i install another wordpress? maybe an older version? What should i do?

    Thread Starter Onyido

    (@onyido)

    The error message is not showing again but its not logging me into the wp environment…..it keeps reloading the login page…..

    My issue with the cookies error is found on all my websites. Anyone find a fix for this, not site specific, it is on all my sites that 4.3x.

    @onyido I noticed it kept asking for me to log in each time I saved or published changes. Then finally the entire site(s) shut down completely. I can’t go in and make any changes. My sites are actually falling apart.

    Some one in WP, PLEASE, PLEASE, PLEASE respond!!!

    Please try in Firefox. That’s working for me. I don’t know why chrome has this problem, but for now i use Firefox to fix this problem

    Hi! I found a solutions for the same problem. I was migrating my site to new server and in database (wp_options) was bad URL for “siteurl” and “home”.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Error: Cookies are blocked or not supported by your browser.’ is closed to new replies.