Missing graph template

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
NTTNetworkMon
Posts: 1
Joined: Wed Jul 25, 2018 12:11 pm

Missing graph template

Post by NTTNetworkMon »

I get the following:
Warning: Invalid argument supplied for foreach() in /var/www/html/graphs_new.php on line 798
Warning: Invalid argument supplied for foreach() in /var/www/html/graphs_new.php on line 798
Warning: Invalid argument supplied for foreach() in /var/www/html/graphs_new.php on line 798

When trying to add a the SNMP - Interface Statistics graph.
Running an older linux version of CACTI. Version 0.8.7b

Any ideas on why this is happening and what the solution might be?
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Missing graph template

Post by netniV »

There will be a variable just after the brackets on that line in graphs_new.php "foreach(<collection variable> as <item variable>)", trace backwards the collection variable and see where it is set as it's likely something that failed at that point. I don't have a 0.8.7 installation to double check against at the moment so can't really double check it for you.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest