6.0.0-beta6
4/10/26

[#10086] ldap search has error
Summary ldap search has error
Queue Turba
Queue Version 3.0.2
Type Bug
State No Feedback
Priority 1. Low
Owners
Requester whatdoyouwant (at) gmail (dot) com
Created 5/16/11 (5443 days ago)
Due
Updated 7/1/11 (5397 days ago)
Assigned 5/16/11 (5443 days ago)
Resolved 7/1/11 (5397 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
07/01/2011 08:15:07 PM Jan Schneider State ⇒ No Feedback
 
05/16/2011 03:45:23 PM Jan Schneider Comment #4
State ⇒ Feedback
Reply to this comment
This rather sounds like a broken configuration. Please upload your 
backend.local.php.
05/16/2011 03:16:40 PM whatdoyouwant (at) gmail (dot) com Comment #3 Reply to this comment
so where I said that was line 113 I was mistaken...it's line 80 where 
I added that if statement..
05/16/2011 03:15:02 PM whatdoyouwant (at) gmail (dot) com Comment #2 Reply to this comment
by the way, this happens in turba when I search an ldap address book 
(a shared one)
05/16/2011 03:13:40 PM whatdoyouwant (at) gmail (dot) com Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ ldap search has error
Queue ⇒ Turba
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
first the fix:
turba/templates/browse/row.inc :

    if (!isset($this->variables[$this->columns[$c - 1]])) {
         if ($type == 'email') {
             $this->variables[$this->columns[$c - 1]] =
                 new Horde_Form_Variable('', $this->columns[$c - 1],
                                         Horde_Form::getType('html'), false);
         } else {
                 if ($type != '') // THIS IS THE LINE THAT FIXES IT 
(for me) (line 113)
             $this->variables[$this->columns[$c - 1]] =
                 new Horde_Form_Variable('', $this->columns[$c - 1],
                                         Horde_Form::getType($type, $params),
                                         false);
         }
     }


and the problem:
A fatal error has occurred
Nonexistant class "Horde_Form_Type_" for field type ""
1. Turba_View_List->display() /var/www/html/home/turba/search.php:276
2. Turba_View_List->getPage() /var/www/html/home/turba/lib/View/List.php:188
3. Turba_View_List->_get() /var/www/html/home/turba/lib/View/List.php:255
4. include() /var/www/html/home/turba/lib/View/List.php:406
5. Horde_Form->getType() /var/www/html/home/turba/templates/browse/row.inc:82
Details
The full error message is logged in Horde's log file, and is shown 
below only to administrators. Non-administrative users will not see 
error details.
Horde_Exception Object
(
     [details] =>
     [message:protected] => Nonexistant class "Horde_Form_Type_" for 
field type ""
     [string:Exception:private] =>
     [code:protected] => 0
     [file:protected] => /usr/share/pear/Horde/Form.php
     [line:protected] => 163
     [trace:Exception:private] => Array
         (
             [0] => Array
                 (
                     [file] => 
/var/www/html/home/turba/templates/browse/row.inc
                     [line] => 82
                     [function] => getType
                     [class] => Horde_Form
                     [type] => ->
                     [args] => Array
                         (
                             [0] =>
                             [1] => Array
                                 (
                                 )

                         )

                 )

             [1] => Array
                 (
                     [file] => /var/www/html/home/turba/lib/View/List.php
                     [line] => 406
                     [args] => Array
                         (
                             [0] => 
/var/www/html/home/turba/templates/browse/row.inc
                         )

                     [function] => include
                 )

             [2] => Array
                 (
                     [file] => /var/www/html/home/turba/lib/View/List.php
                     [line] => 255
                     [function] => _get
                     [class] => Turba_View_List
                     [type] => ->
                     [args] => Array
                         (
                             [0] => 0
                             [1] => Turba_View_List_PageFilter Object
                                 (
                                     [_min:protected] => 0
                                     [_max:protected] => 100
                                     [_count:protected] => 1
                                 )

                         )

                 )

             [3] => Array
                 (
                     [file] => /var/www/html/home/turba/lib/View/List.php
                     [line] => 188
                     [function] => getPage
                     [class] => Turba_View_List
                     [type] => ->
                     [args] => Array
                         (
                             [0] => 0
                             [1] => 0
                             [2] => 100
                         )

                 )

             [4] => Array
                 (
                     [file] => /var/www/html/home/turba/search.php
                     [line] => 276
                     [function] => display
                     [class] => Turba_View_List
                     [type] => ->
                     [args] => Array
                         (
                         )

                 )

         )

     [previous:Exception:private] =>
)

Saved Queries