[horde] PHP Error

Hanns Mattes hanns at hannsmattes.de
Wed Oct 1 09:01:26 UTC 2014


Hi,

Michael J Rubinsky <mrubinsk at horde.org> schrieb:

thanks for the hints.

>Quoting Hanns Mattes <hanns at hannsmattes.de>:
>
>> Hi,
>>
>> Michael J Rubinsky <mrubinsk at horde.org> schrieb:
>>
>>> Quoting Hanns Mattes <hanns at hannsmattes.de>:
>>>
>>>> Hi,
>>>>
>>>> my horde.log has al lot of:
>>>>
>>>>> 2014-09-21T23:23:44+00:00 WARN: HORDE PHP ERROR: Invalid argument
>>>>> supplied for foreach() [pid 8895 on line 58 of
>>>>> "/usr/share/php5/PEAR/Horde/ActiveSync/Folder/RI.php"]
>>>>
>>>>
>>>> AFAICS anything is working fine, so I ignore the warning, but any idea,
>>>> what's about it?
>>>
>>> I don't really see anyway for $this->_contacts to be anything BUT an
>>> array, so I'm not sure what's going on for you. Can you find out what
>>> the value of $this->_contacts is before that loop?
>>
>> Err, no. How do I do that? I've placed a Horde::debug($variable);
>> statement in the code, but there was no horde_debug.txt created.
>
>If you put that line right before line 58 in RI.php, and you are not
>getting any output but are still getting the error - the only thing I
>can think of is that maybe the permissions on the tmp directory are
>not set properly.

horde_debug.txt shows:

014-10-01T08:52:56+00:00 DEBUG: Backtrace:
 1. Horde_Rpc_ActiveSync->getResponse() /usr/share/php5/PEAR/www/horde/rpc.php:159
 2. Horde_ActiveSync->handleRequest() /usr/share/php5/PEAR/Horde/Rpc/ActiveSync.php:143
 3. Horde_ActiveSync_Request_Base->handle() /usr/share/php5/PEAR/Horde/ActiveSync.php:880
 4. Horde_ActiveSync_Request_Sync->_handle() /usr/share/php5/PEAR/Horde/ActiveSync/Request/Base.php:253
 5. Horde_ActiveSync_Collections->pollForChanges() /usr/share/php5/PEAR/Horde/ActiveSync/Request/Sync.php:296
 6. Horde_ActiveSync_Collections->getCollectionChangeCount() /usr/share/php5/PEAR/Horde/ActiveSync/Collections.php:1086
 7. Horde_ActiveSync_Collections->getCollectionChanges() /usr/share/php5/PEAR/Horde/ActiveSync/Collections.php:1271
 8. Horde_ActiveSync_State_Base->getChanges() /usr/share/php5/PEAR/Horde/ActiveSync/Collections.php:1235
 9. Horde_Core_ActiveSync_Driver->getServerChanges() /usr/share/php5/PEAR/Horde/ActiveSync/State/Base.php:433
10. Horde_ActiveSync_Folder_RI->setChanges() /usr/share/php5/PEAR/Horde/Core/ActiveSync/Driver.php:1015
11. Horde::debug() /usr/share/php5/PEAR/Horde/ActiveSync/Folder/RI.php:58

2014-10-01T08:53:11+00:00 DEBUG: Backtrace:
 1. Horde_Rpc_ActiveSync->getResponse() /usr/share/php5/PEAR/www/horde/rpc.php:159
 2. Horde_ActiveSync->handleRequest() /usr/share/php5/PEAR/Horde/Rpc/ActiveSync.php:143
 3. Horde_ActiveSync_Request_Base->handle() /usr/share/php5/PEAR/Horde/ActiveSync.php:880
 4. Horde_ActiveSync_Request_Sync->_handle() /usr/share/php5/PEAR/Horde/ActiveSync/Request/Base.php:253
 5. Horde_ActiveSync_Collections->pollForChanges() /usr/share/php5/PEAR/Horde/ActiveSync/Request/Sync.php:296
 6. Horde_ActiveSync_Collections->getCollectionChangeCount() /usr/share/php5/PEAR/Horde/ActiveSync/Collections.php:1086
 7. Horde_ActiveSync_Collections->getCollectionChanges() /usr/share/php5/PEAR/Horde/ActiveSync/Collections.php:1271
 8. Horde_ActiveSync_State_Base->getChanges() /usr/share/php5/PEAR/Horde/ActiveSync/Collections.php:1235
 9. Horde_Core_ActiveSync_Driver->getServerChanges() /usr/share/php5/PEAR/Horde/ActiveSync/State/Base.php:433
10. Horde_ActiveSync_Folder_RI->setChanges() /usr/share/php5/PEAR/Horde/Core/ActiveSync/Driver.php:1015
11. Horde::debug() /usr/share/php5/PEAR/Horde/ActiveSync/Folder/RI.php:58

and so on

Any ideas?

Regards

Hanns


More information about the horde mailing list