Brian S. Meehan wrote:
I have Suse pro 9.3, apache, courier mta 0.50.1 with authlib & imap,
squirrelmail 1.4.5, and am using the filters plugin that came with SM.
Often I have the following error in any page I attempt to view such as the
main frame, but also the left frame listing the folders:
"
Notice: Undefined offset: 1 in /srv/www/htdocs/plugins/filters/filters.php
on line 310
"
Does anyone have any ideas on how to fix it? Filters seem to work, but
it's rather annoying because sometimes the page doesn't load and sometimes
it displays anywhere between 1 and 7 error lines of the same thing. When I
have no filters set up, it does not display errors.
First, you should look into using serversidefilters plugin along with IMAP, it's much faster and more powerful. Once setup, you can do really cool things like have emails from important persons auto-forwarded to your cellphone. The generic filters plugin uses PHP code to filter and does it at login time so it's always going to be slower and if you have to many rules and/or a full inbox, it's painful. Now, I'm not sure what's causing the notice to display but there's a few ways to turn it off. You can just tell PHP not to display code problems by setting display_errors to Off in php.ini. You can also have PHP only display true errors and warnings but not notices like the one your seeing by setting error_reporting to be:

E_ALL & ~E_NOTICE

this will show warnings and errors but not notices like the one your receiving. As to the root cause of the notice, my only thought is that your PHP might be old, try upgrading to the latest 4.3.x release and see if that helps.

Jay


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
--
squirrelmail-users mailing list
Posting Guidelines: 
http://squirrelmail.org/wiki/wiki.php?MailingListPostingGuidelines
List Address: [email protected]
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

Reply via email to