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!
Pingback: Can’t login after upgrade your wordpress ? | I'm Knight