WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#17186 closed defect (bug) (wontfix)

Cannot log into admin if running IIS 5.0 (Windows 2000)

Reported by: tsimmons Owned by:
Milestone: Priority: normal
Severity: critical Version: 3.1
Component: General Keywords:
Focuses: Cc:

Description

The problem stems from the wp_redirect() function in wp-includes/pluggable.php and started with WP 3.1.1.

If you revert the block of code that tests for $is_IIS to the previous version (see attached diff) you can log in. Otherwise, the cookie never gets set (a limitation of setting cookies and 302 redirects under Windows 2000) and you just keep getting redirected to the log in page.

This is probably not a good final fix, since Windows 2003 and later probably don't have this issue. But since I am running on a legacy server, this test must remain.

Attachments (1)

diff_pluggable_pluggable_Apr-19-2011 20-15.txt (224 bytes) - added by tsimmons 3 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 dd323 years ago

  • Component changed from Warnings/Notices to General

This was removed in #10187, and was in 3.1 (ie. didn't start with 3.1.1)

There have been 2 major IIS releases since IIS 5.0 was released, and Windows 2000 and IIS 5.0 are no longer supported by Microsoft (The extended support period is over).

IIS 5.0 is stretching the bounds of reasonable support, which was why support for it was dropped in #10187 in favour of a more compatible approach for recent versions.

I'd also like to make mention that WordPress 3.2 will require PHP 5.2.4, and if memory serves me correctly, PHP 5.2.x doesn't officially support Windows 2000/IIS 5.0 either.

comment:2 tsimmons3 years ago

I understand your point of view. I hate to see this go, however. By the way, PHP 5.2.17 runs fine on Windows 2000. I suspect I didn't see the problem until 3.1.1 because I stayed logged in until now.

So, is this likely to stay broken for Windows 2000?

comment:3 tsimmons3 years ago

Sorry, I hadn't read the history. I see that indeed support for IIS <=5.0 has been dropped. Bummer but understandable. I guess we can close this ticket. Thanks!

comment:4 dd323 years ago

In your case, You can work around it by putting a cutdown version of wp_redirect() into your wp-config.php or a mu-plugin:

function wp_redirect($location) {
	$location = apply_filters('wp_redirect', $location, $status);

	if ( !$location ) // allows the wp_redirect filter to cancel a redirect
		return false;

	$location = wp_sanitize_redirect($location);

	header("Refresh: 0;url=$location");
}

comment:5 tsimmons3 years ago

That's great! Perfect fix for those of us trying to squeeze the life out of old servers.

comment:6 solarissmoke3 years ago

  • Resolution set to wontfix
  • Status changed from new to closed

As per comment:1, IIS 5 is no longer supported

comment:7 dd323 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.