-- Arthur M. Kang <[EMAIL PROTECTED]> wrote
(on Thursday, 14 February 2008, 02:50 AM -0800):
> Thanks for the reply.  That clears it up a little.
> 
> As for the logger...This is the error I get no matter where I put the test.  
> In
> the bootstrap or in an action controller.  The exception is not caught or 
> there
> are multiple throws...
> 
> Fatal error: Uncaught exception 'Zend_Db_Statement_Exception' with message
> 'SQLSTATE[42703]: Undefined column: 7 ERROR: column "test" of relation...

It's unclear what backend you're using for the logger, but my guess,
based on the fact that this occurs when you all $log->warn('test'), is
that you're using a DB backend.

The error message above is telling *me* that you're not setting up
either (a) the db table or (b) the log object correctly. Because of the
nature of the error, and where it occurs, it registers as an E_FATAL,
halting execution.

Can you send the code you're using to instantiate the logger, as well as
your table schema for your log table? I'm pretty sure we can diagnose
the issue with that information.


> I looked at the Zend_Log_Writer_Abstract file and in the write method, it says
> '// exception occurs on error'.  What does that mean?  Is the logger supposed
> to fail on error?
> 
>          $log->warn('test') with incorrect event items causes fatal error 
> everywhere
> 
>     Is the fatal error caused by an uncaught exception, or is it just a fatal 
> error?

-- 
Matthew Weier O'Phinney
PHP Developer            | [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/

Reply via email to