Forums

"The password field is empty" error under IIS (6 posts)

  1. goddessamy
    Member
    Posted 7 years ago #

    Hi,
    This might help someone else out there. Sorry, I can't find where to post this as a bug.
    I installed WordPress on an IIS server and in every browser I tested (Opera, Internet Explorer and Konqueror) it displayed an error message of "The password field is empty" when attemping to log in however it then successfully logged in and redirected to the admin side.
    I solved this issue by modifying the redirection code for IIS on line 405 of wp-login.php from:
    if ($is_IIS)
    header("Refresh: 0;url=$redirect_to");
    else
    header("Location: $redirect_to");
    to:
    if ($is_IIS)
    {
    header("Refresh: 0;url=$redirect_to");
    exit();
    }
    else
    header("Location: $redirect_to");
    The code continued to execute after sending the refresh header, which then attempted to log in again passing a blank password. This caused the empty password field error to be displayed. However the refresh would then occur and successfully login. The new code stops execution of the script after sending the refresh header.

  2. CypherXero
    Member
    Posted 7 years ago #

    Don't use IIS. Download and install Apache.

  3. Sherman
    Member
    Posted 7 years ago #

    I am having the same problem with the variation that it doesn't login. I just get a flash of "password field empty" and then a new login screen. I tried the hack described above. It eliminated the warning message, but I just get redirected to the login again. I also have tried eliminating trailing white spaces. Any other ideas?

  4. James
    Happiness Engineer
    Posted 7 years ago #

    Goddessamy, CypherXero is probably right. But before you run and do that, will any of these help? http://wordpress.org/support/2/14292

  5. Sherman
    Member
    Posted 7 years ago #

    I solved my problem using Stevo's hack, which brought me to the situation described above by goddessamy. I applied her hack and cleared up my issues.

  6. miaow
    Member
    Posted 7 years ago #

    Thank you for that fix Goddessamy - that's been driving me insane for ages!
    :o)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.