Title: Call to undefined function: wp_login()
Last modified: August 18, 2016

---

# Call to undefined function: wp_login()

 *  [araneo](https://wordpress.org/support/users/araneo/)
 * (@araneo)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/call-to-undefined-function-wp_login/)
 * Just upgraded to 1.2.2 and I can’t log in; wp-login.php gives me the error:
 * “Fatal error: Call to undefined function: wp_login() in […]/wp-login.php on line
   164”
 * The only two mentions of “wp_login” I can find are in wp-login.php and in wp-
   admin/auth.php where the function is used, but not defined.

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

 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/call-to-undefined-function-wp_login/#post-122586)
 * The function `wp_login()` resides in:
 * wp-includes/functions.php
 *  Thread Starter [araneo](https://wordpress.org/support/users/araneo/)
 * (@araneo)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/call-to-undefined-function-wp_login/#post-122593)
 * Thanks. Somehow I had the 1.2.1 version in there.

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

The topic ‘Call to undefined function: wp_login()’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [araneo](https://wordpress.org/support/users/araneo/)
 * Last activity: [21 years, 4 months ago](https://wordpress.org/support/topic/call-to-undefined-function-wp_login/#post-122593)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
