[horde] cant seem to define a DSN to log errors in table log_table
Frederic Trudeau
ftrudeau at cam.org
Sat Nov 17 14:40:30 PST 2001
Indeed. Thanks Brent.
I managed to 'fix' my problem. I noticed that in the Log_sql class, the dsn is
defined by the var $conf['dsn'], not $cong['log']['dsn']. Changing the value in
horde.php didnt fix the problem, but everything works fine if I specify the dsn
directly into the class itself;
function Log_sql($log_name, $ident = '', $conf)
{
$this->table = $log_name;
$this->ident = $ident;
// $this->dsn = $conf['dsn'];
$this->dsn = 'mysql://hordemgr:xxxxxxx@localhost/horde';
}
Dont ask why or how, but it works for me now =)
--
Frederic Trudeau
[A]dvanced [S]upport [A]gent
Colocation/Customer Support Agent
CAM Internet -> http://www.cam.org
->
Quoting "Brent J. Nordquist" <bjn at horde.org>:
> On Sat, 17 Nov 2001, Frederic Trudeau <ftrudeau at cam.org> wrote:
>
> > Warning: Undefined index: dsn in /usr/local/lib/php/Log/sql.php on line
> 55
>
> I think both you and Chuck had a typo; it should be "$conf" not "$cong" I
> believe.
>
> > Has something to do with PHPlib I guess ?
>
> PHPLIB is no longer used in IMP 3.0, Horde 2.0, etc. (and there was much
> rejoicing).
>
> --
> Brent J. Nordquist <bjn at horde.org> N0BJN / OPN: #horde
> Yahoo!: Brent_Nordquist / AIM: BrentJNordquist / ICQ: 76158942
>
>
>
> --
> Horde mailing list: http://horde.org/horde/
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>
>
---------------------------------------------------------------------
Service de Courrier en-ligne de CAM Internet: http://courrier.cam.org
CAM Internet Webmail Service: http://webmail.cam.org
More information about the horde
mailing list