[turba] Tons of PHP ERROR about indexes

LALOT Dominique dom.lalot at gmail.com
Thu Feb 2 08:10:00 UTC 2012


2012/2/1 Michael J Rubinsky <mrubinsk at horde.org>

>
> Quoting LALOT Dominique <dom.lalot at gmail.com>:
>
>  2012/1/31 Michael J Rubinsky <mrubinsk at horde.org>
>>
>>
>>> Quoting LALOT Dominique <dom.lalot at gmail.com>:
>>>
>>>  2012/1/31 LALOT Dominique <dom.lalot at gmail.com>
>>>
>>>>
>>>>  Hello,
>>>>
>>>>>
>>>>> I am trying to get rid of large quantities of such errors, and don't
>>>>> know
>>>>> what to do. PHP which was logging such messages as NOTICE is logging as
>>>>> ERROR.
>>>>> The traces appear with autocompletion (which is working by the way)
>>>>> Can we do something to avoid that?
>>>>>
>>>>> Thanks
>>>>>
>>>>> Dom
>>>>>
>>>>> Jan 31 09:06:40 horde41 HORDE: [turba] PHP ERROR: Undefined index:
>>>>> fields
>>>>> [pid 13478 on line 102 of "/var/www/horde/turba/lib/****Object.php"]
>>>>>
>>>>> Jan 31 09:06:40 horde41 HORDE: [turba] PHP ERROR: Invalid argument
>>>>> supplied for foreach() [pid 13478 on line 102 of
>>>>> "/var/www/horde/turba/lib/****Object.php"]
>>>>>
>>>>> Jan 31 09:06:40 horde41 HORDE: [turba] PHP ERROR: Undefined index:
>>>>> format
>>>>> [pid 13478 on line 105 of "/var/www/horde/turba/lib/****Object.php"]
>>>>>
>>>>> Jan 31 09:06:40 horde41 HORDE: [turba] PHP ERROR: Undefined index:
>>>>> fields
>>>>> [pid 13478 on line 102 of "/var/www/horde/turba/lib/****Object.php"]
>>>>>
>>>>> Jan 31 09:06:40 horde41 HORDE: [turba] PHP ERROR: Invalid argument
>>>>> supplied for foreach() [pid 13478 on line 102 of
>>>>> "/var/www/horde/turba/lib/****Object.php"]
>>>>>
>>>>> Jan 31 09:06:40 horde41 HORDE: [turba] PHP ERROR: Undefined index:
>>>>> format
>>>>> [pid 13478 on line 105 of "/var/www/horde/turba/lib/****Object.php"]
>>>>>
>>>>> Jan 31 09:06:40 horde41 HORDE: [turba] PHP ERROR: Undefined index:
>>>>> fields
>>>>> [pid 13478 on line 102 of "/var/www/horde/turba/lib/****Object.php"]
>>>>>
>>>>> Jan 31 09:06:40 horde41 HORDE: [turba] PHP ERROR: Invalid argument
>>>>> supplied for foreach() [pid 13478 on line 102 of
>>>>> "/var/www/horde/turba/lib/****Object.php"]
>>>>>
>>>>> Jan 31 09:06:40 horde41 HORDE: [turba] PHP ERROR: Undefined index:
>>>>> format
>>>>> [pid 13478 on line 105 of "/var/www/horde/turba/lib/****Object.php"]
>>>>>
>>>>>
>>>>>  I've added a test:
>>>>           *if (isset($this->driver->map[$****attribute]['fields'])){*
>>>>
>>>>             foreach ($this->driver->map[$****attribute]['fields'] as
>>>>
>>>> $field) {
>>>>               $args[] = $this->getValue($field);
>>>>             }
>>>>             return
>>>> Turba::formatCompositeField($****this->driver->map[$attribute]**
>>>> [**'format'],
>>>>
>>>> $args);
>>>>           }
>>>>
>>>> I suppose that something could be wrong in turba backends but I have'nt
>>>> been able to find the cause.
>>>> Trying to trace, that condition is true in getValue:
>>>>    if (isset($this->driver->map[$****attribute]) &&
>>>>           is_array($this->driver->map[$****attribute])) {
>>>>
>>>> and the array just contains 'name', without fields or format
>>>>
>>>
> So, you are saying that $this->driver->map[$attribute] == array('name')?
> That is bizarre. What is the value of $attribute when this happens?
>

Feb  2 08:47:21 horde41 HORDE: [turba] TRACEDOM freebusyUrl [pid 7021 on
line 102 of "/var/www/horde/turba/lib/Object.php"]
Feb  2 08:47:21 horde41 HORDE: [turba] TRACEDOM search [pid 7021 on line
102 of "/var/www/horde/turba/lib/Object.php"]
Feb  2 08:47:21 horde41 HORDE: [turba] PHP ERROR: Undefined index: fields
[pid 7021 on line 104 of "/var/www/horde/turba/lib/Object.php"]
Feb  2 08:47:21 horde41 HORDE: [turba] PHP ERROR: Invalid argument supplied
for foreach() [pid 7021 on line 104 of
"/var/www/horde/turba/lib/Object.php"]
Feb  2 08:47:21 horde41 HORDE: [turba] PHP ERROR: Undefined index: format
[pid 7021 on line 107 of "/var/www/horde/tu

search seems to be the culprit and there is inside map
        'search' => array(
           'name',
         ),

search is inside map and cause what I noticed.. Don't know when that
mistake has been done!

Thanks

Dom


-- 
Dominique LALOT
Ingénieur Systèmes et Réseaux
http://annuaire.univmed.fr/showuser.php?uid=lalot


More information about the turba mailing list