[imp] 2.3.7-cvs error
André de Oliveira Castanheira Rodrigues
aocastanheira@cariocaengenharia.com.br
Thu, 18 Oct 2001 15:08:53 -0200 (BRST)
Hi,
I think my horde.php is correct.
I've searched /usr/local/lib/php/DB/sybase.php on line 59, and found the
following :
function connect($dsninfo, $persistent = false)
{
$this->dsn = $dsninfo;
$dbhost = $dsninfo['hostspec'] ? $dsninfo['hostspec'] : 'localhost';
$connect_function = $persistent ? 'sybase_pconnect' : 'sybase_connect';
$conn = $dbhost ? $connect_function($dbhost) : false;
$dsninfo['database'] && @sybase_select_db($dsninfo['database'], $conn);
$this->connection = $conn;
return DB_OK;
}
It doesn't pass $user and $password to sybase_(p)connect either. So I've
modified the function to :
function connect($dsninfo, $persistent = false)
{
$this->dsn = $dsninfo;
$dbhost = $dsninfo['hostspec'] ? $dsninfo['hostspec'] : 'localhost';
$user = $dsninfo['username'] ? $dsninfo['username'] : 'userid';
$password = $dsninfo['password'] ? $dsninfo['password'] : 'password';
$connect_function = $persistent ? 'sybase_pconnect' : 'sybase_connect';
$conn = $dbhost ? $connect_function($dbhost, $user, $password) : false;
$dsninfo['database'] && @sybase_select_db($dsninfo['database'], $conn);
$this->connection = $conn;
return DB_OK;
}
Now I connect to sybase.
Do I have an older version of this file ?
Next, when I try to use imp 2.3.7 from CVS I receive the following error :
Fatal error: Call to undefined function: quote()
in /home/httpd/html/2.3.7/horde/lib/Prefs/sql.php on line 147
Is it all related to older version of php ?
Thanks,
André
Cópia Rich West <Rich.West@divatv.com>:
> It sounds similar to something I hit. I've included an excerpt of the
>
> horde.php config file. Notice that the last line is commented out. I
>
> accidentally had that line in, which was re-initializing the array.
> Check yours to make sure you are not doing something similar.
>
> -Rich
>
>
>
> /**
> ** Preference System Settings
> **/
>
> // What preferences driver should we use? Valid values are 'none'
> // (meaning use system defaults and don't save any user preferences),
> // 'session' (preferences only persist during the login), 'ldap',
> // and 'sql'.
> #$conf['prefs']['driver'] = 'none';
> $conf['prefs']['driver'] = 'sql';
> $conf['prefs']['params'] = array();
> $conf['prefs']['params']['phptype'] = 'mysql';
> $conf['prefs']['params']['hostspec'] = 'localhost';
> $conf['prefs']['params']['username'] = 'yourhordeuser';
> $conf['prefs']['params']['password'] = 'yourhordepasswd';
> $conf['prefs']['params']['database'] = 'yourhordedb';
> $conf['prefs']['params']['table'] = 'horde_prefs';
>
>
> // Any parameters that the preferences driver needs. This includes
> // database or ldap server, username/password to connect with, etc.
> #$conf['prefs']['params'] = array();
>
>
>
> André de Oliveira Castanheira Rodrigues wrote:
>
> >Hi,
> >My horde.php is :
> >
> >/**
> > ** Preference System Settings
> > **/
> >
> >$conf['prefs']['driver'] = 'sql';
> >$conf['prefs']['params'] = array();
> >$conf['prefs']['params']['phptype'] = 'sybase';
> >$conf['prefs']['params']['hostspec'] = 'ccnedb03';
> >$conf['prefs']['params']['username'] = 'AOCASTANHEIRA';
> >$conf['prefs']['params']['password'] = 'xxxxxxxxxxxxx';
> >$conf['prefs']['params']['database'] = 'horde';
> >$conf['prefs']['params']['table'] = 'horde_prefs';
> >
> >I can connect to dataserver from linux prompt. ccnedb03 is the
> dataserver name,
> >not the hostname.
> >
> >I've got only horde and imp. Do I need to get any other module in order
> to work
> >it out ?
> >
> >Thanks,
> >
> >Cópia Chuck Hagenbuch <chuck@horde.org>:
> >
> >>Quoting André de Oliveira Castanheira Rodrigues
> >><aocastanheira@cariocaengenharia.com.br>:
> >>
> >>>After pressing login I receive :
> >>>
> >>>Warning: Sybase: Server message: Login failed. (severity 14,
> procedure
> >>>
> >>N/A)
> >>
> >>>in /usr/local/lib/php/DB/sybase.php on line 59
> >>>
> >>Your preferences settings aren't quite right; you can't log in to
> the
> >>database.
> >>Check the username, password, etc.
> >>
> >>>What's the meaning of Folder prefix on index.php ?
> >>>
> >>If your IMAP server makes available more of your home directory or
> other
> >>
> >>namespace than you want to show, then you can put the piece of it
> that
> >>you
> >>actually want to display in this setting. For example, if your
> server
> >>lists
> >>everything in your home directory, but your folders are just in
> ~/mail,
> >>then
> >>you should set this to 'mail/'.
> >>
> >>>How can I hide that ?
> >>>
> >>Lock the 'folders' preference in imp/config/prefs.php.
> >>
> >>-chuck
> >>
> >>--
> >>Charles Hagenbuch, <chuck@horde.org>
> >>"What was and what may be lie, like children whose faces we cannot
> see,
> >>in
> >>the arms of silence. All we ever have is here, now." - Ursula K. Le
> >>Guin
> >>
> >>--
> >>IMP mailing list: http://horde.org/imp/
> >>Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
> >>Frequently Asked Questions: http://horde.org/faq/
> >>To unsubscribe, mail: imp-unsubscribe@lists.horde.org
> >>
> >
> >
> >
> >André de Oliveira Castanheira Rodrigues
> >Carioca Engenharia
> >21 3891-2200
> >R: 2325
> >
>
> --
> Richard West mailto:richard.west@divatv.com
> Sr. Systems Administrator
> Diva - Princeton, NJ http://www.divatv.com
>
>
>
>
> --
> IMP mailing list: http://horde.org/imp/
> Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe@lists.horde.org
>
André de Oliveira Castanheira Rodrigues
Carioca Engenharia
21 3891-2200
R: 2325