Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
I am not sure it this breaks anything in the function but the error is no lnoger generated on the web page and it is how nearly all of the other functions are defined in the file.
mrnoodle wrote:I found an error with the Graph Template page. I can recreate the error by selecting a Graph Template and then deleting one of the Graph Item Inputs. After it has been deleted, I get an error when I try to go back to one of the Graph Items that originally used that input and trying to save it.
Notice: Undefined variable: db_conn in /usr/local/cacti/lib/database.php on line 243
Warning: Cannot modify header information - headers already sent by (output started at /usr/local/cacti/lib/database.php:243) in /usr/local/cacti/graph_templates_items.php on line 205
It appears that the error only occurs when trying to save this one item, but it does correctly update the Graph Item Inputs and add the input back into the list. If I go back one page and then try to save again it works without issue.
I did not receive any error message, but the bug is obvious. So I fixed it in SVN 0.8.7 branch and tags. The solution is as given above
Reinhard
Why would I be getting stuff like this (truncated) when unzipping PIA v2.3? With 2.1 I used a tar file and everything was fine.
files-0.8.7c\auth_changepassword.php: mismatching "local" filename (files-0.8.7c/auth_changepassword.php),
continuing with "central" filename version
warning: /opt/local/var/macports/distfiles/cacti/cacti-plugin-0.8.7c-PA-v2.3.zip appears to use backslashes as path separators
files-0.8.7c\auth_login.php: mismatching "local" filename (files-0.8.7c/auth_login.php),
continuing with "central" filename version
I think I just discovered a tiny little bug in cacti 0.8.7c. I not sure whether is it a bug or has it been reported or not.
Here is it:
Under "Graph Management", when I type "base" (without double quote) in the search area, it will return those graph that has "base" word inside BUT the search parameter change from "base" to "ba<x>se"
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
mrnoodle wrote:I found an error with the Graph Template page. I can recreate the error by selecting a Graph Template and then deleting one of the Graph Item Inputs. After it has been deleted, I get an error when I try to go back to one of the Graph Items that originally used that input and trying to save it.
Notice: Undefined variable: db_conn in /usr/local/cacti/lib/database.php on line 243
Warning: Cannot modify header information - headers already sent by (output started at /usr/local/cacti/lib/database.php:243) in /usr/local/cacti/graph_templates_items.php on line 205
It appears that the error only occurs when trying to save this one item, but it does correctly update the Graph Item Inputs and add the input back into the list. If I go back one page and then try to save again it works without issue.
This is fixed in svn by the latest lib/database.php
True understanding begins only when we realize how little we truly understand...
manaf wrote:i have installed cacti 0.8.7b using yum.. is it possible to upgrade cacti from 0.8.7b to 0.8.7c through yum?
Not until the package maintainer does so. I would suspect they are awaiting the next patch that we are actively getting ready to deploy in order to catch several gotcha's in the initial 0.8.7c release code.
TheWitness
True understanding begins only when we realize how little we truly understand...
Hmm, I am not sure how to describe my issue, but this can be a potential bug in the recent Cacti release. Let me try though:
I have a bunch of templates (IIS cennection statistics, WeatherBug etc.) These templates worked perfectly fine in Cacti 0.8.6 simply by importing them. However, when I import them to Cacti 0.8.7c they no longer render. I was able to pinpoint this to the wrong Consolidation Function being set on all of these graph templates (it was set to LAST when graph item type was set to "AVERAGE".) If I edit the graph template and change the CF for these items to AVERAGE, my graphs start working immediately. The real question is whether this is a BUG? I do not remember seeing these issues in older rev of Cacti. I did not have to edit my graph templates either.
aleu wrote:Hmm, I am not sure how to describe my issue, but this can be a potential bug in the recent Cacti release. Let me try though:
I have a bunch of templates (IIS cennection statistics, WeatherBug etc.) These templates worked perfectly fine in Cacti 0.8.6 simply by importing them. However, when I import them to Cacti 0.8.7c they no longer render. I was able to pinpoint this to the wrong Consolidation Function being set on all of these graph templates (it was set to LAST when graph item type was set to "AVERAGE".) If I edit the graph template and change the CF for these items to AVERAGE, my graphs start working immediately. The real question is whether this is a BUG? I do not remember seeing these issues in older rev of Cacti. I did not have to edit my graph templates either.
Can you guys look into this?
Thanks,
AL
Gandolf will have to respond.
TheWitness
True understanding begins only when we realize how little we truly understand...