Title: login Error
Last modified: August 18, 2016

---

# login Error

 *  [drewgood](https://wordpress.org/support/users/drewgood/)
 * (@drewgood)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/login-error-1-3/)
 * /wp-login.php?redirect_to=%2Fwp-admin%2Fprofile.php
 * Whenever I try to login I continue to get the above error.

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [erik](https://wordpress.org/support/users/erik/)
 * (@erik)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/login-error-1-3/#post-126060)
 * Is your WordPress install set up the way we describe here:
 * [http://wordpress.org/support/topic.php?id=19925](http://wordpress.org/support/topic.php?id=19925)
 * ?
 *  [Gerd](https://wordpress.org/support/users/gerd/)
 * (@gerd)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/login-error-1-3/#post-126384)
 * I had the same error on a fresh WP 1.5 installalation taken out of the CVS right
   today (January 7th).
 * I installed WP locally under [http://localhost/wordpress15](http://localhost/wordpress15).
   I also changed the table prefix to be “wp15” instead of “wp”. install.php finishes
   successfully, but when trying to to login I get the following error:
 * [http://localhost/wp-login.php?redirect_to=%2Fwordpress15%2Fwp-admin%2F](http://localhost/wp-login.php?redirect_to=%2Fwordpress15%2Fwp-admin%2F)
   
   404 File not found
 * Of course the address should be
    [http://localhost/](http://localhost/)**wordpress15**/
   wp-login.php?redirect=…
 * I traced it down to the following:
    1. After install the option siteurl in table
   wp15_options is set correctly to “[http://localhost/wordpress15&#8221](http://localhost/wordpress15&#8221);
   2. However, after wp-login.php is called, this has changed to “http:”.
 *  [trebor](https://wordpress.org/support/users/trebor/)
 * (@trebor)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/login-error-1-3/#post-126386)
 * Oh, exactly the same problem I have, and wrote about in another post earlier.
   Anyway I change the siteurl (wordpress admin page or phpmyadmin) it changes back
   to “http:” when I try to login. Have tried with the two last betas with same 
   problem.
 *  [Gerd](https://wordpress.org/support/users/gerd/)
 * (@gerd)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/login-error-1-3/#post-126414)
 * A temporary solution is to comment out the following lines right at the top of
   wp-login:
 * // If someone has moved WordPress let’s try to detect it
    if ( isset( $_SERVER[‘
   PATH_INFO’] ) ) $_SERVER[‘PHP_SELF’] = str_replace( $_SERVER[‘PATH_INFO’], ”,
   $_SERVER[‘PHP_SELF’] );
 * if ( dirname(‘[http://&#8217](http://&#8217); . $_SERVER[‘HTTP_HOST’] . $_SERVER[‘
   PHP_SELF’]) != get_settings(‘siteurl’) )
    update_option(‘siteurl’, dirname(‘[http://&#8217](http://&#8217);.
   $_SERVER[‘HTTP_HOST’] . $_SERVER[‘PHP_SELF’]) );
 * Commenting out is done by adding /* before and */ after the lines like this:
 * /*
    … The code form above */
 *  [Gerd](https://wordpress.org/support/users/gerd/)
 * (@gerd)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/login-error-1-3/#post-126415)
 * Tracing futher it all comes down to this two lines:
 * if ( isset( $_SERVER[‘PATH_INFO’] ) )
    $_SERVER[‘PHP_SELF’] = str_replace( $_SERVER[‘
   PATH_INFO’], ”, $_SERVER[‘PHP_SELF’] );
 * Since PATH_INFO and PHP_SELF have the same value on my machine (wordpress15/wp-
   login.php), the str_replace function simply replaces the whole PHP_SELF with 
   an empty string.
 * I’m sure this isn’t desired. I was trying to figure out, what this code is instead
   supposed to do, but since there is no documentation on the PATH_INFO parameter
   on php.net, I still don’t know.
 *  [trebor](https://wordpress.org/support/users/trebor/)
 * (@trebor)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/login-error-1-3/#post-126445)
 * Thanks Gerd,
    saved me some work (as my PHP-skills are kinda rusty).
 *  [Jack](https://wordpress.org/support/users/moxie/)
 * (@moxie)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/login-error-1-3/#post-126452)
 * Still strange that the loginproblems keep on occuring. Untill now I’m still using
   a modified login.php from early 2004 that someone posted at that time, because
   the login that comes with all the nightlies (and 1.2.2) keep giving me troubles.
 *  [navid](https://wordpress.org/support/users/navid/)
 * (@navid)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/login-error-1-3/#post-126453)
 * Moxie, if I recall correctly, someone rewrote the login.php again recently too.
   If it’s solid, then I’m sure it will get incorporated into the 1.5 final release.
 *  [Jack](https://wordpress.org/support/users/moxie/)
 * (@moxie)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/login-error-1-3/#post-126459)
 * I’m sure it will, but even the official login.php for 1.2.2 never worked for 
   me ;).

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘login Error’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 6 participants
 * Last reply from: [Jack](https://wordpress.org/support/users/moxie/)
 * Last activity: [21 years, 4 months ago](https://wordpress.org/support/topic/login-error-1-3/#post-126459)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
