On 06/02/2013 01:15 PM, Reindl Harald wrote:
[31-May-2013 15:21:35 Europe/Vienna] PHP Warning: strtolower() expects parameter 1 to be string, array given in /usr/share/roundcubemail/program/lib/Roundcube/rcube_imap.php on line 1792
Something unexpected in BODYSTRUCTURE response. Which Roundcube version? What IMAP server? Can you reproduce this with a specific message and send as the BODYSTRUCTURE of it?
IMHO there should be a is_array() test somewhere befoire trigger this warning and error_log() with email and message-id to have a chance find the specific message
it did only happened once but usually there is a reason things happening
We can of course just add is_array() check or @ operator, but maybe the problem is somewhere else. Please add such code before line 1792. So, next time we'll have relevant logs:
if (is_array($part[0]) || is_array($part[1])) { console($_SESSION['username'], $this->get_folder(), $this->msg_uid); console($struct->mime_id, $part); }