cacti 0.8.8f - graph tree empty

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
damanlx
Posts: 1
Joined: Fri Aug 14, 2015 3:26 am

cacti 0.8.8f - graph tree empty

Post by damanlx »

Hi,

In my (pretty basic) 0.8.8f install graph tree is empty for some reason... Everything else seems to be ok - it's just I can't see anything ;)
Here's console error I'm getting:

Code: Select all

TypeError: $(...).attr(...) is undefined
$.get($('#'+node+'_anchor').attr('href').replace('leaf_id=&', 'leaf_id='+leaf+'&...	         graph_view.php (line 93, col 10)
No errors in the logs...

I think importing poller_stats templates could have something to do with it (not 100% sure though).

Any ideas..?


EDIT:

On further inspection: $('#'+node+'_anchor') doesn't seem to have href attribute...

Code: Select all

 Object[]
context
	Document graph_view.php
jquery
	"1.10.2"
length
	0
selector
	"#node1_11_hgd_gt_8_anchor"
constructor
	function(selector, context)
init
	function(selector, context, rootjQuery)
accordion
	function(options)
etc...
Edit 2:

Commenting out the following:

Code: Select all

/*                              $.get($('#'+node+'_anchor').attr('href').replace('leaf_id=&', 'leaf_id='+leaf+'&').replace('action=tree', 'action=tree_content')+"&nodeid="+node, function(data) {
                                        $('#main').html(data);
                                }); */
does seem to do the trick - looks like it's all working again... Any idea what the above code does (I'm not JS expert in fact I'm not an expert in anything ;))
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: cacti 0.8.8f - graph tree empty

Post by BSOD2600 »

Any plugins? those which attempt to load jQuery again are known to cause blank pages. there is a thread with a list...
Screenshot of the issue you're describing?
Yes, importing templates can overwrite a lot of other templates, etc.
answer42
Posts: 3
Joined: Thu Aug 20, 2015 7:13 am

Re: cacti 0.8.8f - graph tree empty

Post by answer42 »

Me too! Also in the 0.8.8g SVN version.

But BSOD2006 is right. I have now found these threads:

http://forums.cacti.net/viewtopic.php?f=21&t=53727
http://forums.cacti.net/viewtopic.php?f ... ry#p257890

It really is the plugins like flowview or superlinks. However, disabling and uninstalling is not enough! The best way is to edit the setup.php file of the affected plugins so you can also re-install/re-enable them. I commented the lines with jquery*.js out (//).

Regards

Markus
answer42
Posts: 3
Joined: Thu Aug 20, 2015 7:13 am

Re: cacti 0.8.8f - graph tree empty

Post by answer42 »

And now the graphs are gone again for whatever reason, I'm getting crazy -.- Whatever caching is playing tricks on me. Or it roots deeper.

I do, however, have a temporary workaround:

- edit cacti/include/top_graph_header.php
- go to line 169
- change display:none to display:block
- save
- refresh the page

Regards
thirty2
Posts: 30
Joined: Wed Mar 04, 2015 9:42 am

Re: cacti 0.8.8f - graph tree empty

Post by thirty2 »

Can you please post a printscreen? Thanks
answer42
Posts: 3
Joined: Thu Aug 20, 2015 7:13 am

Re: cacti 0.8.8f - graph tree empty

Post by answer42 »

Here you are and thank you :-)

For these tests I undid my changes to the PHP file.

cacti-tree-4.jpg and cacti-tree-5.jpg were done with all plugins disabled, uninstalled and plugin directories removed - then Mozilla cache removed and Apache 2.4 restarted. The first were done with just Mozilla cleared and Apache restarted but plugins active. Doesn't make a difference.
Attachments
cacti-tree-1.jpg
cacti-tree-1.jpg (174.78 KiB) Viewed 5085 times
cacti-tree-2.jpg
cacti-tree-2.jpg (306.77 KiB) Viewed 5085 times
cacti-tree-3.jpg
cacti-tree-3.jpg (87.83 KiB) Viewed 5085 times
cacti-tree-4.jpg
cacti-tree-4.jpg (163.07 KiB) Viewed 5085 times
cacti-tree-5.jpg
cacti-tree-5.jpg (146.45 KiB) Viewed 5085 times
thirty2
Posts: 30
Joined: Wed Mar 04, 2015 9:42 am

Re: cacti 0.8.8f - graph tree empty

Post by thirty2 »

I am not sure, but i think i had the same problem once.
It had to do something with that jQuery was loading twice, by Cacti and Superlinks plugin.

But you uninstall the plugins, so that is strange :-?
Imperial
Posts: 6
Joined: Wed Jan 12, 2011 9:22 am
Location: Vienna - Austria

Re: cacti 0.8.8f - graph tree empty

Post by Imperial »

I'm using the old Version of superlinks 0.8 with cacti 0.8.8f and have no problems, sometimes the old ones run better then the new ones. ;-)
lep
Posts: 2
Joined: Wed Aug 20, 2014 5:11 am

Re: cacti 0.8.8f - graph tree empty

Post by lep »

I disabled the plugin Superlinks v 1.4 and graphics appeared.
ikorzha758
Cacti User
Posts: 164
Joined: Thu Jan 21, 2010 8:41 pm

Re: cacti 0.8.8f - graph tree empty

Post by ikorzha758 »

FYI, I have just upgraded to beta release of 0.8.8g from SVN and it resolved all of the pending issues. Such as empty graph tree and issues with THOLD log pages not scrolling...
Highly recommend the upgrade.
dagonet
Cacti User
Posts: 90
Joined: Sat Oct 29, 2005 4:05 pm
Location: Wuerzburg

Re: cacti 0.8.8f - graph tree empty

Post by dagonet »

Good morning,
I have the same issue. Cacti version is 0.8.8g, so the actual version. Enabling superlinks 1.4 graph page is empty, enabling superlinks graphpage is empty :-(.
skwosh
Posts: 10
Joined: Fri Jun 09, 2017 9:20 am

Re: cacti 0.8.8f - graph tree empty

Post by skwosh »

I had same issue on Ubuntu 16 and reinstalling "javascript-common" helped me:

apt-get purge javascript-common
apt-get install javascript-common
service apache2 restart
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: cacti 0.8.8f - graph tree empty

Post by Osiris »

I would just move to Cacti 1.x if I were you. The old Cacti is dead and will not be maintained.
Before history, there was a paradise, now dust.
jackie
Cacti User
Posts: 71
Joined: Fri Sep 14, 2007 12:43 pm

Re: cacti 0.8.8f - graph tree empty

Post by jackie »

We are seeing this problem with Guest account, Ubuntu 16.04, cacti 0.8.8f. Would like to stick with v0.8.8f as that is supported by Ubuntu apt utilities. Also need weathermap and there isn't a stable release of that for cacti 1.x.

If anyone has found a way to patch cacti 0.8.8f to fix this issue, I'd love to hear about it. I'm wondering if upgrading include/top_graph_header.php to match what is in 0.8.8g might work.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest