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    


Problem with Weathermap Editor

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


Joined: 01 Mar 2007
Posts: 61

PostPosted: Thu Mar 01, 2007 5:57 am    Post subject: Problem with Weathermap Editor Reply with quote

When I try to access the weathermap editor all I get is a blank page. No errors or anything.
Back to top
Howie
Cacti Guru User


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

PostPosted: Thu Mar 01, 2007 6:17 am    Post subject: Re: Problem with Weathermap Editor Reply with quote

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?
Back to top
ABX
Cacti User


Joined: 01 Mar 2007
Posts: 61

PostPosted: Thu Mar 01, 2007 7:13 am    Post subject: Reply with quote

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
Back to top
Howie
Cacti Guru User


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

PostPosted: Thu Mar 01, 2007 7:41 am    Post subject: Reply with quote

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.
Back to top
ABX
Cacti User


Joined: 01 Mar 2007
Posts: 61

PostPosted: Thu Mar 01, 2007 7:45 am    Post subject: Reply with quote

There isn't a single event in Application log about PHP or IIS.
Back to top
Howie
Cacti Guru User


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

PostPosted: Thu Mar 01, 2007 8:37 am    Post subject: Reply with quote

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.
Back to top
ABX
Cacti User


Joined: 01 Mar 2007
Posts: 61

PostPosted: Thu Mar 01, 2007 8:59 am    Post subject: Reply with quote

php editor.php
PHP Parse error: syntax error, unexpected $end in C:\Web\Cacti\plugins\weathermap\editor.php on line 859
Back to top
ABX
Cacti User


Joined: 01 Mar 2007
Posts: 61

PostPosted: Thu Mar 01, 2007 9:17 am    Post subject: Reply with quote

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
Back to top
Howie
Cacti Guru User


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

PostPosted: Thu Mar 01, 2007 10:19 am    Post subject: Reply with quote

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.
Back to top
ABX
Cacti User


Joined: 01 Mar 2007
Posts: 61

PostPosted: Fri Mar 02, 2007 3:40 am    Post subject: Reply with quote

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.
Back to top
Howie
Cacti Guru User


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

PostPosted: Sat Mar 03, 2007 10:40 am    Post subject: Reply with quote

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.
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