[SOLVED]Wrong datatype ... after installing manage plugin

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
fsckedagain
Posts: 26
Joined: Wed Sep 24, 2008 5:37 pm

[SOLVED]Wrong datatype ... after installing manage plugin

Post by fsckedagain »

So I have thold, monitor, and settings plugins installed by editing include/global.php to include them. If I go to plugin management and install manage (the only way it appears installed) the other 3 break and I get:

Code: Select all

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /var/www/cacti-0.8.7b/lib/plugins.php on line 46

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /var/www/cacti-0.8.7b/lib/plugins.php on line 46

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /var/www/cacti-0.8.7b/lib/plugins.php on line 46

for each of the 3 plugins. Are they all supposed to show up in installed/uninstalled plugins? none of them do, only manage does.

I have no idea where to go for a solution, currently googling and searching the forums.


seems in the setup.php for manage it has "$p" all over, which overwrites the correct "$p" value for plugins.php everytime it runs.

Changed all instances of "$p" to "$path" in setup.php for manage and all is well. Surprised noone else has run into this...
Last edited by fsckedagain on Wed Oct 08, 2008 1:17 pm, edited 1 time in total.
fsckedagain
Posts: 26
Joined: Wed Sep 24, 2008 5:37 pm

Post by fsckedagain »

see above for solution...
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests