Hmmm. I found a subtle bug last night I have to fix today. I found it because of the link I put up to ftrain (below.) Evidently somebody, we'll call him or her A (a signed in user here, but not me) followed the link to ftrain. Good. So then A shows up in Ftrain's referer logs (browser, ip address, OS, and the URL of the link they followed to get to the page.) The subtle part is that A got to my page from the front page, where my page was showing as having new posts. So A clicked through to my page by clicking on the [posts] which uses the /jim/index.php3?new URL which will print out only the new (to user A) posts on my page. The problem is that someone from ftrain followed the link back in order to check out my page and see who was linking to them. Cool. I'd like that guy (if it was him) to check us out. Unfortunately, he came back in with the /jim/index.php3?new (instead of just /jim/ or just /jim/index.php3) and because he didn't have the cookie there were in effect no new posts for him to read, so the page didn't show anything. D'oh. This is easily fixed. I just have to check if the URL contains ?new (which I look for anyway, of course, so that it can act on the ?new command) and then double check that the user is known. If not, it should just default back to index.php3. Easy. Something like:

if (isset($query_string)) {
     if (!isset($dmtreecookie)) {
          Location("header:http://www.digitalmediatree.com/jim/")
     }
}

The problem, like so much else in this project, is not so much fixing something that is broken. The problem is seeing all the possible ways something might be quietly broken (that is: broken, but still working.) So, I'm sorry to have missed an honored visitor, but I did learn something. I'll have that fixed by later today.
- jim 3-03-2001 3:40 pm




add a comment to this page:

Your post will be captioned "posted by anonymous,"
or you may enter a guest username below:


Line breaks work. HTML tags will be stripped.