|
|
| Author |
Message |
ABX Cacti User
Joined: 01 Mar 2007 Posts: 61
|
Posted: Thu Mar 01, 2007 5:57 am Post subject: Problem with Weathermap Editor |
|
|
| 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: 2135 Location: United Kingdom
|
Posted: Thu Mar 01, 2007 6:17 am Post subject: Re: Problem with Weathermap Editor |
|
|
| 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
|
Posted: Thu Mar 01, 2007 7:13 am Post subject: |
|
|
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: 2135 Location: United Kingdom
|
Posted: Thu Mar 01, 2007 7:41 am Post subject: |
|
|
| 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
|
Posted: Thu Mar 01, 2007 7:45 am Post subject: |
|
|
| 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: 2135 Location: United Kingdom
|
Posted: Thu Mar 01, 2007 8:37 am Post subject: |
|
|
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
|
Posted: Thu Mar 01, 2007 8:59 am Post subject: |
|
|
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
|
Posted: Thu Mar 01, 2007 9:17 am Post subject: |
|
|
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: 2135 Location: United Kingdom
|
Posted: Thu Mar 01, 2007 10:19 am Post subject: |
|
|
| 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
|
Posted: Fri Mar 02, 2007 3:40 am Post subject: |
|
|
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: 2135 Location: United Kingdom
|
Posted: Sat Mar 03, 2007 10:40 am Post subject: |
|
|
| 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 |
|
 |
|