Re: "SquirrelMail notice messages" displaying on every e-mail

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

 



> | > I am running SM-1.5.1 under php-4.4.x and php-5.2.x on FreeBSD.
> | > With php-5.2.x, I get "SquirrelMail notice messages" being displayed
> | > below almost every e-mail which I open. And it is always something
> | > like this:
> | > 
> | > category: PHP
> | > Message: preg_split() expects parameter 4 to be long, string given
> | > FILE:	/usr/local/www/domainpanel/webmail-151/squirrelmail-
> | > 1.5.1/functions/imap_messages.php
> | > LINE: 	926
> | > Category: PHP
> | > Message: Invalid argument supplied for foreach()
> | > FILE: /usr/local/www/domainpanel/webmail-151/squirrelmail-
> | > 1.5.1/functions/mime.php
> | > LINE: 52
> | > 
> | > 
> | > 
> | > How do I stop this from happening? It's annoying my users.
> | 
> | Disabling php error display in php.ini would be the quickest way...
> 
> I have, in php.ini:
> 
> error_reporting  =  E_ALL & ~E_NOTICE
> display_errors = Off
> 
> So, I simply need to s/E_ALL & ~E_NOTICE/E_ERROR/, yes?

Or you could fix functions/imap_messages.php

In line 926 you have
---
$flags = preg_split('/ /', $regs[1],-1,'PREG_SPLIT_NI_EMPTY');
---
replace it with
---
$flags = preg_split('/ /', $regs[1],-1,'PREG_SPLIT_NO_EMPTY');
---

http://sourceforge.net/support/tracker.php?aid=1543573


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
--
squirrelmail-users mailing list
Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: 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