poller.php calls split in two places, which fails with PHP 7. This seems to only actually cause problems if poller.php is configured to poll the snmp data sources more than once per time poller.php is called by cron (which typically happens if 10 second or 30 second polling intervals are requested), but it appears to me that these error messages may appear in the logs even when cacti is configured to only poll once per time it is called by cron.
It appears that using explode instead of split is the fix.
PHP Fatal error: Uncaught Error: Call to undefined function split() in /usr/share/cacti/site/poller.php:454
Stack trace:
#0 {main}
thrown in /usr/share/cacti/site/poller.php on line 454
PHP Fatal error: Uncaught Error: Call to undefined function split() in /usr/share/cacti/site/poller.php:454
Stack trace:
#0 {main}
thrown in /usr/share/cacti/site/poller.php on line 454
poller.php calls split in two places, which fails with PHP 7. This seems to only actually cause problems if poller.php is configured to poll the snmp data sources more than once per time poller.php is called by cron (which typically happens if 10 second or 30 second polling intervals are requested), but it appears to me that these error messages may appear in the logs even when cacti is configured to only poll once per time it is called by cron.
It appears that using explode instead of split is the fix.
PHP Fatal error: Uncaught Error: Call to undefined function split() in /usr/share/ cacti/site/ poller. php:454 cacti/site/ poller. php on line 454 cacti/site/ poller. php:454 cacti/site/ poller. php on line 454
Stack trace:
#0 {main}
thrown in /usr/share/
PHP Fatal error: Uncaught Error: Call to undefined function split() in /usr/share/
Stack trace:
#0 {main}
thrown in /usr/share/
Description: Ubuntu 16.04.1 LTS ds1-4ubuntu4. 16.04.1 ds1-4ubuntu4. 16.04.1 ds1-4ubuntu4. 16.04.1 500 us.archive. ubuntu. com/ubuntu xenial- updates/ universe amd64 Packages us.archive. ubuntu. com/ubuntu xenial- updates/ universe i386 Packages dpkg/status 8.8f+ds1- 4ubuntu4 500 us.archive. ubuntu. com/ubuntu xenial/universe amd64 Packages us.archive. ubuntu. com/ubuntu xenial/universe i386 Packages
Release: 16.04
cacti:
Installed: 0.8.8f+
Candidate: 0.8.8f+
Version table:
*** 0.8.8f+
500 http://
500 http://
100 /var/lib/
0.
500 http://
500 http://