[Tickets #2896] NEW: sources.php IMSP bug fix

bugs@bugs.horde.org bugs at bugs.horde.org
Mon Oct 31 13:45:33 PST 2005


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=2896
-----------------------------------------------------------------------
 Ticket             | 2896
 Created By         | af325798 at ohio.edu
 Summary            | sources.php IMSP bug fix
 Queue              | Turba
 Version            | 2.0.4
 State              | Unconfirmed
 Priority           | 2. Medium
 Type               | Bug
 Owners             | 
-----------------------------------------------------------------------


af325798 at ohio.edu (2005-10-31 13:45) wrote:

I am using Turba 2.0.4 with Horde 3.0.5 and Imp H3 4.0.4, I configured Horde
to use IMAP and store prefferences in IMSP. After I installed Turba, and
picked 'imsp'  in the 'Name of client addressbook' field. I also fixed typo
at line  491: $GLOBASL instead of $GLOBALS.

The address book would not work (blank frame) and there would be the
following messages in the php_error_log:

[28-Oct-2005 16:34:20] PHP Notice:  Undefined index:  imsp in
/opt/webmail/apache/htdocs/horde/turba/config/sources.php on line 490
[28-Oct-2005 16:34:20] PHP Notice:  Undefined index:  imsp in
/opt/webmail/apache/htdocs/horde/turba/config/sources.php on line 491
[28-Oct-2005 16:34:20] PHP Notice:  Undefined index:  imsp in
/opt/webmail/apache/htdocs/horde/turba/config/sources.php on line 492

What I discovered is: '$GLOBALS[conf][imsp]' is undefied, and that is why
the lines 490-492 in sources.php:
            'server'   => $GLOBALS['conf']['imsp']['server'],
            'port'     => $GLOBASL['conf']['imsp']['port'],
            'auth_method' => $GLOBALS['conf']['imsp']['auth_method'],

don't work properly, essentially leaving 'server', 'port', and 'auth_method'
empty. I have replaced them with:

            'server'   => $GLOBALS['prefs']->params['server'],
            'port'     => $GLOBALS['prefs']->params['port'],
            'auth_method' => $GLOBALS['prefs']->params['auth_method'],

and the IMSP address book started to work OK.
Hope this helps.

Alexander

P.S. This issue was also mentioned in this mailing list message:

Author: John Jacob
Date: 2005-10-21 18:31 -400
To: turba
Subject: [turba] Turba 2.0.4 undefined index





More information about the bugs mailing list