Errors in Cacti log :
01/07/2019 16:10:15 - ERROR PHP PARSE: syntax error, unexpected '/' in file: /usr/local/share/cacti/include/global_settings.php on line: 166
01/07/2019 16:10:15 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
--- global_settings.php.old 2019-01-08 11:28:19.120802000 +0100
+++ global_settings.php 2019-01-07 16:11:38.831897000 +0100
@@ -163,7 +163,7 @@
'description' => __('The path to your Cacti log file (if blank, defaults to /var/log/cacti/log)'),
'method' => 'filepath',
'file_type' => 'ascii',
- 'default' => /var/log/cacti/log',
+ 'default' => '/var/log/cacti/log',
'max_length' => '255',
'install_check' => 'writable'
(In reply to Arnaud de Prelle from comment #0)
Wow, good catch... can't believe I missed that.
Could you attach the diff as an attachment to this bug so I can ask a committer to submit it? If not, i'll add one once I get home this evening (i'm at work at the moment)
Created attachment 200909 [details]
Patch to solve a typo
Hi @Daniel(In reply to Daniel Austin from comment #1)
I just did it but I'm not sure it's done correctly...
I'll let you check and upload a new version if needed ?
(In reply to Arnaud de Prelle from comment #3)
Looks good to me.
Committer: please could you commit this to both head and quarterly?
A commit references this bug:
Date: Tue Jan 8 18:13:56 UTC 2019
New revision: 489731
net-mgmt/cacti: fix typo
Submitted by: Daniel Austin <firstname.lastname@example.org> (maintainer)
Reported by: Arnaud de Prelle <email@example.com>