MailWatch functions.php showing offset error.

Discuss our MailScanner install script and MailScanner itself
Post Reply
Sergio
Junior Member
Posts: 1685
Joined: 12 Dec 2006, 14:56

MailWatch functions.php showing offset error.

Post by Sergio »

Hi Sarah.

Do you know why this error started to show after last UPCP 56.0.24?

/usr/local/cpanel/logs/error_log:
[09-Jun-2016 18:35:07 America/Chicago] PHP Notice: Undefined offset: 0 in /usr/local/cpanel/whostmgr/docroot/cgi/mailwatch/functions.php on line 851

Best Regards,
Sergio
Sergio
Junior Member
Posts: 1685
Joined: 12 Dec 2006, 14:56

Re: MailWatch functions.php showing offset error.

Post by Sergio »

BUMP

Hi Sarah.
I have checked what was the line 851 error about and found the following:

if ($sa_rules[0] == "Message larger than max testing size" || $sa_rules[0] == "timed out") {
return $sa_rules[0];
}

Even after yesterday MailScanner update to ver5.0.2 the error continues:
[16-Jun-2016 08:07:24 America/Chicago] PHP Notice: Undefined offset: 0 in /usr/local/cpanel/whostmgr/docroot/cgi/mailwatch/functions.php on line 851

Regards,
Sergio
Post Reply