Comment 0 for bug 1662027

Revision history for this message
Joel N. Weber II (joelweber) wrote :

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

Description: Ubuntu 16.04.1 LTS
Release: 16.04
cacti:
  Installed: 0.8.8f+ds1-4ubuntu4.16.04.1
  Candidate: 0.8.8f+ds1-4ubuntu4.16.04.1
  Version table:
 *** 0.8.8f+ds1-4ubuntu4.16.04.1 500
        500 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
        500 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages
        100 /var/lib/dpkg/status
     0.8.8f+ds1-4ubuntu4 500
        500 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
        500 http://us.archive.ubuntu.com/ubuntu xenial/universe i386 Packages