[turba] Error with Ldap.php

Julien Savoie julien.savoie at usainteanne.ca
Mon Jun 3 22:34:00 UTC 2013


Jan Schneider <jan <at> horde.org> writes:

> 
> 
> Zitat von Hanns Mattes <hanns <at> hannsmattes.de>:
> 
> > Hei,
> >
> > Jan Schneider <jan <at> horde.org> schrieb:
> >
> >> Zitat von Hanns Mattes <hanns <at> hannsmattes.de>:
> >>
> >>> Hi,
> >>>
> >>> I've got a lot of errors in horde.log:
> >>>
> >>> 2013-06-01T12:49:00+02:00 WARN: HORDE [turba] PHP ERROR: Invalid
> >>> argument supplied for foreach() [pid 28002 on line 495 of
> >>> [...]
> >>>
> >>> As far as I can see turba is working fine (and therefore I can't say,
> >>> when it started to show the warning). The error occurs, when I list
> >>> contacts. Is it safe to ignore the warning or is there anything, I
> >>> should investigate?
> >>
> >> It shouldn't happen anyway. Please put a:
> >> Horde::debug($criteria);
> >> on line 161 of that file and report back the results.
> >
> > No results. There's no additional output.
> >
> > Regards Hanns
> 
> http://wiki.horde.org/Doc/Dev/DebugH4


What I'm getting when I debug that variable.

Backtrace:
1. Turba_Driver->search() /usr/share/horde5/turba/search.php:132
2. Turba_Driver_Ldap->_search() /usr/share/horde5/turba/lib/Driver.php:604
3. Turba_Driver_Ldap->_buildSearchQuery()
/usr/share/horde5/turba/lib/Driver/Ldap.php:165
4. Turba_Driver_Ldap->_buildSearchQuery()
/usr/share/horde5/turba/lib/Driver/Ldap.php:498
5. Horde::debug() /usr/share/horde5/turba/lib/Driver/Ldap.php:494

2013-06-03T22:17:12+00:00 DEBUG: Variable information:
array(1) {
  [0]=>
  array(5) {
    ["field"]=>
    string(2) "cn"
    ["op"]=>
    string(4) "LIKE"
    ["test"]=>
    string(7) "cynthia"
    ["begin"]=>
    bool(false)
    ["approximate"]=>
    bool(false)
  }
}

Backtrace:
1. Turba_Driver->search() /usr/share/horde5/turba/search.php:132
2. Turba_Driver_Ldap->_search() /usr/share/horde5/turba/lib/Driver.php:604
3. Turba_Driver_Ldap->_buildSearchQuery()
/usr/share/horde5/turba/lib/Driver/Ldap.php:165
4. Horde::debug() /usr/share/horde5/turba/lib/Driver/Ldap.php:494

2013-06-03T22:17:12+00:00 DEBUG: Variable information:
array(5) {
  ["field"]=>
  string(2) "cn"
  ["op"]=>
  string(4) "LIKE"
  ["test"]=>
  string(7) "cynthia"
  ["begin"]=>
  bool(false)
  ["approximate"]=>
  bool(false)
}

Once again: 
2013-06-03T22:17:12+00:00 WARN: HORDE [turba] PHP ERROR: Invalid argument
supplied for foreach() [pid 16742 on line 506 of
"/usr/share/horde5/turba/lib/Driver/Ldap.php"]





More information about the turba mailing list