Error in foreach() circle

Support for the Plugin Architecture

Moderators: Developers, Moderators

Post Reply
spruce
Posts: 17
Joined: Fri Aug 15, 2008 7:31 am
Location: Russia, Moscow region
Contact:

Error in foreach() circle

Post by spruce »

Hi. I install PA 2.6 and drop into ../plugins/aggregate folder with this plugin.

Then Open Plugin Management page, i saw this plugin and button Install.
Also i saw:

Code: Select all

Warning: Invalid argument supplied for foreach() in /usr/local/share/cacti/plugins.php on line 72
Then i click on Install, this plugin not installed and i saw next message:

Code: Select all

Warning: Invalid argument supplied for foreach() in /usr/local/share/cacti/plugins.php on line 72

Warning: Invalid argument supplied for foreach() in /usr/local/share/cacti/plugins.php on line 72

This error in this function:

Code: Select all

69: function retrieve_plugin_list () {
70:        $pluginslist = array();
71:        $temp = db_fetch_assoc('SELECT directory FROM plugin_config ORDER BY name');
72:        foreach ($temp as $t) {
73:                $pluginslist[] = $t['directory'];
74:        }
75:        return $pluginslist;
76: }


Please help, i want to understand why errors.
Thanks.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

That's quite simply an empty resultset.
But now we are at cacti087g beta2 and things may have changed ...
R.
spruce
Posts: 17
Joined: Fri Aug 15, 2008 7:31 am
Location: Russia, Moscow region
Contact:

Post by spruce »

gandalf wrote:That's quite simply an empty resultset.
But now we are at cacti087g beta2 and things may have changed ...
R.
Why this resultset is empty? And how made this resultset with data? :)

Maybe you help me, how install and enable this plugin?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest