[horde] PHP Error

Michael J Rubinsky mrubinsk at horde.org
Wed Oct 1 13:39:44 UTC 2014


Quoting Hanns Mattes <hanns at hannsmattes.de>:

> 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?

Are you running Git? If so, try what I just pushed. If not, it's this commit:

https://github.com/horde/horde/commit/00fdffe38ea16ae8792666eddc3d0e116ba5ec3b

There were some other changes, but this commit should be the culprit.



-- 
mike
The Horde Project
http://www.horde.org
https://www.facebook.com/hordeproject
https://www.twitter.com/hordeproject
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5869 bytes
Desc: S/MIME Signature
URL: <http://lists.horde.org/archives/horde/attachments/20141001/728e2280/attachment.bin>


More information about the horde mailing list