blank pages on plugin page

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
bazzieb
Posts: 6
Joined: Tue Apr 10, 2012 8:47 am

blank pages on plugin page

Post by bazzieb »

Hi There

I am running cacti 0.8.8a on ubuntu 10.10. I installed reportit and weathermap but when i click on the link, it gives me a blank page.

Any ideas?

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

Re: blank pages on plugin page

Post by gandalf »

Did you configure those plugins through "Settings"?
R.
nditguy
Posts: 4
Joined: Wed Apr 24, 2013 10:13 am

Re: blank pages on plugin page

Post by nditguy »

I installed cacti 0.8.8a, using spine 0.8.8a, plugin architecture 3.1. on Ubuntu 12.10 server.
I am also getting blank pages on my three plugins i have installed, monitor, thold, mikrotik. more specifically I am getting HTTP error 500 (internal Server Error) on all the plugins. I have the Settings 0.71 plugin installed also. I can not enter the Configuration/Settings, I get the same 500 error. going to the apache2 error log I see several errors here also.
PHP Fatal error: Call to undefined function get_graph_tree_array() in /usr/local/share/cacti/plugins/monitor/monitor.php on line 814, referer: http://......./cacti/plugins.php
PHP Fatal error: Call to undefined function define_syslog_variables() in /usr/local/share/cacti/plugins/thold/includes/settings.php on line 132, referer: http://......./cacti/plugins.php
PHP Warning: include_once(./include/auth.php): failed to open stream: No such file or directory in /usr/local/share/cacti/plugins/monitor/monitor.php on line 30, referer: http://......./cacti/plugins.php
PHP Warning: include_once(): Failed opening './include/auth.php' for inclusion (include_path='.') in /usr/local/share/cacti/plugins/monitor/monitor.php on line 30, referer: http://......./cacti/plugins.php
PHP Fatal error: Call to undefined function define_syslog_variables() in /usr/local/share/cacti/plugins/thold/includes/settings.php on line 132, referer: http://......./cacti/plugins.php

I have googled, searched forums, the closet I come up with is a bug.....http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=681558. I believe I created the the link correctly. but it still gives a 500 error.

Can anyone shed some light on this so I can get my cacti up and running on 0.8.8a?

Thank you
nditguy
Posts: 4
Joined: Wed Apr 24, 2013 10:13 am

Re: blank pages on plugin page

Post by nditguy »

I installed cacti 0.8.8a, using spine 0.8.8a, plugin architecture 3.1. on Ubuntu 12.10 server.
I am also getting blank pages on my three plugins i have installed, monitor, thold, mikrotik. more specifically I am getting HTTP error 500 (internal Server Error) on all the plugins. I have the Settings 0.71 plugin installed also. I can not enter the Configuration/Settings, I get the same 500 error. going to the apache2 error log I see several errors here also.
PHP Fatal error: Call to undefined function get_graph_tree_array() in /usr/local/share/cacti/plugins/monitor/monitor.php on line 814, referer: http://......./cacti/plugins.php
PHP Fatal error: Call to undefined function define_syslog_variables() in /usr/local/share/cacti/plugins/thold/includes/settings.php on line 132, referer: http://......./cacti/plugins.php
PHP Warning: include_once(./include/auth.php): failed to open stream: No such file or directory in /usr/local/share/cacti/plugins/monitor/monitor.php on line 30, referer: http://......./cacti/plugins.php
PHP Warning: include_once(): Failed opening './include/auth.php' for inclusion (include_path='.') in /usr/local/share/cacti/plugins/monitor/monitor.php on line 30, referer: http://......./cacti/plugins.php
PHP Fatal error: Call to undefined function define_syslog_variables() in /usr/local/share/cacti/plugins/thold/includes/settings.php on line 132, referer: http://......./cacti/plugins.php

I have googled, searched forums, the closet I come up with is a bug.....http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=681558. I believe I created the the link correctly. but it still gives a 500 error.

Can anyone shed some light on this so I can get my cacti up and running on 0.8.8a?

Thank you
nditguy
Posts: 4
Joined: Wed Apr 24, 2013 10:13 am

Re: blank pages on plugin page

Post by nditguy »

Settings gives me a blank page. So no, I can't set the settings page.
nugrozz2k
Posts: 7
Joined: Wed Jan 09, 2013 11:04 pm
Location: Indonesia

Re: blank pages on plugin page

Post by nugrozz2k »

i have the same problem.... (using the same version too) ... tab, setting aboout report it only display blank screen.... :(
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: blank pages on plugin page

Post by phalek »

Most of you are probably running a newer PHP (PHP 5.4?) version hence the error.

The plugin developers need to update the code to reflect the change in PHP 5.4 for the function "define_syslog_variables":

This function has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.

See: http://php.net/manual/en/function.defin ... iables.php
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: blank pages on plugin page

Post by cigamit »

What version of Thold? That specific error was fixed over a year ago.
http://svn.cacti.net/viewvc/thold/branc ... s&view=log

Modified Thu May 17 20:52:57 2012 UTC (12 months, 3 weeks ago) by cigamit
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: blank pages on plugin page

Post by phalek »

The latest from the plugin page (http://docs.cacti.net/plugin:thold -> 0.4.9-3 ) still has this set ( include/settings.php:

Code: Select all

function thold_config_settings () {
	global $tabs, $settings, $item_rows, $config;

	if (isset($_SERVER['PHP_SELF']) && basename($_SERVER['PHP_SELF']) != 'settings.php') return;

	include_once("./plugins/thold/thold_functions.php");

	define_syslog_variables();

...
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: blank pages on plugin page

Post by cigamit »

Hmmm... seems 0.5 wasn't posted when it was released. I have posted it now.
nugrozz2k
Posts: 7
Joined: Wed Jan 09, 2013 11:04 pm
Location: Indonesia

Re: blank pages on plugin page

Post by nugrozz2k »

It seems path folder issue....
my plugins now works fine... i just re-extract the zip file to /usr/local/share/cacti/plugins/ (previously i was copy it to /usr/share/cacti/site/plugins/) ...

thanks all....
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests