Codex tools: Log in / create account
If you are having trouble logging in to your WordPress Administration Panels, here are some possible solutions.
Contents |
Make sure that cookies are enabled for your browser.
Some WordPress Plugins may interfere with the login process. Disable all of your WordPress Plugins, either through the admin panel or by removing them from the /wp-content/plugins/ folder, so they will not be recognized by the program.
Sometimes the wp-login.php file may have been corrupted or uploaded incorrectly.
// redefining user_login ensures we return the right case in the email
$user_login = $user_data["user_login"];
$user_login = $user_data->user_login;
Access your site's phpMyAdmin and edit the database carefully.
For information on problems logging in due to a wrong or lost password, see Resetting Your Password.
Please remember, the Username and Password fields are case sensitive!
In certain cases your WordPress address URI may have been reset.
// If someone has moved WordPress let's try to detect it
//if ( dirname('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) != get_settings('siteurl') )
// update_option('siteurl', dirname('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) );
If you are having a problem with secure HTTPS, change the following line in wp-includes/vars.php from:
define('COOKIEPATH', preg_replace('|http://[^/]+|i', '', get_settings('home') . '/' ) );
To:
define('COOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_settings('home') . '/' ) );
Be sure also to change the URL in OPTIONS to https://.
If you get an error about headers already sent, see Solving the Headers Already Being Sent Problem in the FAQ.
In some situations, your blog can be seen from inside your domain, but not outside. Following the instruction above about changing the wp-options MySQL table might still result in login failure.
In this event, double-check your wp-options table siteurl (WordPress address URL) and home (Blog Address URL) values to make sure they reference the same base externally available address; i.e., http://blog.yourdomain.com. The standard install may set them to your local (internal) host name, such as http://servername
Some firewalls (e.g., eTrust Personal Firewall) block you from logging in to WordPress. Disable your firewall and try to log in again.
If these steps fail, please indicate that you have tried all these possible solutions when posting at the WordPress Support Forum. Be sure to give details of your server setup, if you know it, including mySQL and PHP versions, as well as your operating system (OS), browser, and the WordPress version that is causing these problems.