Login Problems With WordPress 2.7.1 On Safari 4 Beta

Friday, 15 May 2009

by Silumesii Maboshe

My Setup

I’m taking the plunge in to WordPress Theme design and development. While getting the work environment in place, I ran in to issues logging in to the site when using the Safari 4 Beta. This post describes how I worked around it and I’d appreciate feedback on an actual solution (and the root cause of the problem).

My Problem

The installation of WordPress 2.7.1 went without a hitch. WordPress has nailed the issue of making installation easy. On the login screen, however, I’d get redirected to the login form whenever the login information was correct. No error message. No warning. Nothing.

The cold stare of a blank login form.

If the login was wrong, I’d get a message saying:

ERROR: Incorrect password.
ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.

Ahah, it speaks!

I’d never had an error like this before so I fired up Firefox and sure enough, I was let in to the WordPress administration panel without any qualms.

My Solution

Since the problem seemed to be with cookies, a quick check of the Safari Preferences was in order. The default cookies setting is to Accept cookies: Only from sites I visit. On switching the preference to Accept cookies: Always, the login redirection problem evaporates and in to the administration panel we go.

Cookies? Delicious. Don't take too many now!

This is not a solution I particularly like because the default cookie setting seems to have worked fine until this point. Nevertheless, I hope you find this helpful.