• alekseyn

    (@alekseyn)


    when users attempt to login to WP site, they receive an error message:

    “Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.”

    Cookies are enabled. Site was running well until last weekend. Never had the message before, site is unchanged since 3.7, and with cookies enabled in all browsers, you still see the message when logging in.

    We disabled themes and plugins, to no avail.
    Tried the other hacks in several threads, but no cigar. All they did was produce a white screen.

    Any one else experiencing this or have a suggested solution? All help is appreciated. I need to update my site, but I can’t login to the admin screen!

    The only solution that worked and let me into the admin area is

    function wp_validate_auth_cookie($cookie='',$scheme='') {
        return 1; // admin user id
    }

    but this opens the site wide open to all visitors being admins (which is OK to update or upgrade something really quick….

    The issue seems to be different from host to host and something within the core changed that results in this error… but what? It’s all either about cookies or php…

Viewing 8 replies - 16 through 23 (of 23 total)
  • BP doesn’t apply to me unfortunately. Appreciate your efforts though, thx.

    @rossagrant … thanks for doing the heavy lifting on this. Saved me hours.

    @rossagrant – You’re the man!

    Taking <input type="hidden" name="testcookie" value="1" /> out of the code for the login widget solved the problem immediately.

    Much thanks!!

    @rossagrant – Thank You!! I was using nice login widget, and have been struggling with this for a while. I commented that line out three times in the widget code, and all is good!

    @jose Freitas, I just happened to have cookie error issue, have a blank screen, want to thank you for referring the cookie-error-when-logging-in url. It turned out, in my case, I have the same issue but on my local mamp environment. The way it was solved it was by following Tara’s advice: renaming my child theme via ftp or via mamp server by going to htdocs/content/themes/mychildtheme. That gave me access (finally to the admin screen and recognized my username and password.) Just wanted to thank you for the referral.

    I have the same problem, While searching the internet, i was able actually fixed it by using one of the solutions here, it might helps if anyone have same issue:

    [External link moderated. Never, ever, edit WordPress core files!]

    tradesouthwest

    (@tradesouthwestgmailcom)

    I had a folder for my theme that had a hyphen in the name (three-by) where the slug for the theme, inside of the folder was called threeby, without the hyphen. Renamed the folder and it works like a charm now.

    I also went in to functions dot php and reordered my double quotes in a footer credits function so the double quotes were first in an echo statement and then the single quotations were encapsulating the hyperlink of the statement.

    So I think the first issue was the fix, in my case. Thought I would post both since there is no need to suspect the double quote order as apposed to the folder naming conventions issue. But you can look at both if it applies. It fixed mine…. on the other-hand I am using a cheap host and they could have been sitting on the session until I went into alter cookies using a function from the link above and that released the cookie, but it did not work the first try and I removed the cheat function (Jos Frietas thread) and it still did not work at that time.

    Note: my host is a Cloudflare host but they “tell me” CloudFlare is not ‘automatically’ initiated… I beg to differ that hosts use it when ever loads get big and it keeps me from editing real time in cPanel.
    [link: tradesouthwest.net/threeby]

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘"Cookies are blocked or not supported by your browser."’ is closed to new replies.