Page 1 of 1

Upgrade 3.0.1.5 -> 3.0.1.7 Use of undefined constant SHOW_MORE_INFO_ON_REPORT_GRAPH

Posted: 16 Jan 2017 14:08
by henk
After the upgrade to 3,0,1,7 the next error appears in in /var/log/ssl_error_log

[Mon Jan 16 13:52:17 2017] [error] [client XX>XX>XX>XX] PHP Notice: Use of undefined constant SHOW_MORE_INFO_ON_REPORT_GRAPH
- assumed 'SHOW_MORE_INFO_ON_REPORT_GRAPH' in /var/www/html/mailscanner/rep_total_mail_by_date.php on line 296, referer: https://sansspam.private.lan/mailscanner/reports.php

Cause is missing define ---see /var/www/html/mailscanner/conf.php.example

add in /var/www/html/mailscanner/conf.php

Code: Select all

// Show supplemental Postfix info in report, enable when using Postix_relay tool
define('SHOW_MORE_INFO_ON_REPORT_GRAPH', false);
I also missed the next defines, and added them also.

define('LDAP_PROTOCOL_VERSION', 3);
define('QUARANTINE_MAIL_PORT', '25');
define('MS_SHARE_DIR', '/usr/share/MailScanner/'); // path for ConfigDefs.pl file

/etc/init.d/MailScanner restart

Re: Upgrade 3.0.1.5 -> 3.0.1.7 Use of undefined constant SHOW_MORE_INFO_ON_REPORT_GRAPH

Posted: 16 Jan 2017 22:38
by shawniverson

Re: Upgrade 3.0.1.5 -> 3.0.1.7 Use of undefined constant SHOW_MORE_INFO_ON_REPORT_GRAPH

Posted: 17 Jan 2017 00:10
by shawniverson
Resolved in 3.0.1.8