Upgrade 3.0.1.5 -> 3.0.1.7 Use of undefined constant SHOW_MORE_INFO_ON_REPORT_GRAPH

Report bugs and workarounds
Post Reply
henk
Posts: 518
Joined: 14 Dec 2015 22:16
Location: Netherlands
Contact:

Upgrade 3.0.1.5 -> 3.0.1.7 Use of undefined constant SHOW_MORE_INFO_ON_REPORT_GRAPH

Post 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
“We are stuck with technology when what we really want is just stuff that works.” -Douglas Adams
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

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

Post by shawniverson »

Resolved in 3.0.1.8
Post Reply