2 Nov 2003 19:07
Re: turning attention to undefined indices
Chuck Hagenbuch <chuck <at> horde.org>
2003-11-02 18:07:01 GMT
2003-11-02 18:07:01 GMT
[cc:ing the doc list on this in case someone is inspired to turn it into something postable/included in the Turba docs.] Quoting "Eric S. Johansson" <esj <at> harvee.org>: > >>> Notice: Undefined index: businesscategory in > >>> /var/www/html/horde/turba/templates/browse/search.inc on line 14 > > > > > > These are not database errors. > > they aren't? Well that makes me feel like a goldplated fool. I spend > most of my time in Python and this kind error (KeyError) comes up on > database problems as well so I made a bad assumption. When I searched > the Web for solutions to this problem, I found lots of unanswered > requests for similar issues. Well, mostly those requests were answered by telling people to fix their configuration files, since the root of the problem is that two of your config files don't match up. However, for posterity, the lists, etc., here's what's going on. Turba has a system of defining what is in a directory/addressbook/whatever you want to call it that is necessarily complicated by reason that it is flexible enough to map to pretty much anything with zero code changes, only config tweaks. In config/sources.php, for every backend that you use in Turba, you configure a "map". The map defines a mapping between whatever fields exist in the backend,(Continue reading)
RSS Feed