Cacti graps.php problem on Fedora 16
Moderators: Developers, Moderators
Cacti graps.php problem on Fedora 16
Hello
I have problem with lastest stable cacti 0.8.7i on Fedora 16.
Cacti seems working, graphs are updating, but im unable to open Graph Management webpage. Its blank in browser, apache error log show me:
PHP Fatal error: Cannot redeclare graph() in /var/www/html/cacti/graphs.php on line 1337
Theres nothing customized/compiled on my fedora 16 installation.
What can be reason of this error, how I can debug problem ?
Thanks
I have problem with lastest stable cacti 0.8.7i on Fedora 16.
Cacti seems working, graphs are updating, but im unable to open Graph Management webpage. Its blank in browser, apache error log show me:
PHP Fatal error: Cannot redeclare graph() in /var/www/html/cacti/graphs.php on line 1337
Theres nothing customized/compiled on my fedora 16 installation.
What can be reason of this error, how I can debug problem ?
Thanks
Re: Cacti graps.php problem on Fedora 16
I have found out there is problem with graphviz-php-2.28.0-10.fc16.x86_64 installed. Something possibly collide.
Re: Cacti graps.php problem on Fedora 16
I am also finding the same issue after installing PIA in cacti server pls somebody help.
If click on graph management/data source link in console page i am getting blank screen in browser saying error on server
I am expecting some suggestion here pls help me.
If click on graph management/data source link in console page i am getting blank screen in browser saying error on server
I am expecting some suggestion here pls help me.
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Cacti graps.php problem on Fedora 16
Anything to be found in httpd's error.log?
R.
R.
Re: Cacti graps.php problem on Fedora 16
gandalf wrote:Anything to be found in httpd's error.log?
R.
Hi Gandalf,
Pls find the error log i am finding in httpd's.
Pls help me to solve this issue When i click on data soure/Graph management link under console page i am getting this blank page in browser saying server error.
Error Message
[Fri Jan 20 10:00:30 2012] [error] [client 10.64.3.94] PHP Notice: Constant OPER_MODE_NATIVE already defined in /usr/share/cacti/include/global_constants.php on line 190, referer: http://10.252.3.242/cacti/graph_view.ph ... =23&page=2
[Fri Jan 20 10:00:30 2012] [error] [client 10.64.3.94] PHP Notice: Constant OPER_MODE_RESKIN already defined in /usr/share/cacti/include/global_constants.php on line 191, referer: http://10.252.3.242/cacti/graph_view.ph ... =23&page=2
[Fri Jan 20 10:00:30 2012] [error] [client 10.64.3.94] PHP Notice: Constant OPER_MODE_IFRAME_NONAV already defined in /usr/share/cacti/include/global_constants.php on line 192, referer: http://10.252.3.242/cacti/graph_view.ph ... =23&page=2
[Fri Jan 20 10:00:30 2012] [error] [client 10.64.3.94] PHP Notice: Constant OPER_MODE_RESKIN already defined in /usr/share/cacti/include/global_constants.php on line 196, referer: http://10.252.3.242/cacti/graph_view.ph ... =23&page=2
[Fri Jan 20 10:00:30 2012] [error] [client 10.64.3.94] PHP Notice: Constant OPER_MODE_IFRAME_NONAV already defined in /usr/share/cacti/include/global_constants.php on line 197, referer: http://10.252.3.242/cacti/graph_view.ph ... =23&page=2
[Fri Jan 20 10:00:30 2012] [error] [client 10.64.3.94] PHP Notice: Constant OPER_MODE_NOTABS already defined in /usr/share/cacti/include/global_constants.php on line 198, referer: http://10.252.3.242/cacti/graph_view.ph ... =23&page=2
@
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Cacti graps.php problem on Fedora 16
Were did you get that code from? There's either an issue with including a file twice (e.g. by a broken plugin) or an issue with that file itself
R.
R.
Re: Cacti graps.php problem on Fedora 16
gandalf wrote:Were did you get that code from? There's either an issue with including a file twice (e.g. by a broken plugin) or an issue with that file itself
R.
Thanks for your response
I got this file from cacti site. Pls let know how to solve this issue.
Thanks
Vel R
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Cacti graps.php problem on Fedora 16
Please post list of installed plugins.
R.
R.
Re: Cacti graps.php problem on Fedora 16
I have installed Plugins like Nectar,Reportit,Realtime. All of this three plugins are working fine.
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Cacti graps.php problem on Fedora 16
Please deactivate those plugins one by one and retest. Do NOT uninstall, deactivation should be enough
R.
R.
Re: Cacti graps.php problem on Fedora 16
Thank you for your help.
Hi gandalf,
I disabled my cacti plugins one by one and After disabling the each plugin i clicked on graph managemnt/Data Source link in console page still i am getting the blank page in the browser.
Pls help me to fix this issue.
Thanks,
Vel R
Hi gandalf,
I disabled my cacti plugins one by one and After disabling the each plugin i clicked on graph managemnt/Data Source link in console page still i am getting the blank page in the browser.
Pls help me to fix this issue.
Thanks,
Vel R
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Cacti graps.php problem on Fedora 16
So my assumption blaming the plugins was wrong.
You told me, that Cacti was fetched from cacti site itself. So I should have the same code. But I can't reproduce that issue. I'm convinced, that this is due to including the global.php file twice. So I'm in fact lost.
R.
You told me, that Cacti was fetched from cacti site itself. So I should have the same code. But I can't reproduce that issue. I'm convinced, that this is due to including the global.php file twice. So I'm in fact lost.
R.
Re: Cacti graps.php problem on Fedora 16
I have the same issue.
I install a fresh http://www.cacti.net/downloads/cacti-0. ... 3.1.tar.gz and nothing else.
After install process, all work exept that I can't show "Graph Management" menu.
I have this error on http log :
[error] [client 179.59.67.243] PHP Fatal error: Cannot redeclare graph() in /var/www/cacti/graphs.php on line 1353
General Information
Date Mon, 13 Feb 2012 15:49:22 +0100
Cacti Version 0.8.7i
Cacti OS unix
SNMP Version NET-SNMP version: 5.5
RRDTool Version RRDTool 1.3.x
Hosts 1
Graphs 4
Data Sources Script/Command: 5
Total: 5
PHP Information
PHP Version 5.3.3
PHP OS Linux
PHP uname Linux xxx 2.6.32-220.4.1.el6.x86_64 #1 SMP Tue Jan 24 02:13:44 GMT 2012 x86_64
PHP SNMP Installed
max_execution_time 300
memory_limit 1024M
Centos 6.2
I install a fresh http://www.cacti.net/downloads/cacti-0. ... 3.1.tar.gz and nothing else.
After install process, all work exept that I can't show "Graph Management" menu.
I have this error on http log :
[error] [client 179.59.67.243] PHP Fatal error: Cannot redeclare graph() in /var/www/cacti/graphs.php on line 1353
General Information
Date Mon, 13 Feb 2012 15:49:22 +0100
Cacti Version 0.8.7i
Cacti OS unix
SNMP Version NET-SNMP version: 5.5
RRDTool Version RRDTool 1.3.x
Hosts 1
Graphs 4
Data Sources Script/Command: 5
Total: 5
PHP Information
PHP Version 5.3.3
PHP OS Linux
PHP uname Linux xxx 2.6.32-220.4.1.el6.x86_64 #1 SMP Tue Jan 24 02:13:44 GMT 2012 x86_64
PHP SNMP Installed
max_execution_time 300
memory_limit 1024M
Centos 6.2
Re: Cacti graps.php problem on Fedora 16
Hello Gandalf:
After many years, I have the same problem.
I installed cactis using this tutorial: https://gist.github.com/anamorph/dadeb22340ca4deec5f2.
I migrated scripts and rra from an old server to a new one (with the clen isntallation).
Now, when I access to "Graph Managment" I see a blank page. In the apache log I see:
I did a grep to search other graph() inside the directory, but there is only that. I don't have plugins installed.
I have the right permissions, etc. I even gave chmod 777 to everything to see if that was it.
-------------
It appear that the PHP version may cause the issue (http://comments.gmane.org/gmane.network.cacti.user/6300), but they say that new versions of cacti should be fine. I have PHP 5.3.3, and lates cacti version
Hoping you can help us!
Your,s
Cactus
After many years, I have the same problem.
I installed cactis using this tutorial: https://gist.github.com/anamorph/dadeb22340ca4deec5f2.
I migrated scripts and rra from an old server to a new one (with the clen isntallation).
Now, when I access to "Graph Managment" I see a blank page. In the apache log I see:
Code: Select all
apache log: PHP Fatal error: Cannot redeclare graph() in /usr/share/cacti/graphs.php on line 1337
and:
PHP Fatal error: Cannot redeclare graph() in /usr/share/cacti/graphs.php on line 1337, referer: http://myserver/cacti/graph_templates.php
I have the right permissions, etc. I even gave chmod 777 to everything to see if that was it.
-------------
It appear that the PHP version may cause the issue (http://comments.gmane.org/gmane.network.cacti.user/6300), but they say that new versions of cacti should be fine. I have PHP 5.3.3, and lates cacti version
Hoping you can help us!
Your,s
Cactus
Last edited by cactus66 on Thu Mar 17, 2016 3:06 am, edited 1 time in total.
Re: Cacti graps.php problem on Fedora 16
Any news with this???!?! We really need this service!
Who is online
Users browsing this forum: No registered users and 4 guests