• Resolved bradleyagnew

    (@bradleyagnew)


    My site agnewsolutions.co.uk has been running perfectly until I installed Sidebar Login and now the website returned a 500 Internal Server Error.

    I spoke to the host and they said that the .htaccess had changed so they fixed it, now the front-end of the site is accessible but I cannot login with my details – I do have the correct username and password and I do have cookies enabled in my browser as I can log into all my other WordPress sites which are setup in exactly the same way.

    When attempting to log in it provides the following error message:
    ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.

    This is clearly a problem with the site due to recent changes, I believe it is due to this recent plugin but I cannot log in to make any changes.

    If you could take a look at my site (agnewsolutions.co.uk) the login page is (https://www.agnewsolutions.co.uk/wp-login.php?hide_my_wp=agnewsolutions) and provide a solutions that would be very much appreciated!

    Thanks,
    Bradley Agnew

Viewing 11 replies - 1 through 11 (of 11 total)
  • Moderator t-p

    (@t-p)

    I spoke to the host and they said that the .htaccess had changed so they fixed it, now the front-end of the site is accessible but I cannot login with my details

    I think it’s more like to be a server sessions or cookie issue than a core one. Discuss this login issue with your host as well. Or check the error logs on your server for a more specific error message. If you need help locating them, ask your hosting provider to help you with that.

    Thread Starter bradleyagnew

    (@bradleyagnew)

    I have Bluehost as a host, the support is terrible! They are often quite rude and when they come across a problem which they don’t understand (which is surprisingly frequent) they cancel the session!

    Could anybody come up with a practical solution for me because I am completely lost?

    Moderator t-p

    (@t-p)

    Did you get chance to check the error logs on your server for a more specific error message.

    Thread Starter bradleyagnew

    (@bradleyagnew)

    Bluehost has not provided any info on how to do this – please advise on how I can do this and will provide you with the details, I probably will not be able to understand them.

    Moderator t-p

    (@t-p)

    Try adding this snippet to your theme’s function.php:

    //fix for cookie error while login.
    setcookie(TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN);
    if ( SITECOOKIEPATH != COOKIEPATH )
    	setcookie(TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN);

    Hope this helps.

    If you google that message you will see quite a few folks that had/have that problem. There does not seem to be a universal cure yet but here is one you might try

    https://stackoverflow.com/questions/21093541/wordpress-3-8-gives-me-you-must-enable-cookies-to-use-wordpress-at-login

    Thread Starter bradleyagnew

    (@bradleyagnew)

    @tara I tried this and the code did nothing – thanks for the suggestion though.

    @kmessinger The website you linked to suggested renaming the plugins directory, I tried this and I still couldn’t log in unfortunately.

    Any other suggestions would be extremely helpful!

    @tara – this code worked for me. Thank you SOOOOOOO much!

    (using 3.8.1)

    Thread Starter bradleyagnew

    (@bradleyagnew)

    Hi everyone, solved the problem.
    I contacted my host and actually got some good support for once!
    He checked the login error and found my theme’s function.php had been corrupted so he reset it to a point before the login error, I logged in successfully, activated theme theme again and now everything is business as usual.

    Thanks for your help, I just thought I’d wrap this topic up as I understand that this is a very common problem. I’d say if in doubt, contact your host (depending on their level of customer service) because there are a whole range of potential causes for this error.

    Moderator t-p

    (@t-p)

    Glad to hear that ??

    I’ve been having this problem for days and trying everything I could to fix it. I finally found this thread. I reinstated my theme functions from a backup and now it’s all working again! Thanks bradleyagnew for mentioning the corrupt functions.php file!

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