[horde] Ingo strpos() and substr() errors - Locks Up Server
Brian Spraker
spraker at yahoo.com
Sun Oct 9 14:39:54 UTC 2011
>> ----- Original Message -----
>>> From: Brian Spraker <spraker at yahoo.com>
>>> To: "horde at lists.horde.org" <horde at lists.horde.org>
>>> Cc:
>>> Sent: Saturday, October 8, 2011 8:31 AM
>>> Subject: [horde] Ingo strpos() and substr() errors - Locks Up Server
>>>
>>> OK - everything is working - for the most part.
>>>
>>> If someone chooses Automatic or Dynamic for login, no problems;
> everything
>> works
>>> fine. But if someone chooses Traditional for the login, Ingo throws a
> huge
>>
>>> number of errors and continuously writes them to the log file over and
> over
>>
>>> again. The user sits on the Login screen as it tries to log them in -
> but
>>> nothing happens. It does this until the max_execution_time (or
> whatever it
>> is)
>>> in the PHP config is reached and then stops.
>>>
>>> Here are all of the errors - these repeat over and over again. It
> also
>> only
>>> affects those that have at least one rule setup. I don't think it
> is
>>> feasible to delete all the rules and re-create them - because I
> don't
>> know
>>> who on the system has rules and who does not.
>>>
>>> 2011-10-08T07:58:52-05:00 WARN: HORDE [ingo] PHP ERROR: strpos()
> expects
>>> parameter 1 to be string, array given [pid 17020 on line 310 of
>>> "/usr/share/php/Horde/Mime.php"]
>>> 2011-10-08T07:58:52-05:00 WARN: HORDE [ingo] PHP ERROR: substr()
> expects
>>> parameter 1 to be string, array given [pid 17020 on line 312 of
>>> "/usr/share/php/Horde/Mime.php"]
>>> 2011-10-08T07:58:52-05:00 WARN: HORDE [ingo] PHP ERROR: strpos()
> expects
>>> parameter 1 to be string, array given [pid 17020 on line 315 of
>>> "/usr/share/php/Horde/Mime.php"]
>>> 2011-10-08T07:58:52-05:00 WARN: HORDE [ingo] PHP ERROR: substr()
> expects
>>> parameter 1 to be string, array given [pid 17020 on line 319 of
>>> "/usr/share/php/Horde/Mime.php"]
>>> 2011-10-08T07:58:52-05:00 WARN: HORDE [ingo] PHP ERROR: strpos()
> expects
>>> parameter 1 to be string, array given [pid 17020 on line 326 of
>>> "/usr/share/php/Horde/Mime.php"]
>>> 2011-10-08T07:58:52-05:00 WARN: HORDE [ingo] PHP ERROR: substr()
> expects
>>> parameter 1 to be string, array given [pid 17020 on line 330 of
>>> "/usr/share/php/Horde/Mime.php"]
>>> 2011-10-08T07:58:52-05:00 WARN: HORDE [ingo] PHP ERROR: strpos()
> expects
>>> parameter 1 to be string, array given [pid 17020 on line 333 of
>>> "/usr/share/php/Horde/Mime.php"]
>>> 2011-10-08T07:58:52-05:00 WARN: HORDE [ingo] PHP ERROR: substr()
> expects
>>> parameter 1 to be string, array given [pid 17020 on line 337 of
>>> "/usr/share/php/Horde/Mime.php"]
>>>
>>>
>>> Thank you for any help!
>>>
>>> Brian S.
>>
>> This problem seems to be extremely hit or miss. I've not found any
> rhyme or
>> reason for it. On my account, I have ingo/filters applied when I log in
> and
>> when the mailbox refreshes (about four rules) - but no e-mail addresses in
> the
>> whitelist or blacklist. But, another user that called me - that does not
> have
>> any filters setup (but does have a blacklist with over a dozen e-mail
> addresses)
>> said that they were hanging at the login screen - and they did choose
>> Traditional as the login type. During this time - the customer's
> husband
>> also has an account with me - and he logged in just fine using the
> Traditional
>> method without problems. This user has only one e-mail address in their
>> blacklist - and no filters as well.
>>
>> I had them close out of their web browser and re-open - then go back to the
> site
>> and choose "Automatic". They then were logged in right away.
>>
>> I downloaded the ingo file from the pear.horde.org website and re-set it up
> and
>> re-configured it. This didn't help at all and the issue occurred
> again.
>>
>> But now, I've not been able to reproduce the problem - with logging
> into my
>> account or the other person that had the problem. I've logged in and
> out of
>> my account and the other two user accounts and all is running normally and
> no
>> errors in the log.
>>
>> I've set the log level to debugging so if it happens again, hopefully I
> can
>> maybe get some kind of idea as to what is going on - just hope that the log
> size
>> doesn't get up to 1 GB like it did before with those ingo errors over
> and
>> over again.
>>
>> Brian S.
>
>
> OK - here is the full debug information that is submitted to the log that
> continues to repeat over and over. I finally changed the max_execution_time in
> horde to 45 seconds - so at least a white page will come up when the system
> times out. Now, if I then try to refresh the page, it will continue to time out
> and more errors written to the log. The URL looks like
> http://webserver.com/webmail/imp/. But if I change it to
> http://webserver.com/webmail, then the page will load up normally. The server
> is then completely fine for a period of time - allowing logins to the
> Traditional mail client for those that have had problems - and then after some
> time (maybe a period of non-use of horde - caching issue somewhere?), the
> problem will then resurface yet again. Even after looking at this debug
> information, it doesn't really point to anything. I've searched the web
> in hopes of finding someone else with this same issue - but I cannot uncover
> anything.
>
> For what it is worth, I installed horde webmail edition. I've attempted to
> rename the 'ingo' folder to 'ingo-old' but in doing so, horde
> doesn't work at all at that point. I did modify the
> imp/config/mime_drivers.php and the config/mime_drivers.php files to allow for
> inline HTML display (since it is shut off by default) - so I am not sure if this
> has caused a problem - based upon the messages below pointing to a Mime.php
> file. The caching system for the CSS and JavaScript are set to Off in the Horde
> config and the default lifetime for cache was left alone at 86400 with it stored
> in the filesystem.
>
> OK - and here is the full debug log that continuously repeats thousands of times
> until the execution_time of 45 seconds is met:
>
> 2011-10-08T20:33:47-05:00 WARN: HORDE [ingo] PHP ERROR: strpos() expects
> parameter 1 to be string, array given [pid 11482 on line 310 of
> "/usr/share/php/Horde/Mime.php"]
> 2011-10-08T20:33:47-05:00 DEBUG: HORDE 1. require()
> /home/bsntech-com/www/webmail/imp/index.php:19
> 2. IMP_Mailbox->filterOnDisplay()
> /home/bsntech-com/www/webmail/imp/mailbox.php:230
> 3. IMP_Mailbox->filter()
> /home/bsntech-com/www/webmail/imp/lib/Mailbox.php:653
> 4. IMP_Filter->filter()
> /home/bsntech-com/www/webmail/imp/lib/Mailbox.php:639
> 5. Horde_Registry->call()
> /home/bsntech-com/www/webmail/imp/lib/Filter.php:46
> 6. Horde_Registry->callByPackage() /usr/share/php/Horde/Registry.php:977
> 7. call_user_func_array() /usr/share/php/Horde/Registry.php:1018
> 8. Ingo_Api->applyFilters()
> 9. Ingo_Script_Imap->perform()
> /home/bsntech-com/www/webmail/ingo/lib/Api.php:108
> 10. Horde_Mime::decode()
> /home/bsntech-com/www/webmail/ingo/lib/Script/Imap.php:311
> 11. strpos() /usr/share/php/Horde/Mime.php:310
> 12. Horde::errorHandler()
>
> 2011-10-08T20:33:47-05:00 DEBUG: HORDE [ingo] 1. require()
> /home/bsntech-com/www/webmail/imp/index.php:19
> 2. IMP_Mailbox->filterOnDisplay()
> /home/bsntech-com/www/webmail/imp/mailbox.php:230
> 3. IMP_Mailbox->filter()
> /home/bsntech-com/www/webmail/imp/lib/Mailbox.php:653
> 4. IMP_Filter->filter()
> /home/bsntech-com/www/webmail/imp/lib/Mailbox.php:639
> 5. Horde_Registry->call()
> /home/bsntech-com/www/webmail/imp/lib/Filter.php:46
> 6. Horde_Registry->callByPackage() /usr/share/php/Horde/Registry.php:977
> 7. call_user_func_array() /usr/share/php/Horde/Registry.php:1018
> 8. Ingo_Api->applyFilters()
> 9. Ingo_Script_Imap->perform()
> /home/bsntech-com/www/webmail/ingo/lib/Api.php:108
> 10. Horde_Mime::decode()
> /home/bsntech-com/www/webmail/ingo/lib/Script/Imap.php:311
> 11. strpos() /usr/share/php/Horde/Mime.php:310
> 12. Horde::errorHandler()
> [pid 11482 on line 240 of "/usr/share/php/Horde.php"]
> 2011-10-08T20:33:47-05:00 WARN: HORDE [ingo] PHP ERROR: substr() expects
> parameter 1 to be string, array given [pid 11482 on line 312 of
> "/usr/share/php/Horde/Mime.php"]
> 2011-10-08T20:33:47-05:00 DEBUG: HORDE 1. require()
> /home/bsntech-com/www/webmail/imp/index.php:19
> 2. IMP_Mailbox->filterOnDisplay()
> /home/bsntech-com/www/webmail/imp/mailbox.php:230
> 3. IMP_Mailbox->filter()
> /home/bsntech-com/www/webmail/imp/lib/Mailbox.php:653
> 4. IMP_Filter->filter()
> /home/bsntech-com/www/webmail/imp/lib/Mailbox.php:639
> 5. Horde_Registry->call()
> /home/bsntech-com/www/webmail/imp/lib/Filter.php:46
> 6. Horde_Registry->callByPackage() /usr/share/php/Horde/Registry.php:977
> 7. call_user_func_array() /usr/share/php/Horde/Registry.php:1018
> 8. Ingo_Api->applyFilters()
> 9. Ingo_Script_Imap->perform()
> /home/bsntech-com/www/webmail/ingo/lib/Api.php:108
> 10. Horde_Mime::decode()
> /home/bsntech-com/www/webmail/ingo/lib/Script/Imap.php:311
> 11. substr() /usr/share/php/Horde/Mime.php:312
> 12. Horde::errorHandler()
>
> 2011-10-08T20:33:47-05:00 DEBUG: HORDE [ingo] 1. require()
> /home/bsntech-com/www/webmail/imp/index.php:19
> 2. IMP_Mailbox->filterOnDisplay()
> /home/bsntech-com/www/webmail/imp/mailbox.php:230
> 3. IMP_Mailbox->filter()
> /home/bsntech-com/www/webmail/imp/lib/Mailbox.php:653
> 4. IMP_Filter->filter()
> /home/bsntech-com/www/webmail/imp/lib/Mailbox.php:639
> 5. Horde_Registry->call()
> /home/bsntech-com/www/webmail/imp/lib/Filter.php:46
> 6. Horde_Registry->callByPackage() /usr/share/php/Horde/Registry.php:977
> 7. call_user_func_array() /usr/share/php/Horde/Registry.php:1018
> 8. Ingo_Api->applyFilters()
> 9. Ingo_Script_Imap->perform()
> /home/bsntech-com/www/webmail/ingo/lib/Api.php:108
> 10. Horde_Mime::decode()
> /home/bsntech-com/www/webmail/ingo/lib/Script/Imap.php:311
> 11. substr() /usr/share/php/Horde/Mime.php:312
> 12. Horde::errorHandler()
> [pid 11482 on line 240 of "/usr/share/php/Horde.php"]
> 2011-10-08T20:33:47-05:00 WARN: HORDE [ingo] PHP ERROR: strpos() expects
> parameter 1 to be string, array given [pid 11482 on line 315 of
> "/usr/share/php/Horde/Mime.php"]
> 2011-10-08T20:33:47-05:00 DEBUG: HORDE 1. require()
> /home/bsntech-com/www/webmail/imp/index.php:19
> 2. IMP_Mailbox->filterOnDisplay()
> /home/bsntech-com/www/webmail/imp/mailbox.php:230
> 3. IMP_Mailbox->filter()
> /home/bsntech-com/www/webmail/imp/lib/Mailbox.php:653
> 4. IMP_Filter->filter()
> /home/bsntech-com/www/webmail/imp/lib/Mailbox.php:639
> 5. Horde_Registry->call()
> /home/bsntech-com/www/webmail/imp/lib/Filter.php:46
> 6. Horde_Registry->callByPackage() /usr/share/php/Horde/Registry.php:977
> 7. call_user_func_array() /usr/share/php/Horde/Registry.php:1018
> 8. Ingo_Api->applyFilters()
> 9. Ingo_Script_Imap->perform()
> /home/bsntech-com/www/webmail/ingo/lib/Api.php:108
> 10. Horde_Mime::decode()
> /home/bsntech-com/www/webmail/ingo/lib/Script/Imap.php:311
> 11. strpos() /usr/share/php/Horde/Mime.php:315
> 12. Horde::errorHandler()
>
> 2011-10-08T20:33:47-05:00 DEBUG: HORDE [ingo] 1. require()
> /home/bsntech-com/www/webmail/imp/index.php:19
> 2. IMP_Mailbox->filterOnDisplay()
> /home/bsntech-com/www/webmail/imp/mailbox.php:230
> 3. IMP_Mailbox->filter()
> /home/bsntech-com/www/webmail/imp/lib/Mailbox.php:653
> 4. IMP_Filter->filter()
> /home/bsntech-com/www/webmail/imp/lib/Mailbox.php:639
> 5. Horde_Registry->call()
> /home/bsntech-com/www/webmail/imp/lib/Filter.php:46
> 6. Horde_Registry->callByPackage() /usr/share/php/Horde/Registry.php:977
> 7. call_user_func_array() /usr/share/php/Horde/Registry.php:1018
> 8. Ingo_Api->applyFilters()
> 9. Ingo_Script_Imap->perform()
> /home/bsntech-com/www/webmail/ingo/lib/Api.php:108
> 10. Horde_Mime::decode()
> /home/bsntech-com/www/webmail/ingo/lib/Script/Imap.php:311
> 11. strpos() /usr/share/php/Horde/Mime.php:315
> 12. Horde::errorHandler()
> [pid 11482 on line 240 of "/usr/share/php/Horde.php"]
> 2011-10-08T20:33:47-05:00 WARN: HORDE [ingo] PHP ERROR: substr() expects
> parameter 1 to be string, array given [pid 11482 on line 319 of
> "/usr/share/php/Horde/Mime.php"]
> 2011-10-08T20:33:47-05:00 DEBUG: HORDE 1. require()
> /home/bsntech-com/www/webmail/imp/index.php:19
> 2. IMP_Mailbox->filterOnDisplay()
> /home/bsntech-com/www/webmail/imp/mailbox.php:230
> 3. IMP_Mailbox->filter()
> /home/bsntech-com/www/webmail/imp/lib/Mailbox.php:653
> 4. IMP_Filter->filter()
> /home/bsntech-com/www/webmail/imp/lib/Mailbox.php:639
> 5. Horde_Registry->call()
> /home/bsntech-com/www/webmail/imp/lib/Filter.php:46
> 6. Horde_Registry->callByPackage() /usr/share/php/Horde/Registry.php:977
> 7. call_user_func_array() /usr/share/php/Horde/Registry.php:1018
> 8. Ingo_Api->applyFilters()
> 9. Ingo_Script_Imap->perform()
> /home/bsntech-com/www/webmail/ingo/lib/Api.php:108
> 10. Horde_Mime::decode()
> /home/bsntech-com/www/webmail/ingo/lib/Script/Imap.php:311
> 11. substr() /usr/share/php/Horde/Mime.php:319
> 12. Horde::errorHandler()
>
> 2011-10-08T20:33:47-05:00 DEBUG: HORDE [ingo] 1. require()
> /home/bsntech-com/www/webmail/imp/index.php:19
> 2. IMP_Mailbox->filterOnDisplay()
> /home/bsntech-com/www/webmail/imp/mailbox.php:230
> 3. IMP_Mailbox->filter()
> /home/bsntech-com/www/webmail/imp/lib/Mailbox.php:653
> 4. IMP_Filter->filter()
> /home/bsntech-com/www/webmail/imp/lib/Mailbox.php:639
> 5. Horde_Registry->call()
> /home/bsntech-com/www/webmail/imp/lib/Filter.php:46
> 6. Horde_Registry->callByPackage() /usr/share/php/Horde/Registry.php:977
> 7. call_user_func_array() /usr/share/php/Horde/Registry.php:1018
> 8. Ingo_Api->applyFilters()
> 9. Ingo_Script_Imap->perform()
> /home/bsntech-com/www/webmail/ingo/lib/Api.php:108
> 10. Horde_Mime::decode()
> /home/bsntech-com/www/webmail/ingo/lib/Script/Imap.php:311
> 11. substr() /usr/share/php/Horde/Mime.php:319
> 12. Horde::errorHandler()
> [pid 11482 on line 240 of "/usr/share/php/Horde.php"]
> 2011-10-08T20:33:47-05:00 WARN: HORDE [ingo] PHP ERROR: strpos() expects
> parameter 1 to be string, array given [pid 11482 on line 326 of
> "/usr/share/php/Horde/Mime.php"]
> 2011-10-08T20:33:47-05:00 DEBUG: HORDE 1. require()
> /home/bsntech-com/www/webmail/imp/index.php:19
> 2. IMP_Mailbox->filterOnDisplay()
> /home/bsntech-com/www/webmail/imp/mailbox.php:230
> 3. IMP_Mailbox->filter()
> /home/bsntech-com/www/webmail/imp/lib/Mailbox.php:653
> 4. IMP_Filter->filter()
> /home/bsntech-com/www/webmail/imp/lib/Mailbox.php:639
> 5. Horde_Registry->call()
> /home/bsntech-com/www/webmail/imp/lib/Filter.php:46
> 6. Horde_Registry->callByPackage() /usr/share/php/Horde/Registry.php:977
> 7. call_user_func_array() /usr/share/php/Horde/Registry.php:1018
> 8. Ingo_Api->applyFilters()
> 9. Ingo_Script_Imap->perform()
> /home/bsntech-com/www/webmail/ingo/lib/Api.php:108
> 10. Horde_Mime::decode()
> /home/bsntech-com/www/webmail/ingo/lib/Script/Imap.php:311
> 11. strpos() /usr/share/php/Horde/Mime.php:326
> 12. Horde::errorHandler()
>
> 2011-10-08T20:33:47-05:00 DEBUG: HORDE [ingo] 1. require()
> /home/bsntech-com/www/webmail/imp/index.php:19
> 2. IMP_Mailbox->filterOnDisplay()
> /home/bsntech-com/www/webmail/imp/mailbox.php:230
> 3. IMP_Mailbox->filter()
> /home/bsntech-com/www/webmail/imp/lib/Mailbox.php:653
> 4. IMP_Filter->filter()
> /home/bsntech-com/www/webmail/imp/lib/Mailbox.php:639
> 5. Horde_Registry->call()
> /home/bsntech-com/www/webmail/imp/lib/Filter.php:46
> 6. Horde_Registry->callByPackage() /usr/share/php/Horde/Registry.php:977
> 7. call_user_func_array() /usr/share/php/Horde/Registry.php:1018
> 8. Ingo_Api->applyFilters()
> 9. Ingo_Script_Imap->perform()
> /home/bsntech-com/www/webmail/ingo/lib/Api.php:108
> 10. Horde_Mime::decode()
> /home/bsntech-com/www/webmail/ingo/lib/Script/Imap.php:311
> 11. strpos() /usr/share/php/Horde/Mime.php:326
> 12. Horde::errorHandler()
> [pid 11482 on line 240 of "/usr/share/php/Horde.php"]
> 2011-10-08T20:33:47-05:00 WARN: HORDE [ingo] PHP ERROR: substr() expects
> parameter 1 to be string, array given [pid 11482 on line 330 of
> "/usr/share/php/Horde/Mime.php"]
> 2011-10-08T20:33:47-05:00 DEBUG: HORDE 1. require()
> /home/bsntech-com/www/webmail/imp/index.php:19
> 2. IMP_Mailbox->filterOnDisplay()
> /home/bsntech-com/www/webmail/imp/mailbox.php:230
> 3. IMP_Mailbox->filter()
> /home/bsntech-com/www/webmail/imp/lib/Mailbox.php:653
> 4. IMP_Filter->filter()
> /home/bsntech-com/www/webmail/imp/lib/Mailbox.php:639
> 5. Horde_Registry->call()
> /home/bsntech-com/www/webmail/imp/lib/Filter.php:46
> 6. Horde_Registry->callByPackage() /usr/share/php/Horde/Registry.php:977
> 7. call_user_func_array() /usr/share/php/Horde/Registry.php:1018
> 8. Ingo_Api->applyFilters()
> 9. Ingo_Script_Imap->perform()
> /home/bsntech-com/www/webmail/ingo/lib/Api.php:108
> 10. Horde_Mime::decode()
> /home/bsntech-com/www/webmail/ingo/lib/Script/Imap.php:311
> 11. substr() /usr/share/php/Horde/Mime.php:330
> 12. Horde::errorHandler()
>
> 2011-10-08T20:33:47-05:00 DEBUG: HORDE [ingo] 1. require()
> /home/bsntech-com/www/webmail/imp/index.php:19
> 2. IMP_Mailbox->filterOnDisplay()
> /home/bsntech-com/www/webmail/imp/mailbox.php:230
> 3. IMP_Mailbox->filter()
> /home/bsntech-com/www/webmail/imp/lib/Mailbox.php:653
> 4. IMP_Filter->filter()
> /home/bsntech-com/www/webmail/imp/lib/Mailbox.php:639
> 5. Horde_Registry->call()
> /home/bsntech-com/www/webmail/imp/lib/Filter.php:46
> 6. Horde_Registry->callByPackage() /usr/share/php/Horde/Registry.php:977
> 7. call_user_func_array() /usr/share/php/Horde/Registry.php:1018
> 8. Ingo_Api->applyFilters()
> 9. Ingo_Script_Imap->perform()
> /home/bsntech-com/www/webmail/ingo/lib/Api.php:108
> 10. Horde_Mime::decode()
> /home/bsntech-com/www/webmail/ingo/lib/Script/Imap.php:311
> 11. substr() /usr/share/php/Horde/Mime.php:330
> 12. Horde::errorHandler()
> [pid 11482 on line 240 of "/usr/share/php/Horde.php"]
> 2011-10-08T20:33:47-05:00 WARN: HORDE [ingo] PHP ERROR: strpos() expects
> parameter 1 to be string, array given [pid 11482 on line 333 of
> "/usr/share/php/Horde/Mime.php"]
> 2011-10-08T20:33:47-05:00 DEBUG: HORDE 1. require()
> /home/bsntech-com/www/webmail/imp/index.php:19
> 2. IMP_Mailbox->filterOnDisplay()
> /home/bsntech-com/www/webmail/imp/mailbox.php:230
> 3. IMP_Mailbox->filter()
> /home/bsntech-com/www/webmail/imp/lib/Mailbox.php:653
> 4. IMP_Filter->filter()
> /home/bsntech-com/www/webmail/imp/lib/Mailbox.php:639
> 5. Horde_Registry->call()
> /home/bsntech-com/www/webmail/imp/lib/Filter.php:46
> 6. Horde_Registry->callByPackage() /usr/share/php/Horde/Registry.php:977
> 7. call_user_func_array() /usr/share/php/Horde/Registry.php:1018
> 8. Ingo_Api->applyFilters()
> 9. Ingo_Script_Imap->perform()
> /home/bsntech-com/www/webmail/ingo/lib/Api.php:108
> 10. Horde_Mime::decode()
> /home/bsntech-com/www/webmail/ingo/lib/Script/Imap.php:311
> 11. strpos() /usr/share/php/Horde/Mime.php:333
> 12. Horde::errorHandler()
>
> 2011-10-08T20:33:47-05:00 DEBUG: HORDE [ingo] 1. require()
> /home/bsntech-com/www/webmail/imp/index.php:19
> 2. IMP_Mailbox->filterOnDisplay()
> /home/bsntech-com/www/webmail/imp/mailbox.php:230
> 3. IMP_Mailbox->filter()
> /home/bsntech-com/www/webmail/imp/lib/Mailbox.php:653
> 4. IMP_Filter->filter()
> /home/bsntech-com/www/webmail/imp/lib/Mailbox.php:639
> 5. Horde_Registry->call()
> /home/bsntech-com/www/webmail/imp/lib/Filter.php:46
> 6. Horde_Registry->callByPackage() /usr/share/php/Horde/Registry.php:977
> 7. call_user_func_array() /usr/share/php/Horde/Registry.php:1018
> 8. Ingo_Api->applyFilters()
> 9. Ingo_Script_Imap->perform()
> /home/bsntech-com/www/webmail/ingo/lib/Api.php:108
> 10. Horde_Mime::decode()
> /home/bsntech-com/www/webmail/ingo/lib/Script/Imap.php:311
> 11. strpos() /usr/share/php/Horde/Mime.php:333
> 12. Horde::errorHandler()
> [pid 11482 on line 240 of "/usr/share/php/Horde.php"]
> 2011-10-08T20:33:47-05:00 WARN: HORDE [ingo] PHP ERROR: substr() expects
> parameter 1 to be string, array given [pid 11482 on line 337 of
> "/usr/share/php/Horde/Mime.php"]
> 2011-10-08T20:33:47-05:00 DEBUG: HORDE 1. require()
> /home/bsntech-com/www/webmail/imp/index.php:19
> 2. IMP_Mailbox->filterOnDisplay()
> /home/bsntech-com/www/webmail/imp/mailbox.php:230
> 3. IMP_Mailbox->filter()
> /home/bsntech-com/www/webmail/imp/lib/Mailbox.php:653
> 4. IMP_Filter->filter()
> /home/bsntech-com/www/webmail/imp/lib/Mailbox.php:639
> 5. Horde_Registry->call()
> /home/bsntech-com/www/webmail/imp/lib/Filter.php:46
> 6. Horde_Registry->callByPackage() /usr/share/php/Horde/Registry.php:977
> 7. call_user_func_array() /usr/share/php/Horde/Registry.php:1018
> 8. Ingo_Api->applyFilters()
> 9. Ingo_Script_Imap->perform()
> /home/bsntech-com/www/webmail/ingo/lib/Api.php:108
> 10. Horde_Mime::decode()
> /home/bsntech-com/www/webmail/ingo/lib/Script/Imap.php:311
> 11. substr() /usr/share/php/Horde/Mime.php:337
> 12. Horde::errorHandler()
>
> 2011-10-08T20:33:47-05:00 DEBUG: HORDE [ingo] 1. require()
> /home/bsntech-com/www/webmail/imp/index.php:19
> 2. IMP_Mailbox->filterOnDisplay()
> /home/bsntech-com/www/webmail/imp/mailbox.php:230
> 3. IMP_Mailbox->filter()
> /home/bsntech-com/www/webmail/imp/lib/Mailbox.php:653
> 4. IMP_Filter->filter()
> /home/bsntech-com/www/webmail/imp/lib/Mailbox.php:639
> 5. Horde_Registry->call()
> /home/bsntech-com/www/webmail/imp/lib/Filter.php:46
> 6. Horde_Registry->callByPackage() /usr/share/php/Horde/Registry.php:977
> 7. call_user_func_array() /usr/share/php/Horde/Registry.php:1018
> 8. Ingo_Api->applyFilters()
> 9. Ingo_Script_Imap->perform()
> /home/bsntech-com/www/webmail/ingo/lib/Api.php:108
> 10. Horde_Mime::decode()
> /home/bsntech-com/www/webmail/ingo/lib/Script/Imap.php:311
> 11. substr() /usr/share/php/Horde/Mime.php:337
> 12. Horde::errorHandler()
> [pid 11482 on line 240 of "/usr/share/php/Horde.php"]
>
> Brian S.
Last night I reverted everything back to the previous version of Horde. It certainly runs faster than the new version. In addition, the fact that the vacation system isn't available in Ingo using MySQL as the database also will cause problems for users. And, the menu in Traditional mode with the constant reloading of it is a nuisance/annoyance to users that complained about it (including myself since it causes more load time/bandwidth usage). While overall, there are some nice changes with the new version of Horde, there are things that make it worthwhile to stay with the previous version.
After reverting everything back, I setup a separate database to test Horde Webmail Edition to keep it fully separate. I then set it up in a new directory (/home/bsntech-com/www/webmail-new). I also fully installed a separate version of pear in /home/bsntech-com/www/webmail-new/pear and used it for the installation of the Horde4.
I have then left the configuration set as the default in many cases (were a few changes made - such as log output to a file instead of syslog). But, the PHP errors continue. The PHP errors even occur when using the Dynamic mode as well - and I noticed this because I was trying to open an an e-mail or delete one, and the system would hang. Check the log, and sure enough, thousands of lines with the same:
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.
>>
>>>
>>> --
>>> 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