Logging with SQL + maintaince screen

Dejan owl@drenik.net
Wed, 10 Apr 2002 12:36:10 +0200


Hi,

I have a problem configuring horde/imp to do loging trough Mysql.
But when I try to login/logon I get a following error:
Warning: Undefined index: dsn in /usr/local/lib/php/Log/sql.php on line 55
Fatal error: Call to undefined function: query() in
/usr/local/lib/php/Log/sql.php on line 114

I looked trough /usr/local/lib/php/Db.php and there is no query method
defined.

Also i cant remove maintaince screen when i login ( I readed all relevant
documentation but my imp/conf/prefs.php dosen't contain line
$_prefs['do_maintenance']... ).

Any help would be appriciated.


Slackware 8.0
Horde 2.0/Imp 3.0/Turba 1.0
Php - 4.1.2
./configure --with-apache=/usr/local/src/apache_1.3.23 --enable-force-cgi-
redirect --with-config-file-path=/etc --enable-track-vars
--with-xml  --with-imap --with-gettext
Apache 1.3.23
Mysql database is located on another machine
horde/test.php
Gettext Support: Yes
IMAP Support: Yes
MySQL Support: Yes
XML Support: Yes
PEAR - Yes
Recent PEAR - Yes
Mail::RFC822 - Yes
Log - Yes
DB - Yes


My conf/horde.php looks like:
$conf['log']['type'] = 'sql';
$conf['log']['name'] = 'log_table'; -- definition of table is as from
/usr/local/lib/php/Log/sql.php
$conf['log']['priority'] = LOG_NOTICE;
$conf['log']['ident'] = 'HORDE';
$conf['log']['params'] = array();
 $conf['log']['params']['phptype'] = 'mysql';
 $conf['log']['params']['hostspec'] = 'my.host.com';
 $conf['log']['params']['username'] = 'horde';
 $conf['log']['params']['password'] = '*******';
 $conf['log']['params']['database'] = 'horde';
 $conf['log']['params']['log_table'] = 'log_table';