Jason Wilkes wrote:
> So far so good, and all works well. Except for one
> user id (actually id=333), which causes an "internal
> server error". If I put print debugging lines in -
> everything works (even for user 333). If I take them
> out again all other users work fine except 333.
> Can anybody throw any light on this??

Yes.  You are returning the value of the last operation, 333, when 
$answer is not true.  To fix it, you should return DECLINED (or OK if no 
other access handlers should be allowed to run).

Why does it work when you debug?  Because you change the value of the 
last operation.

> BTW: when the "internal server error" happens there is
> no log of it in the error_log - although the HTTP
> response code in access_log is 333 (which I don't
> think is a valid response code).

There is no server error.  Your browser is just interpreting the 
response of 333 as a sign that something went wrong and putting a pretty 
face on it.  Microsoft browsers are notorious for this, although you can 
turn the behavior off.

- Perrin

Reply via email to