Page 1 of 1

MailWatch functions.php showing offset error.

Posted: 10 Jun 2016, 02:36
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

Re: MailWatch functions.php showing offset error.

Posted: 16 Jun 2016, 15:07
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