[horde] Ingo strpos() and substr() errors - Locks Up Server

Brian Spraker spraker at yahoo.com
Sun Oct 9 22:26:11 UTC 2011


> Oct  9 08:08:43 decatur HORDE: [ingo] PHP ERROR: Array to string conversion [pid 

> 24172 on line 305 of 
> "/home/bsntech-com/www/webmail-new/pear/php/Horde/Mime.php"]
> Oct  9 08:08:43 decatur HORDE: [ingo] PHP ERROR: strpos() expects parameter 1 to 
> be string, array given [pid 24172 on line 310 of 
> "/home/bsntech-com/www/webmail-new/pear/php/Horde/Mime.php"]
> Oct  9 08:08:43 decatur HORDE: [ingo] PHP ERROR: substr() expects parameter 1 to 
> be string, array given [pid 24172 on line 312 of 
> "/home/bsntech-com/www/webmail-new/pear/php/Horde/Mime.php"]
> Oct  9 08:08:43 decatur HORDE: [ingo] PHP ERROR: strpos() expects parameter 1 to 
> be string, array given [pid 24172 on line 315 of 
> "/home/bsntech-com/www/webmail-new/pear/php/Horde/Mime.php"]
> Oct  9 08:08:43 decatur HORDE: [ingo] PHP ERROR: substr() expects parameter 1 to 
> be string, array given [pid 24172 on line 319 of 
> "/home/bsntech-com/www/webmail-new/pear/php/Horde/Mime.php"]
> Oct  9 08:08:43 decatur HORDE: [ingo] PHP ERROR: strpos() expects parameter 1 to 
> be string, array given [pid 24172 on line 326 of 
> "/home/bsntech-com/www/webmail-new/pear/php/Horde/Mime.php"]
> Oct  9 08:08:43 decatur HORDE: [ingo] PHP ERROR: substr() expects parameter 1 to 
> be string, array given [pid 24172 on line 330 of 
> "/home/bsntech-com/www/webmail-new/pear/php/Horde/Mime.php"]
> Oct  9 08:08:43 decatur HORDE: [ingo] PHP ERROR: strpos() expects parameter 1 to 
> be string, array given [pid 24172 on line 333 of 
> "/home/bsntech-com/www/webmail-new/pear/php/Horde/Mime.php"]
> Oct  9 08:08:43 decatur HORDE: [ingo] PHP ERROR: substr() expects parameter 1 to 
> be string, array given [pid 24172 on line 337 of 
> "/home/bsntech-com/www/webmail-new/pear/php/Horde/Mime.php"]
> 
> 
> Those were in the syslog - so they occurred even before changing the logging to 
> another file.
> 
> I did not update the mime_drivers.php file to allow for inline HTML and these 
> errors still occurred - and the fact that it shows that ingo is having the 
> problem means it is something with the filtering system.
> 
> The fact that I fully installed a separate version of pear to ensure there were 
> not problems with that install - and re-installed Horde4 - the only other thing 
> that is left would be the database upgrade - since I did not use a brand new 
> database.
> 
> Brian S.

I'm sure that no one is following this thread anymore, but after further testing, it appears that the problems only occur IF into needs to perform some kind of filter on a message.  It does appear that Ingo may be checking messages - but the only time it goes into the continuous loop and causes the max_execution_time timeout is when there is an actual filter that must be applied.

I did a manual test of this - and when I began receiving messages that would be filtered automatically (and consequently fully deleted), the timeout began occurring right away.  Now that there are not any messages that need filters applied, Horde is acting normally.

Again, this is happening with both Traditional/Dynamic versions.  I'm just quite surprised that no one else has had this issue - especially since I have ruled out any potential pear install problems (since it has been installed separately).

Brian S.

> 
>>> 
>>>> 
>>>>    -- 
>>>>    Horde mailing list
>>>>    Frequently Asked Questions: http://horde.org/faq/
>>>>    To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>>>> 
>>> 
>> 
>


More information about the horde mailing list