So Much For That

February 19th, 2005 No Comments »

Well, in my previous post I noted how I hoped to repeat the fun I had last weekend with hiking. However, it is not to be. Instead I am sick. Probably not as sick as I will be tomorrow or in a few days, but sick nonetheless. I’m at the point where everything feels sore and puffy.

After spending the better part of the morning in my office yesterday, I was told that the woman who uses my office on the days I work from home has strep throat. At that point, I think it was a little late. I had been typing on my keyboard and using the phone, etc., all morning. All I can hope for now is that echinacea will save the day.

The American River

February 18th, 2005 No Comments »

Last weekend was a gorgeous weekend…and the hiking was spectacular. I hope to repeat it this weekend if the weather can cooperate.

WordPress IIS Logins Continued

February 17th, 2005 1 Comment »

Well, a final solution to the IIS logins problem is still being worked out. So far the best idea seems to create a function for redirects instead of using the header() function outright. I have already replaced each instance of mine with this:

if (!function_exists(’redirectto’)):
// Take into account IIS issues in cookies and redirection
function redirectto($wheretogo)
{
if (strstr(php_uname(), ‘Windows’))
header(”Refresh: 0;url=$wheretogo”);
else
header(”Location: $wheretogo”);

}
endif;

Then instead of using something like:
header(”Location:”.$redirectVar);

Just replace it with:
redirecto($redirectVar);

The one problem with this method is that using the function php_uname() and looking for ‘Windows’ might not be a good solution since the Apache server also runs on Windows. Although this is true, I can’t see a problem with the Refresh header being used even if it isn’t an IIS server.

For the time being, the above fix is working like a charm. If you need to do something like this yourself simply put the above function in your /wp-includes/functions.php file. Then replace each instance of anything like header(”Location: myfile.php”) with redirectto(’myfile.php’).

For a complete list of locations this needs to be done head over to Toby Simmons site where he has a complete rundown on what pages and lines need to be altered.

Yay, I have my site back!

February 16th, 2005 No Comments »

After upgrading to Wordpress 1.5 I found myself unable to login to the admin section. This has been going on for two days. I have not been amused.

Turns out it is because of a bug in IIS whereby cookie header information is discarded if it is written and then followed by the PHP header(location:) function. Because of this the login information cookie is never set and….no login.

The solution involves using a META REFRESH instead of the header() redirect. I posted some code to the WordPress bug reporting site. We’ll see what happens with it. Already other users are reporting that it works for them as well. Check out the steps involved in fixing this issue.

Last Saturday

February 8th, 2005 No Comments »

Last Saturday was a great day! Not only because it was a beautiful spring-sneak-peak day, but because we went hiking at Rockville park in Fairfield. Here’s the view:

Rockville park