[imp] Preferences not working with updated PEAR

Giovanni Meneghetti gmeneghetti@infvic.it
Tue, 11 Sep 2001 11:21:09 +0200


I've installed IMP-cvs, but preferences aren't saved in mysql.

I've done the "make install" on pear directory.

In horde/config/horde.php:
$conf['auth']['driver'] = 'imap';
$conf['auth']['params'] = array();
$conf['auth']['params']['server'] = 'server.domain.com';
$conf['auth']['params']['port'] = '143';
$conf['auth']['params']['protocol'] = 'imap';

$conf['prefs']['driver'] = 'sql';
$conf['prefs']['params'] = array();
$conf['prefs']['params']['phptype'] = 'mysql';
$conf['prefs']['params']['hostspec'] = 'localhost';
$conf['prefs']['params']['username'] = 'hordemgr';
$conf['prefs']['params']['password'] = 'XXX';
$conf['prefs']['params']['database'] = 'horde';
$conf['prefs']['params']['table'] = 'horde_prefs';

----
In horde/config/registry.php
$this->registry['auth']['login'] = 'imp';
$this->registry['auth']['logout'] = 'imp';

IMP 2.3.7-cvs
PHP Version 4.0.8-dev
Linux 2.4.3-mdk

table horde_users has fields : user_id and user_pass.
table horde_prefs has fields : pref_uid, pref_scope, pref_name,
pref_value.

Does anyone have an idea what the problem is?

Regards,
Giovanni.


>I had similar problem today after trying to update.
>The problem is that horde_prefs uid has changed to prefs_uid and scope
->
>prefs_scope. All you have to do is update your db with the name
changes.
>And it will work like it should :)

You are refering to prefs_uid. The S a typo, isn't it ?