Problem with Weathermap Editor

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
ABX
Cacti User
Posts: 68
Joined: Thu Mar 01, 2007 5:55 am

Problem with Weathermap Editor

Post by ABX »

When I try to access the weathermap editor all I get is a blank page. No errors or anything.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Problem with Weathermap Editor

Post by Howie »

ABX wrote:When I try to access the weathermap editor all I get is a blank page. No errors or anything.
How about in your Apache error_log?
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
ABX
Cacti User
Posts: 68
Joined: Thu Mar 01, 2007 5:55 am

Post by ABX »

I'm using IIS 6.0 on Win2003 server. All I see in the log is:

2007-03-01 12:21:17 W3SVC1 xxx.xxx.xxxxxx GET /cacti/plugins/weathermap/editor.php - 80 - xx.xxx.xxx.xxx Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+InfoPath.1;+.NET+CLR+1.1.4322) 200 0 0
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

ABX wrote:I'm using IIS 6.0 on Win2003 server. All I see in the log is:

2007-03-01 12:21:17 W3SVC1 xxx.xxx.xxxxxx GET /cacti/plugins/weathermap/editor.php - 80 - xx.xxx.xxx.xxx Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+InfoPath.1;+.NET+CLR+1.1.4322) 200 0 0
How about in the Application event log then? I guess that's where PHP errors would end up on IIS.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
ABX
Cacti User
Posts: 68
Joined: Thu Mar 01, 2007 5:55 am

Post by ABX »

There isn't a single event in Application log about PHP or IIS.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

I guess you'll need install the Psychic ISAPI extension then :-)

You could try running the editor from the command prompt, just to see if it gives anything useful. Most likely cause would be a missing (or not-enabled) GD library.

php editor.php should give you some HTML back. If it doesn't, it might give you a useful error message.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
ABX
Cacti User
Posts: 68
Joined: Thu Mar 01, 2007 5:55 am

Post by ABX »

php editor.php
PHP Parse error: syntax error, unexpected $end in C:\Web\Cacti\plugins\weathermap\editor.php on line 859
ABX
Cacti User
Posts: 68
Joined: Thu Mar 01, 2007 5:55 am

Post by ABX »

Yay, found the problem. Thanks Howie for your time.

Copy / Paste
If your code looks to be ok, I have found that this is often caused by the use of Short Open tags in PHP.

The full tag is
PHP Code:
<?php
but the short open tag can be used as well.
PHP Code:
<?
However, you must allow short open tags in your PHP.INI file. Look for the SHORT_OPEN_TAG directive in your PHP.INI file and set it to "1"

I hope this helps.

+
IIS restart
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

ABX wrote:Yay, found the problem. Thanks Howie for your time.

Copy / Paste
If your code looks to be ok, I have found that this is often caused by the use of Short Open tags in PHP.

The full tag is
PHP Code:
<?php
but the short open tag can be used as well.
PHP Code:
<?
However, you must allow short open tags in your PHP.INI file. Look for the SHORT_OPEN_TAG directive in your PHP.INI file and set it to "1"

I hope this helps.

+
IIS restart
Aha. I forgot about htat one. It's already fixed in the next release.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
ABX
Cacti User
Posts: 68
Joined: Thu Mar 01, 2007 5:55 am

Post by ABX »

Another day, another problem. :)

I'm trying to add some images to the map, but I don't see anything once I add the image in the editor.

I'm getting the "Your background image file could not be read. Check the filename, and permissions, for imagesbackground.png" in Cacti log file.

I'm trying to search this newly created files by the editor, but there aren't any in the Cacti maps.

P.S: Solved

The editor writes the image path wrongly in the map.conf instead of images/picture.png it writes imagepicture.png.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

ABX wrote: P.S: Solved

The editor writes the image path wrongly in the map.conf instead of images/picture.png it writes imagepicture.png.
I'll check that. I guess it's a windows issue - \'s vs /'s and \s means something special to php. I thought I'd fixed all of those. :roll:
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests