WordPress.org

Support

Support » How-To and Troubleshooting » Login error AGAIN

Login error AGAIN

  • I upgraded and everything looked fine BUT

    When I try to log in I get Fatal error: Call to undefined function: wp_redirect() in /home/cjfield1/public_html/wp-login.php on line 193

    The server is Linux so the fix I found on the forum about Windows servers is not applicable.

    My code on the line it says the error is :

    if ($user_login && $user_pass) {
    $user = get_userdatabylogin($user_login);
    if ( 0 == $user->user_level )
    $redirect_to = get_settings('siteurl') . '/wp-admin/profile.php';

    if ( wp_login($user_login, $user_pass, $using_cookie) ) {
    if (! $using_cookie) {
    wp_setcookie($user_login, $user_pass);
    }
    do_action('wp_login', $user_login);
    wp_redirect($redirect_to);
    exit();
    } else {
    if ($using_cookie)
    $error = __('Your session has expired.');

    Any ideas?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Login error AGAIN’ is closed to new replies.
Skip to toolbar