[Chameleon] Chameleon images access problem ....

Gail Millin Gail.Millin at manchester.ac.uk
Fri Mar 17 04:11:53 EST 2006


Hi Jeremy

As I gather from your postings the chameleon page is loading fine apart from the keymap and main image? 

Have you looked at your php log file and session files?

When I experienced this problem it was because a session lock was being generated which blocked the details of the Mapfile being served hence no image. 

I suggest doing the following in the php.ini file go to the session section and set

Session.save_handler = files
Session.save_path = c:/Inetpub/wwwroot/tmp
Session.use_cookies = 1

Then reload your chameleon application so it generates the session folder in the specified directory tmp. Check that a lock file is being created.
If it is then go to C:\Inetpub\wwwroot\chameleon\htdocs\common\session\session.php

Comment out the line $szLockFile = $szSessionDir using /* */
Set the variable $GLOBALS [szDebugDir] = "c:/Inetpub/wwwroot/tmp/"

Then reload the application and see if the images appear. 

Also to check to see if everthing is configured properly load in your web browser http://yourserver/chamemeleon/admin/main.phtml it provides details of chameleon, cwc2, mapscript and php configuration. 

Hope this helps?

Gail Millin
 
Geodata Interoperability Support Officer
The University of Manchester
Kilburn Building
Oxford Road
M13 9PL
 
Tel: +44 (0) 161 275 0581
E-mail: Gail.Millin at manchester.ac.uk
Website: http://www.landmap.ac.uk 
 
> 
> Message: 1
> Date: Thu, 16 Mar 2006 16:37:16 -0500
> From: "Sears, Jeremy" <Jeremy.Sears at CCRS.NRCan.gc.ca>
> Subject: RE: [Chameleon] Chameleon images access problem ....
> To: "'Julien-Samuel Lacroix'" <jlacroix at mapgears.com>
> Cc: chameleon at lists.maptools.org
> Message-ID:
> 	<B7F9814D6850C949947CF8DEA13477810331621E at s5-ccr-
> r2.ccrs.nrcan.gc.ca>
> Content-Type: text/plain;	charset="ISO-8859-1"
> 
> Hi Julien,
> Thanks for the response.
> 
> >>What is the path to the map and button images built by Chameleon?
> 
> Ok, when I access the application from within the LAN: (application works
> fine from within LAN)
> 
> path to button images built by chameleon:
> http://LAN.Address/adir/ms_tmp/buttons/b9c8ba9f13a339fa082830d6adce742e7.p
> ng
> 
> Path to main map image:
> http://LAN.address/chameleon//common//wrapper/drawmap.php?map_session_mode
> =1
> &run_query=0&sid=4419d4e72c00c&dummy=0.26094800+1142543592&UniqId=11425436
> 49
> 455758&gszPersistentQuery=false
> 
> and when I attempt to access the application from outside the LAN:
> 
> path to button images built by chameleon:(this image works fine)
> https://WEB.Address/adir/ms_tmp/buttons/b436d2260d70037e20a624b0767b57dfc.
> pn
> g
> 
> Path to main map image: (this is a blank image)
> https://WEB.Address/chameleon//skins/default/images/a_pixel.gif
> 
> 
> >>Does the server is visible from the web?
> Is the server visible from the web? Yes, other components of this site
> including html files and php files are all served without any problems to
> the web.
> 
> >>  Is there a Firewall between this machine and the web?
> Yes, Im quite certian we are behind a firewall*
> 
> >> folder containing the images is visible from the web?
> Im quite certian it is. Apache Alias' have been created for /tmp and
> /ms_tmp. These folders are accessable, as is /ms_tmp/buttons.
> 
> >> Did you check the "Block images from this server" option on Firefox?
> The "block images from this server" option is not checked.
> 
> *The computer that has ms4w/chameleon installed is behind a firewall. Our
> IT
> folks have opened up access to the directory inwhich ms4w is installed.
> HTTP
> requests comming from the web are directed to this machiene via proxy. I
> believe its IIS that driects traffic to the ms4w/chameleon install. Do you
> think there could be somesort of configuration issue between IIS and
> Apache?
> Perhaps a firewall setting or 'mis-setting'?
> 
> Thanks for your help!
> Jeremy
> 
> 
> 
> 
> 
> -----Original Message-----
> From: chameleon-bounces at lists.maptools.org
> [mailto:chameleon-bounces at lists.maptools.org]On Behalf Of Julien-Samuel
> Lacroix
> Sent: March 16, 2006 4:06 PM
> To: Sears, Jeremy
> Cc: chameleon at lists.maptools.org
> Subject: Re: [Chameleon] Chameleon images access problem ....
> 
> 
> Hi,
> We'll need to dig to find this one.
> What is the path to the map and button images built by Chameleon?
> This kind of problem is usually due to Apache. Does the server is
> visible from the web? Is there a Firewall between this machine and the
> web? Does the folder containing the images is visible from the web?
> 
> Julien
> PS: Did you check the "Block images from this server" option on Firefox?
> I already experience something like what you describe because of that. :)
> 
> Sears, Jeremy wrote:
> > Hi All,
> > Regarding the post below, I got chameleon's elements to work. However,
> > the map image and key map dont work. Im thinking this may be related
> > more to mapserver rather than chameleon... Any suggestions would be
> great.
> >
> > Thanks
> > Jeremy
> >
> >
> >     -----Original Message-----
> >     *From:* chameleon-bounces at lists.maptools.org
> >     [mailto:chameleon-bounces at lists.maptools.org]*On Behalf Of *Sears,
> >     Jeremy
> >     *Sent:* March 16, 2006 11:23 AM
> >     *To:* chameleon at lists.maptools.org
> >     *Subject:* [Chameleon] Chameleon images access problem ....
> >
> >     Hi All,
> >     IM having a problem with my chameleon installation ....
> >     I have chameleon setup with ms4w on winserver2003.
> >
> >     When I view my application from our LAN (either localhost or another
> >     computer on the LAN) the application works fine.
> >     However, when I attempt to view the application from the WAN, none
> >     of chameleon's elements work. The map, keymap, scalebar, button
> >     images .. etc all show up as broken links.
> >
> >     I have the entire ms4w package installed in in a location off the
> >     root like:
> >
> >     /adirectory/anotherdirectory/ms4w
> >
> >
> >     Does anyone have any thoughts as to why the app works fine when
> >     accessed from LAN but breaks when accesing through WAN?
> >     Thanks
> >     Jeremy
> >
> >
> >
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Chameleon mailing list
> > Chameleon at lists.maptools.org
> > http://lists.maptools.org/mailman/listinfo/chameleon
> 
> --
> Julien-Samuel Lacroix
> Mapgears
> http://www.mapgears.com/
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
> 
> 
> ------------------------------
> 
> Message: 2
> Date: Thu, 16 Mar 2006 15:37:28 -0600
> From: "He, Matt Yubin" <mhe at itsc.uah.edu>
> Subject: [Chameleon] (no subject)
> To: "listserver server" <chameleon.listserver at gmail.com>
> Cc: chameleon at lists.maptools.org
> Message-ID:
> 	<F2934DE4D6F7534FA4037EF19C416A2D047F6B at frost.itsc.uah.edu>
> Content-Type: text/plain; charset="us-ascii"
> 
> 
> 
> The link in my previous email was wrong, here is the link for html
> legend: http://mapserver.gis.umn.edu/docs/howto/html_legend
> 
> 
> 
> It looks to me, you just took out one line from the example legend
> template file:
> 
> 
> 
> <td><input type="radio" name="my_legend"
> onclick="CWCSelectLayer('[leg_layer_name]', true)"[if name=selected
> value=1] CHECKED[/if] ></td>
> 
> 
> 
> I tried it in my chameleon application, it worked fine.
> 
> 
> 
> Did you click the Update button? Or try to use the example legend
> template file.
> 
> 
> 
> 
> 
> Matt
> 
> 
> 
> 
> 
> ------------------------------
> 
> 
> 
> Message: 2
> 
> Date: Thu, 16 Mar 2006 19:28:22 +0100
> 
> From: "listserver server" <chameleon.listserver at gmail.com>
> 
> Subject: [Chameleon] Re: Chameleon Digest, Vol 24, Issue 36
> 
> To: chameleon at lists.maptools.org
> 
> Message-ID: <253120740603161028p5c334855s at mail.gmail.com>
> 
> Content-Type: text/plain; charset="iso-8859-1"
> 
> 
> 
> >
> 
> >
> 
> >    2. Legend Problem in chameleon (listserver server)
> 
> >
> 
> 
> 
> Hi Matt
> 
> i want all my layer of my map file, but i want to enable/disable them
> from checkbox! as in chameleon sample!
> 
> -------------- next part --------------
> 
> An HTML attachment was scrubbed...
> 
> URL:
> http://lists.maptools.org/pipermail/chameleon/attachments/20060316/40e30
> 3d7/attachment-0001.html
> 
> 
> 
> ------------------------------
> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.maptools.org/pipermail/chameleon/attachments/20060316/af86ab0
> f/attachment-0001.html
> 
> ------------------------------
> 
> Message: 3
> Date: Thu, 16 Mar 2006 21:43:02 -0000
> From: "Alan Hale" <alan.hale at btclick.com>
> Subject: RE: [Chameleon] Keymap problem
> To: "'Julien-Samuel Lacroix'" <jlacroix at mapgears.com>
> Cc: chameleon at lists.maptools.org
> Message-ID: <000001c64942$9a8cb660$0301a8c0 at bryo>
> Content-Type: text/plain;	charset="windows-1250"
> 
> Yes, that's it!  Very many thanks.
> 
> Alan
> 
> Alan Hale
> Aberystwyth
> Wales, UK
> 
> -----Original Message-----
> From: Julien-Samuel Lacroix [mailto:jlacroix at mapgears.com]
> 
> Hi,
> Try removing the SRS parameter in the KeyMap widget.
> 
> Julien
> 
> Alan Hale wrote:
> > Hi Julien
> >
> > I think so. Here are extracts from map file and template:
> >
> >
> >
> >
> >>From Map file
> >
> >
> > MAP
> >
> > 	SIZE 500 500
> > 	EXTENT 209189 155600 363469 400130
> > 	UNITS meters
> > 	IMAGECOLOR 209 246 236
> > 	IMAGETYPE PNG
> > 	SCALEBAR
> > 	  STATUS embed
> > 		UNITS kilometers
> > 		INTERVALS 4
> > 		TRANSPARENT true
> > 		OUTLINECOLOR 0 0 0
> > END
> >
> >
> >
> >>From template.html
> >
> >
> > <CWC2 TYPE="MapDHTML"
> >                 VISIBLE="true"
> >                 WIDTH="600"
> >                 HEIGHT="600"
> >                 ALLOWRESIZE="true"
> >                 MARQUEECOLOR="#FF3333"
> >                 MARQUEEWIDTH="2"
> >                 MINSCALE="1"/>
> >
> >
> >
> > <CWC2 TYPE="KeyMap"
> >                 IMAGE="./images/wales_back.png"
> >                 WIDTH="300"
> >                 HEIGHT="300"
> >                 COLOR="-1 -1 -1"
> >                 OUTLINECOLOR="255 0 0"
> >                 MINX="209189"
> >                 MINY="155600"
> >                 MAXX="363469"
> >                 MAXY= "400130"
> >                 SRS=""/>
> >
> > Alan
> >
> > -----Original Message-----
> > From: Julien-Samuel Lacroix [mailto:jlacroix at mapgears.com]
> >
> >
> > Hi,
> > Does the following parameters are correctly set in your KeyMap widget?
> 
> > Width, Height, MinX, MinY, MaxX, MaxY and SRS
> >
> > Julien
> >
> > Alan Hale wrote:
> >
> >>Hi - new to Chameleon and not long with Mapserver/Mapscript.
> >>
> >>The bounded area within my reference map does not display correctly
> >>when I use the keymap widget - I have a square main map and a square
> >>reference map, and the map extents match, but the bounding box within
> >>the reference map when I zoom in shows as a rectangle, and slightly
> >>shifted to the East. Works fine with the same parameters when I used
> >>Mapscript directly.
> >>
> >>Grateful for any help.
> >>
> >>Alan Hale
> >>Aberystwyth
> >>Wales, UK
> >>
> >
> >
> 
> --
> Julien-Samuel Lacroix
> Mapgears
> http://www.mapgears.com/
> 
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.385 / Virus Database: 268.2.4/282 - Release Date:
> 15/03/2006
> 
> 
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.385 / Virus Database: 268.2.4/282 - Release Date:
> 15/03/2006
> 
> 
> 
> 
> ------------------------------
> 
> Message: 4
> Date: Thu, 16 Mar 2006 17:07:12 -0500
> From: Julien-Samuel Lacroix <jlacroix at mapgears.com>
> Subject: Re: [Chameleon] Chameleon images access problem ....
> To: "Sears, Jeremy" <Jeremy.Sears at CCRS.NRCan.gc.ca>
> Cc: chameleon at lists.maptools.org
> Message-ID: <4419E190.8070501 at mapgears.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> Hi,
> Did you check the error log of Apache and IIS? You should see the exact
> request to the image. That should give you good hints. Does the path to
> the image in IIS _and_ Apache config are visible from the web?
> 
> Julien
> 
> Sears, Jeremy wrote:
> > Hi Julien,
> > Thanks for the response.
> >
> >
> >>>What is the path to the map and button images built by Chameleon?
> >
> >
> > Ok, when I access the application from within the LAN: (application
> works
> > fine from within LAN)
> >
> > path to button images built by chameleon:
> >
> http://LAN.Address/adir/ms_tmp/buttons/b9c8ba9f13a339fa082830d6adce742e7.p
> ng
> >
> > Path to main map image:
> >
> http://LAN.address/chameleon//common//wrapper/drawmap.php?map_session_mode
> =1
> >
> &run_query=0&sid=4419d4e72c00c&dummy=0.26094800+1142543592&UniqId=11425436
> 49
> > 455758&gszPersistentQuery=false
> >
> > and when I attempt to access the application from outside the LAN:
> >
> > path to button images built by chameleon:(this image works fine)
> >
> https://WEB.Address/adir/ms_tmp/buttons/b436d2260d70037e20a624b0767b57dfc.
> pn
> > g
> >
> > Path to main map image: (this is a blank image)
> > https://WEB.Address/chameleon//skins/default/images/a_pixel.gif
> >
> >
> >
> >>>Does the server is visible from the web?
> >
> > Is the server visible from the web? Yes, other components of this site
> > including html files and php files are all served without any problems
> to
> > the web.
> >
> >
> >>> Is there a Firewall between this machine and the web?
> >
> > Yes, Im quite certian we are behind a firewall*
> >
> >
> >>>folder containing the images is visible from the web?
> >
> > Im quite certian it is. Apache Alias' have been created for /tmp and
> > /ms_tmp. These folders are accessable, as is /ms_tmp/buttons.
> >
> >
> >>>Did you check the "Block images from this server" option on Firefox?
> >
> > The "block images from this server" option is not checked.
> >
> > *The computer that has ms4w/chameleon installed is behind a firewall.
> Our IT
> > folks have opened up access to the directory inwhich ms4w is installed.
> HTTP
> > requests comming from the web are directed to this machiene via proxy. I
> > believe its IIS that driects traffic to the ms4w/chameleon install. Do
> you
> > think there could be somesort of configuration issue between IIS and
> Apache?
> > Perhaps a firewall setting or 'mis-setting'?
> >
> > Thanks for your help!
> > Jeremy
> >
> >
> >
> >
> >
> > -----Original Message-----
> > From: chameleon-bounces at lists.maptools.org
> > [mailto:chameleon-bounces at lists.maptools.org]On Behalf Of Julien-Samuel
> > Lacroix
> > Sent: March 16, 2006 4:06 PM
> > To: Sears, Jeremy
> > Cc: chameleon at lists.maptools.org
> > Subject: Re: [Chameleon] Chameleon images access problem ....
> >
> >
> > Hi,
> > We'll need to dig to find this one.
> > What is the path to the map and button images built by Chameleon?
> > This kind of problem is usually due to Apache. Does the server is
> > visible from the web? Is there a Firewall between this machine and the
> > web? Does the folder containing the images is visible from the web?
> >
> > Julien
> > PS: Did you check the "Block images from this server" option on Firefox?
> > I already experience something like what you describe because of that.
> :)
> >
> > Sears, Jeremy wrote:
> >
> >>Hi All,
> >>Regarding the post below, I got chameleon's elements to work. However,
> >>the map image and key map dont work. Im thinking this may be related
> >>more to mapserver rather than chameleon... Any suggestions would be
> great.
> >>
> >>Thanks
> >>Jeremy
> >>
> >>
> >>    -----Original Message-----
> >>    *From:* chameleon-bounces at lists.maptools.org
> >>    [mailto:chameleon-bounces at lists.maptools.org]*On Behalf Of *Sears,
> >>    Jeremy
> >>    *Sent:* March 16, 2006 11:23 AM
> >>    *To:* chameleon at lists.maptools.org
> >>    *Subject:* [Chameleon] Chameleon images access problem ....
> >>
> >>    Hi All,
> >>    IM having a problem with my chameleon installation ....
> >>    I have chameleon setup with ms4w on winserver2003.
> >>
> >>    When I view my application from our LAN (either localhost or another
> >>    computer on the LAN) the application works fine.
> >>    However, when I attempt to view the application from the WAN, none
> >>    of chameleon's elements work. The map, keymap, scalebar, button
> >>    images .. etc all show up as broken links.
> >>
> >>    I have the entire ms4w package installed in in a location off the
> >>    root like:
> >>
> >>    /adirectory/anotherdirectory/ms4w
> >>
> >>
> >>    Does anyone have any thoughts as to why the app works fine when
> >>    accessed from LAN but breaks when accesing through WAN?
> >>    Thanks
> >>    Jeremy
> >>
> >>
> >>
> >>
> >>
> >>
> >>------------------------------------------------------------------------
> >>
> >>_______________________________________________
> >>Chameleon mailing list
> >>Chameleon at lists.maptools.org
> >>http://lists.maptools.org/mailman/listinfo/chameleon
> >
> >
> 
> --
> Julien-Samuel Lacroix
> Mapgears
> http://www.mapgears.com/
> 
> 
> ------------------------------
> 
> Message: 5
> Date: Thu, 16 Mar 2006 11:36:43 -0600
> From: "He, Matt Yubin" <mhe at itsc.uah.edu>
> Subject: [Chameleon] RE: Legend Problem in chameleon
> To: "chameleon at lists.maptools.org" <'chameleon at lists.maptools.org'>
> Message-ID:
> 	<F2934DE4D6F7534FA4037EF19C416A2D047F69 at frost.itsc.uah.edu>
> Content-Type: text/plain;	charset="us-ascii"
> 
> Sorry, wrong link.
> 
> The link is http://mapserver.gis.umn.edu/docs/howto/html_legend
> 
> 
> Matt He
> 
> -----Original Message-----
> From: He, Matt Yubin
> Sent: Thursday, March 16, 2006 11:33 AM
> To: 'chameleon at lists.maptools.org'
> Subject: RE: Legend Problem in chameleon
> 
> To my knowledge, legend template will display all layers in your map
> file.
> If you don't want to show a layer, you can remove it from map file, or
> modify your template file.
> 
> For how to change Legend template file, you can take a look at this:
> http://www.mapbender.org/index.php/Legend
> 
> 
> Matt
> 
> 
> 
> Date: Thu, 16 Mar 2006 16:49:51 +0100
> From: "listserver server" <chameleon.listserver at gmail.com>
> Subject: [Chameleon] Legend Problem in chameleon
> To: chameleon at lists.maptools.org
> Message-ID: <253120740603160749x6221fd00q at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> I've a problem with the legend of my application
> I'm not able to enable/disable layers!
> 
> i've added this in my template...
> <cwc2 type="LegendTemplate" visible="true" embedded="true"
>                 template="legend_template.html"
> popupstyleresource="TextButtons"
>                 popupheight="500" popupwidth="300"
>                 status="true" menubar="true" controlvisibility="false"/>
> 
> and this is the legend layer!
> [leg_layer_html order=ascending opt_flag=15]
>   <tr bgcolor="#fcf8c9">
>     <td align="center" width=20><input type="checkbox"
> name="legendlayername[]"
> value="[leg_layer_name]"
>     [if name=layer_status oper=eq value=1]CHECKED[/if]
>     [if name=layer_status oper=eq value=2]CHECKED[/if]>
>     <td><img src="farm.png" width="18" height="18" /></td>
>     [if name=wms_name oper=isnull]
>     <td><a href="#"
> onclick="javascript:LegendTemplateLayerInfo('[leg_layer_name]');"><span
> class="label">[leg_layer_name]</a></td>
>   </tr>
>     [/if]
>     [if name=wms_name oper=isset]
>     <td><a href="#"
> onclick="javascript:LegendTemplateLayerInfo('[leg_layer_name]');"><span
> class="label">[metadata name=WMS_TITLE]</span></a></td>
>   </tr>
>     [/if]
> [/leg_layer_html]
> 
> 
> what is Wrong??
> 
> Thank you in advance
> 
> 
> 
> ------------------------------
> 
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
> 
> 
> End of Chameleon Digest, Vol 24, Issue 38
> *****************************************




More information about the Chameleon mailing list