Re: [phpOpenTracker-User] v1.2 first bugs :)
Jean-Christian Imbeault <[email protected]>
| Newsgroups | gmane.comp.web.phpopentracker.general |
|---|---|
| Message-ID | <[email protected]> |
Sebastian Bergmann wrote:
> Anyway, this is a very rare situation. I don't know why this
> $_SERVER variable is not set in your environment.
Here's one case where the needed SERVER vars are not set. My php.ini has
an auto_prepend in it that includes phpOpenTracker :)
# pear list
Notice: Undefined index: HTTP_USER_AGENT in [...]
phpOpenTracker Error: ERROR: column "returning_visitor" is of type
boolean but expression is of type integer
You will need to rewrite or cast the expression
#1 Would it be possible to get your error handler to print out the file
and line number where the error occurred? That way it would be easy to
find out where the 'bad' SQL queries are.
#2 Would it be possible for phpOpenTracker to not simply exit() if there
is an error, but just stop processing gracefully. I don't want my web
site to show a blank page when phpOpenTracker dies ... phpOpenTracker is
not vital to the display of the web site page so even if it dies I want
to continue processing ... Can you instead use something like
trigger_error($errMsg, E_USER_NOTICE)?
Thanks,
Jean-Christian Imbeault
-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps