Re: Getting error: strpos() Offset not contained in string in imap_messages.php on line 542

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

>
> This bug occurs when I ...
>   ... try to do/view/use ....  when logging in, intermittently...
>
> The description of the bug:
>
> I have just upgraded from 1.4.15 to 1.4.19 (due to ubuntu upgrade to 9).
>
> I am now getting occasional errors like this when logging in:
>
> strpos() [function.strpos]: Offset not contained in string in
> /usr/share/squirrelmail/functions/imap_messages.php on line 542
>
> A reload usually fixes it - works the second time.
>
> Does this ring a bell - have I got PHP/courier misconfigured perhaps... ?

It is a problem with something in your filters plugin configuration/operation.

You can print out the string that is being parsed, although it might
be messy.  BEFORE line 542, you can add something like:

echo "READ IS: "; var_dump($read); echo "<hr />";


Ok, did that - so, normally, no extra output, when no message received.
When a message did come, I get what looks like normal output:

READ IS: string(934) "* 1 FETCH (UID 188056 FLAGS () BODY[HEADER.FIELDS ("RECEIVED")] {859} Received: from imap.1and1.co.uk ... 
..Received: by 10.103.197.15 with HTTP; Sat, 8 May 2010 10:29:26 -0700 (PDT) ) "

If I then click "check mail" again, I get this:

READ IS: string(0) ""

Warning: strpos() [function.strpos]: Offset not contained in string in/usr/share/squirrelmail/functions/imap_messages.phpon line 544

A third check mail returns things to normal...

Thanks,
Chris
------------------------------------------------------------------------------

-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux