WordPress.org

Ready to get started?Download WordPress

Forums

Login error AGAIN (2 posts)

  1. GreekGoddess
    Member
    Posted 9 years ago #

    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?

  2. MichaelH
    Member
    Posted 9 years ago #

    You might want to review the steps here, particularly Step 7.

    http://wordpress.org/support/topic/33189

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.