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    


Page works except in editor

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


Joined: 21 Jun 2004
Posts: 101
Location: North of the Netherlands

PostPosted: Wed Mar 12, 2008 4:10 am    Post subject: Page works except in editor Reply with quote

Hello,

I'm currently working with a large page (2000+ lines) and the page gets generated in cacti fine. Forcing an upgrade of the page seems to work fine also but when I try to load the page inside the editor I only see a blank page.

I tested my environment (CactiEZ V0.3 with the latest cacti, plugin and weathermap) for the gd bug but that test went fine. Also running check.php doesn't give me any errors. Memory_limit is currently 256M but i have tried different values and that didn't make any difference.

I set $weathermap_debugging=TRUE; in weathermap.class.php but although I saw a lot of entries when the poller was running. Trying to load my page inside the editor doesn't show me anything inside the log.

The size of my page has been set to 1100 x 1300 using overlib and nearly every trick weathermap has.

Editing al the links by hand is quite cumbersome so any hints how to check any further?

Michael
Back to top
Howie
Cacti Guru User


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

PostPosted: Wed Mar 12, 2008 6:02 am    Post subject: Reply with quote

I suspect that enabling debug in the code like that will cause problems for the editor. You'd get the errors embedded in the PNG, which would definitely be bad. Did you try changing the memory up before or after doing that?

Failing that, would you be able to PM me a copy of the map file?
Back to top
mgb
Cacti User


Joined: 21 Jun 2004
Posts: 101
Location: North of the Netherlands

PostPosted: Thu Mar 13, 2008 3:29 am    Post subject: Reply with quote

Hello Howie,

I tried changing the amount of mem both with and without debugging. Nothing changed.

Although my screen turns blank there is some code in the page.

It looks like the output stops after the last writing of NODES with coordinates in the header part of the file just before writing:

Code:
   </script>
  <title>PHP Weathermap Editor 0.95a</title>
</head>


The last Nodes[' ..................... entry ends with iconfile:''};
So the problem starts after that part.
The last Node written is the last Node int my config file.

Hope this gives some more clues.
Back to top
mgb
Cacti User


Joined: 21 Jun 2004
Posts: 101
Location: North of the Netherlands

PostPosted: Thu Mar 13, 2008 9:35 am    Post subject: Reply with quote

Did some further investigation.

Looks like the problem is in this part of editor.php

<?php
print $map->asJS(); <-- This is executed

Anything past this function does noet appear in the page.
Back to top
Howie
Cacti Guru User


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

PostPosted: Thu Mar 13, 2008 9:41 am    Post subject: Reply with quote

mgb wrote:
Did some further investigation.

Looks like the problem is in this part of editor.php

<?php
print $map->asJS(); <-- This is executed

Anything past this function does noet appear in the page.


That makes sense with what you said before. This is what produces the big array of nodes and links in the editor.
Back to top
mgb
Cacti User


Joined: 21 Jun 2004
Posts: 101
Location: North of the Netherlands

PostPosted: Thu Mar 13, 2008 9:47 am    Post subject: Reply with quote

@Howie

Send you a PM
Back to top
mgb
Cacti User


Joined: 21 Jun 2004
Posts: 101
Location: North of the Netherlands

PostPosted: Wed Mar 19, 2008 4:08 am    Post subject: Reply with quote

Foud an entry in the apache log

Quote:
[Wed Mar 19 10:59:43 2008] [notice] child pid 12885 exit signal Segmentation fault (11)


Looks like the problem is in my php version. Upgrade is a bit hard since i'm not connected to the internet.
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