Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


[SOLVED] Can't edit maps /w 0.95a Cacti plugin

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map)
Author Message
mduling



Joined: 01 Mar 2005
Posts: 16

PostPosted: Mon Mar 10, 2008 8:16 pm    Post subject: [SOLVED] Can't edit maps /w 0.95a Cacti plugin Reply with quote

Not sure what I'm doing wrong, but 0.95a's editor doesn't work for me. I checked paths and permissions. My old map works fine but when I enter the editor I can't click on anything. The menu buttons are dead, and clicking on nodes and links does nothing. I am using PHP 5/Apache 2.2.x/OS X.
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2135
Location: United Kingdom

PostPosted: Tue Mar 11, 2008 3:18 am    Post subject: Reply with quote

What browser are you using? All the 'clickiness' is done with javascript, so it's likely to be that side that's the issue.

If your browser has one, have a look at the javascript (not java) console, and see if it shows any errors.
Back to top
kentmmm



Joined: 11 Mar 2008
Posts: 1

PostPosted: Tue Mar 11, 2008 10:46 am    Post subject: Reply with quote

Howie wrote:
What browser are you using? All the 'clickiness' is done with javascript, so it's likely to be that side that's the issue.


Error appears in case of changing node ICON parametr.
Problem source is undefined symbol "console" in editor.js



if(mynode.iconfile != '')
{
console.log(mynode.iconfile.substring(0,2));
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
remove this line and it work
if(mynode.iconfile.substring(0,2)=='::')
Back to top
mduling



Joined: 01 Mar 2005
Posts: 16

PostPosted: Tue Mar 11, 2008 11:19 am    Post subject: Reply with quote

Ah, it is a browser issue. I'm using Safari, but with Firefox the problem goes away.

Well I removed this line but it didn't fix it for Safari:
if(mynode.iconfile.substring(0,2)=='::')

Or was that the line you meant?
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2135
Location: United Kingdom

PostPosted: Tue Mar 11, 2008 1:35 pm    Post subject: Reply with quote

No, it's the console.log() line.

That's intended to talk to the Firebug javascript debugger. Shouldn't really be in the release code
Back to top
mduling



Joined: 01 Mar 2005
Posts: 16

PostPosted: Tue Mar 11, 2008 3:13 pm    Post subject: Reply with quote

Got it. That fixed the problem on Safari. Thanks!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map) All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group