Nectar V0.22 released

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

Locked
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Nectar V0.22 released

Post by gandalf »

A new version of Nectar has been released: http://docs.cacti.net/plugin:nectar

Changelog:
--- v0.22 ---
fix: some html fixes
fix: fixing deprecated functions
fix: duplicate report working again
fix: some html validation issues fixed
fix: correct user level permission issues
feature: Support Tree Cascade
Thanks to Larry and J.P. for their contribution
Reinhard
Last edited by gandalf on Wed Mar 24, 2010 3:04 pm, edited 1 time in total.
User avatar
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Post by zoemu »

I've updated to version .22 and I started having this error

Warning: Variable passed to each() is not an array or object in G:\cacti\lib\html_utility.php on line 44..

I do not seem to be able to figure it out........

Anyone with tha same error
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

You've read the readme? It tells you about replacing the named module, it does. I suppose you've accidentally skipped that.
R.
User avatar
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Post by zoemu »

I actually had replace the module already with the one you provided.. the error happen after updating to .22.... previous version was working fine...

Thanks

Luis

Windows cati

IIS
pA2.5
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

What was the last action performed prior to this bug? Be as precise as possible.
R.
User avatar
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Post by zoemu »

I was trying to Add a report
Attachments
error.png
error.png (4.4 KiB) Viewed 7769 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please replace the whole code from fresh SVN and html_utility (again).
The changes I made do not relate exactly to the error but will introduce a check for the array. I can't see, why the error message should pop up. And I'm not able to reproduce.
R.
User avatar
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Post by zoemu »

I've done that already... it is a whole install from scratch.....


LA
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please post the webapi file
R.
User avatar
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Post by zoemu »

nectar_webapi.php ???

I'm Also getting this error

Code: Select all

Notice: Undefined index: name in G:\cacti\plugins\nectar\nectar_webapi.php on line 39

Notice: Undefined index: format_file in G:\cacti\plugins\nectar\nectar_webapi.php on line 43

Notice: Undefined index: font_size in G:\cacti\plugins\nectar\nectar_webapi.php on line 44

Notice: Undefined index: alignment in G:\cacti\plugins\nectar\nectar_webapi.php on line 45

Notice: Undefined index: graph_columns in G:\cacti\plugins\nectar\nectar_webapi.php on line 47

Notice: Undefined index: graph_width in G:\cacti\plugins\nectar\nectar_webapi.php on line 48

Notice: Undefined index: graph_height in G:\cacti\plugins\nectar\nectar_webapi.php on line 49

Notice: Undefined index: intrvl in G:\cacti\plugins\nectar\nectar_webapi.php on line 52

Notice: Undefined index: count in G:\cacti\plugins\nectar\nectar_webapi.php on line 53

Notice: Undefined index: offset in G:\cacti\plugins\nectar\nectar_webapi.php on line 54

Notice: Undefined index: mailtime in G:\cacti\plugins\nectar\nectar_webapi.php on line 56

Notice: Undefined index: subject in G:\cacti\plugins\nectar\nectar_webapi.php on line 66

Notice: Undefined index: from_name in G:\cacti\plugins\nectar\nectar_webapi.php on line 67

Notice: Undefined index: from_email in G:\cacti\plugins\nectar\nectar_webapi.php on line 68

Notice: Undefined index: email in G:\cacti\plugins\nectar\nectar_webapi.php on line 69

Notice: Undefined index: attachment_type in G:\cacti\plugins\nectar\nectar_webapi.php on line 70

Notice: Undefined index: attachment_type in G:\cacti\plugins\nectar\nectar_webapi.php on line 71

Notice: Undefined index: attachment_type in G:\cacti\plugins\nectar\nectar_webapi.php on line 72

Notice: Undefined index: attachment_type in G:\cacti\plugins\nectar\nectar_webapi.php on line 73

Warning: Cannot modify header information - headers already sent by (output started at G:\cacti\plugins\nectar\nectar_webapi.php:39) in G:\cacti\plugins\nectar\nectar_webapi.php on line 89
PHP Notice: Undefined index: name in G:\cacti\plugins\nectar\nectar_webapi.php on line 39 PHP Notice: Undefined index: format_file in G:\cacti\plugins\nectar\nectar_webapi.php on line 43 PHP Notice: Undefined index: font_size in G:\cacti\plugins\nectar\nectar_webapi.php on line 44 PHP Notice: Undefined index: alignment in G:\cacti\plugins\nectar\nectar_webapi.php on line 45 PHP Notice: Undefined index: graph_columns in G:\cacti\plugins\nectar\nectar_webapi.php on line 47 PHP Notice: Undefined index: graph_width in G:\cacti\plugins\nectar\nectar_webapi.php on line 48 PHP Notice: Undefined index: graph_height in G:\cacti\plugins\nectar\nectar_webapi.php on line 49 PHP Notice: Undefined index: intrvl in G:\cacti\plugins\nectar\nectar_webapi.php on line 52 PHP Notice: Undefined index: count in G:\cacti\plugins\nectar\nectar_webapi.php on line 53 PHP Notice: Undefined index: offset in G:\cacti\plugins\nectar\nectar_webapi.php on line 54 PHP Notice: Undefined index: mailtime in G:\cacti\plugins\nectar\nectar_webapi.php on line 56 PHP Notice: Undefined index: subject in G:\cacti\plugins\nectar\nectar_webapi.php on line 66 PHP Notice: Undefined index: from_name in G:\cacti\plugins\nectar\nectar_webapi.php on line 67 PHP Notice: Undefined index: from_email in G:\cacti\plugins\nectar\nectar_webapi.php on line 68 PHP Notice: Undefined index: email in G:\cacti\plugins\nectar\nectar_webapi.php on line 69 PHP Notice: Undefined index: attachment_type in G:\cacti\plugins\nectar\nectar_webapi.php on line 70 PHP Notice: Undefined index: attachment_type in G:\cacti\plugins\nectar\nectar_webapi.php on line 71 PHP Notice: Undefined index: attachment_type in G:\cacti\plugins\nectar\nectar_webapi.php on line 72 PHP Notice: Undefined index: attachment_type in G:\cacti\plugins\nectar\nectar_webapi.php on line 73 PHP Warning: Cannot modify header information - headers already sent by (output started at G:\cacti\plugins\nectar\nectar_webapi.php:39) in G:\cacti\plugins\nectar\nectar_webapi.php on line 89 
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

That looks like your setup.php is quite damaged.
R.
User avatar
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Post by zoemu »

I have done a complete new SVN install from scratch and I'm still getting this error.

Version 0.12 works fine...Is there anything that you think that might be creating this errors.

If you think setup is quite damaged anything can be done to fix it ???

thanks
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I'm very sorry at the moment. I can't reproduce and I can't find an error. It looks like the basic file (setup.php) that defines all those indexes has some severe problems. And unfortunately, I can't install on windows.
Perhaps an online session between the both of us would help, assuming you know your windows cli and assuming that we are able to translate between *ix and windows.
R.
trevorj
Posts: 10
Joined: Thu May 14, 2009 1:19 pm

Post by trevorj »

I am having the empty "graphs" drop down problem.

I have copied the new html_utility.php and patched functions.php.

Any ideas? Thanks!
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You need to pull the "new" html_utility.php from SVN/trunk. Gandalf made a few oopsies when he changed my code from using "ereg" to "preg".

If you pull that and everything else, it will be version 0.23.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Locked

Who is online

Users browsing this forum: No registered users and 2 guests