I upgraded to WordPress 2.6 and now I can’t login!

1402 days ago in Articles by Brent | 8 Comments

Today I upgraded to WordPress 2.6 cuz the admin pages kept bugging me to do so. There are many who have done the same and found one little freaky bug that at first seems somewhat daunting, I admit. Nevertheless, there is a quick and easy fix. Here’s what You need to do:

1. Add this line to your wp-config.php:

define(‘ADMIN_COOKIE_PATH’, ‘/’)
(replace “/” with your wp-admin directory location. i.e. “/wp-admin”)
NOTE: You might have to fix the quotes if you cut and paste from here.

2. Delete your browser cookies for your site.

For some reason, the new WP software looks in your cookies and get’s a bit confused so it causes your login to not work (even if you do the reset password thing). So a fresh and shiny cookie cache did the trick for me.

3. Login

4. Remove the ‘define’ line from your wp-config.php

This is optional but a good idea as I like to keep things pure in my WP install. Even though I hardly ever edit this file, I don’t want to add a potential security funk issue if I don’t have to. My login worked just fine after removing the line with the new cookies. This one’s your call.

I hope that helps. The bug kinda freaked me out pretty god for a bit, I have to admit. Thankfully, this was fairly easy to sniff out.

Had any issues with WP 2.6? Share your fixes below!

  • http://twofivethreetwo.com James Fleeting

    I upgraded two blogs to 2.6 and a few more left but haven't had any problems so far.

  • http://iboughtamac.com brentspore

    I'm not 100% sure of this but I'm guessing the culprit cookies expire after 24 hours so my question is: Did you log in at all within the previous 24 hours?

  • http://www.theislanddog.com Spencer Scott

    I had quite a few problems upgrading to 2.6, but it seems they were related to some plugins. Eventually got it working.

  • Pingback: Can’t login after upgrade your wordpress ? | I'm Knight

  • doris

    I tried your suggestion but it didn't work for me. Instead, it presented this message:
    syntax error, unexpected T_STRING in /home/dorisch/public_html/nontoxichome/wp-config.php on line 15
    Can you help?

  • http://www.toolsforrealestate.com Irene

    I used WP Automatic Upgrade to go from 2.5.1 to 2.6.1 and was no longer able to login on a Godaddy hosted site and Fantastico install, even after a password reset. (Had no problem on other Fantastico installs on other hosting companies.) Thought I would have to reinstall WP but clearing cookies worked & can log in fine now – just passing it on since it was a simple fix.

  • http://www.pranaflownz.com KL

    Thank you for this – it sorted out my wp-admin log in issue.

  • Sam

    I have had the same problem with Wp 2.7. I tried your advice, but it did not work anymore.

Unwrapped a new Mac?

iBoughtAMac aims to deliver a well rounded collection of information for the Mac user. You've got questions, iBoughtAMac hopes to have the answers. If, after browsing the archives your question has not yet been answered, shoot us a friendly email at help@iboughtamac.com.

Featured Sponsor

Advertisement


Advertisement

Advertisement