[turba] SUMMARY - Re: the "undefined index" problem, too

David T-G davidtg-horde at justpickone.org
Tue Aug 19 04:14:39 PDT 2003


Hi again --

...and then David T-G said...
% 
% I also have the apparently-common "undefined index" when connecting to
% Turba...  I get it for businesscategory, workphone, homephone, cellphone,
% and homeaddress.

This one is amazingly simple.  THE SOURCE CODE AS SHIPPED IS INCOMPLETE!

In Turba's config/sources.php file you have a section for a personal
address book.  Now, even though I am not using LDAP but SQL, I had
errors.

The problem is that these items are specified in the sources.php file
both under 'map' and 'search', but they are NOT defined in Turba's
config/attributes.php file!  Uh oh.  The answer, of course, is to define
them.  I added (if you'll excuse the long lines)

  $attributes['businesscategory'] = array ( 'type' => 'multiline', 'desc' => _("Business Category") ) ;
  $attributes['homeaddress'] = array ( 'type' => 'multiline', 'desc' => _("Home Address") ) ;
  $attributes['homephone'] = array ( 'type' => 'phone', 'desc' => _("Home Phone") ) ;
  $attributes['workphone'] = array ( 'type' => 'phone', 'desc' => _("Work Phone") ) ;
  $attributes['cellphone'] = array ( 'type' => 'phone', 'desc' => _("Cell Phone") ) ;

Until the source code gets fixed, a FAQ entry (as well as an appearance
in the mailing list archives) will have to do.


HTH & HAND

:-D
-- 
David T-G                      * There is too much animal courage in 
(play) davidtg at justpickone.org * society and not sufficient moral courage.
(work) davidtgwork at justpickone.org  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/      Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.horde.org/archives/turba/attachments/20030819/d6a44552/attachment.bin


More information about the turba mailing list