Forum Replies Created

Viewing 15 replies - 16 through 30 (of 58 total)
  • Cam

    (@crazycoolcam)

    For those who are following (or who stumble upon) this thread.

    The first hack (commenting out lines in wp-login.php) is likely to cause a blank white screen if there are legitimate cookie issues with your browser. This stops wp-login.php from checking to see if cookies are enabled and just tries it. If there aren’t the cookies set, then white screen and no explanation.

    The function @mirajas and I suggest (do one or the other) simply adds setting the test cookie whenever someone visits any page of the site, so it has more opportunity to get set, and therefore when logging in, it is less likely to flag the error message when it shouldn’t.

    I have not tried installing a clean copy of 3.7.1 to know if it has issues. My installs have all been updated (either automatically or manually) to 3.7.1 on each release dating back to pre-3.6.

    It sounds like there may be a problem with fresh installs of 3.7.1, but this is outside the scope of what the OP (@Kevin) was asking about. He could log in on the second or third attempt, but received the cookie error on the first. This was the case in my installation, except for me, the error was limited to only iOS browsers.

    As @wpyogi said, if you are still having a problem with this or a new issue, it would make sense to start a new thread.

    Cam

    (@crazycoolcam)

    @willem.deboer — Looking back through the thread, I have one last idea before having to take off for my day:

    It appeared that the white screen started when you added @mirajas code into your functions of your theme file. If it is still there, I would remove it since it duplicates my mu-plugin fix, which you said you had applied.

    Beyond this, check if your webhost has backups, and revert your site (files) to 2 weeks ago (before any of these edits). If it is still broken, check for cookies being placed (especially on the wp-login.php page). If nothing is placed, then you could try reinstalling WP over itself (except for the wp-content folder) and see if anything else was change inadvertently.

    If all this doesn’t work, I will be officially stumped. ??
    ~Cam

    Cam

    (@crazycoolcam)

    @willem.deboer were you able to add an exception? If so, did that work?
    And, have you set to “Accept 3rd party cookies”? (not needed for the test cookie, but I am curious if something else is at work on your system.)

    Other things to test.
    1. Does it work with another computer, but still at your home?
    2. Or another computer (at work or at a friends house)?

    While unlikely, I wonder if something in your host is blocking cookies for just your site. I would have no way to test this, and I haven’t heard of it happening, but it’s about the only thing I have left that I can think of.

    Cam

    (@crazycoolcam)

    @amsgator I’m close to stumped too. ??

    Cam

    (@crazycoolcam)

    Cam

    (@crazycoolcam)

    @willem.deboer — Hmmm. That would be a significant problem.

    Something is blocking your cookies. Do you have any adware blocking programs on your computer that would stop cookies before they even reach your browser?

    ~Cam

    Cam

    (@crazycoolcam)

    @willem.deboer, using firefox, go to your wp-login.php page (or your home page) and then do the following:
    1. Press Shift+F2 to bring up the Developer toolbar.
    2. Type in: cookie list
    3. Press enter, and look for a test cookie (or any cookie) from your site.

    Let us know what happens.
    ~Cam

    Cam

    (@crazycoolcam)

    @willem.deboer Do you have these lines commented out in wp-login:

    //	if ( isset($_POST['testcookie']) && empty($_COOKIE[TEST_COOKIE]) )
    //		$user = new WP_Error('test_cookie', __("<strong>ERROR</strong>: Cookies are blocked or not supported by your browser. You must <a href='https://www.google.com/cookies.html'>enable cookies</a> to use WordPress."));
    //	else
    		$user = wp_signon('', $secure_cookie);

    If so, that might be causing a problem, because without a cookie set for you, WP won’t know what to do.

    ~Cam

    Cam

    (@crazycoolcam)

    ditto to @amsgator ??

    Cam

    (@crazycoolcam)

    @willem.deboer When I visit your site, the test cookie is set properly. It uses https://www.communsense.nl as the domain name.

    I visited your login page, and it appears as though you have a plugin or two customizing it. Have you tried temporarily deactivating the plugins that are making the adjustments to your wp-login.php and seeing if that makes a difference?

    ~Cam

    Cam

    (@crazycoolcam)

    @amsgator, did you visit the wp-login.php on his site. I don’t think he ever got my //fix code activated because the mu-plugin folder wasn’t in wp-content.

    The test-cookie gets set when you try to visit the login page by default.

    Cam

    (@crazycoolcam)

    @amsgator, the cookie I received when visiting the site lists www in the host domain: https://www.maiscashback.com

    If it is setting the cookie fine for me (and not giving me the error), I am pretty confident it’s his browser.

    Cam

    (@crazycoolcam)

    @willem.deboer

    If you cannot login at all, first check your browser cookie settings and/or try using a different browser. (i.e if you use IE, try using chrome, or if you use chrome, try with Firefox or Safari.)

    If you cannot log in with a different browser, then you could try one of the patches above.

    The “//fix for cookie error while login” code I shared above works IF you get the error message after the first time you try to log in, but are able to log in on try #2 or #3. It won’t help you if don’t allow cookies to be set in your browser.

    Cam

    (@crazycoolcam)

    @amsgator Agreed that it doesn’t / shouldn’t matter whether you use the www or not. And definitely agree that you must use the same .htaccess rewrite that you have setup in your WP dashboard settings. (I messed this up and was caught in an infinite loop error. Not fun, but funny once I had it fixed. ??

    I am simply giving options for @alfjmrodrigues to try for troubleshooting, because something doesn’t work as expected. I’m pretty sure it is his browser settings after the last post. I visited the site and the test cookie set fine for me.

    ~Cam

    Cam

    (@crazycoolcam)

    @alfjmrodrigues

    One other thing to try (a 1b option since it is easier than #2) would be to switch browsers. It appears you are using Chrome. If you have Safari, IE, or Firefox installed, try logging in with one of those other browsers and see if it works. This will tell you it is the browser or the site.

    (FYI, I browsed over to your site, and was able to get the test cookie set without a problem [using Firefox]. I’m pretty sure you are facing a browser issue more than a WP issue.)

    ~Cam

Viewing 15 replies - 16 through 30 (of 58 total)