MapTools.org

[Chameleon] Map Loading

Paul Spencer spencer@dmsolutions.ca
Fri, 12 Dec 2003 23:21:15 -0500
Tracy,

you should be able to set the name of the mapscript module to use in the 
configuration file (cwc2.xml) for chameleon, it should not be necessary 
to change drawmap.php.

Cheers,

Paul

Tracy Howlett wrote:

> Paul, 
> 
> Thanks for the help.
> 
> When I copy the URL directly into the browser I was getting this error:
> PHP Warning: dl(): Unable to load dynamic library
> 'C:\PHP\extensions\php_mapscript.dll' - The specified module could not be
> found. in C:\apps\cwc2\htdocs\common\wrapper\drawmap.php on line 271 PHP
> Fatal error: Call to undefined function: ms_getversion() in
> C:\apps\cwc2\htdocs\common\wrapper\drawmap.php on line 272 PHP Notice:
> Undefined index: gszSessId in C:\apps\cwc2\htdocs\common\session\session.php
> on line 135
> 
> I adjusted the drawmap.php to look for php_mapscript_4.0.1.dll(my version)
> and then I get this error:
> PHP Notice: Undefined index: map_session_mode in
> C:\apps\cwc2\htdocs\common\wrapper\drawmap.php on line 332 PHP Fatal error:
> Call to a member function on a non-object in
> C:\apps\cwc2\htdocs\common\wrapper\drawmap.php on line 375 PHP Notice:
> Undefined index: gszSessId in C:\apps\cwc2\htdocs\common\session\session.php
> on line 135
> I've checked my session paths in the php.ini file, the session.php file and
> they seem to be correct.
> 
> I tried using your sample php script and running it from my
> chameleon_sample/htdocs directory and this is the result:
> PHP Warning: [MapServer Error]: msGetLabelSize(): Could not find/open font
> in C:\Apps\chameleon_sample\htdocs\maptest.php on line 4 PHP Fatal error:
> Call to a member function on a non-object in
> C:\Apps\chameleon_sample\htdocs\maptest.php on line 5
> I've checked every path that I can find relative to the font files and they
> all appear to be correct.
> 
> Any thoughts?
> 
> Tracy
> 
> 
> -----Original Message-----
> From: Paul Spencer [mailto:pagameba@magma.ca] 
> Sent: Friday, December 12, 2003 1:34 PM
> To: thowlett@whistlermuseum.org
> Cc: chameleon@lists.maptools.org
> Subject: Re: [Chameleon] Map Loading
> 
> Tracey, there are a couple of things that can cause this problem, but 
> you should be able to isolate it by right clicking on the broken image 
> link in the main map and selecting properties, copying the URL (should 
> be to '<something>/drawmap.php?<parameters>') into a new browser and 
> loading it directly.  This will try to draw the map into a separate 
> browser window and hopefully you will get some sort of error message 
> that will tell you what the error is.
> 
> My first suspicision is some sort of error in the map file.
> 
> To test this, you can create a small php script to make sure the map 
> loads and can draw ...
> 
> <?php
> dl('php_mapscript_40.dll'); //or whatever version you are using
> $oMap = ms_newMapObj( "<path to your map file>" );
> $oImage = $oMap->draw();
> $szURL = $oImage->saveWebImage();
> echo "<img src=$szURL>";
> ?>
> 
> this script, and variations of it are very useful to make sure that the 
> map file is both syntatically correct, and the data for the layers is 
> set up correctly.  If this works, then the error is somewhere in the 
> chameleon configuration or it is a bug in chameleon.
> 
> Cheers,
> 
> Paul
> 
> Tracy Howlett wrote:
> 
>>Hello Again, 
>>
>>I'm lost again!  My index.phtml page loads with all of the buttons and the
>>keymap image but the map image never loads.  The 'map loading...please
> 
> wait'
> 
>>notice pops up and seems to spin forever.  I had it going for over an hour
>>yesterday before I closed the page down.  Can anyone suggest where I can
>>look to find the error?
>>
>>Tracy
>>
>>-----Original Message-----
>>From: chameleon-admin@lists.maptools.org
>>[mailto:chameleon-admin@lists.maptools.org] On Behalf Of Paul Spencer
>>Sent: Friday, December 12, 2003 5:17 AM
>>To: Jeff McKenna
>>Cc: chameleon@lists.maptools.org
>>Subject: Re: [Chameleon] KeyMap problem with Chameleon 1.1 Alpha6
>>
>>Jeff,
>>
>>do you get no keymap image at all?  If not, then try right clicking on 
>>the broken image and selecting 'properties', then copy the url and paste 
>>it into a new browser window and submit it.  You should, hopefully, get 
>>some sort of error message.
>>
>>cheers,
>>
>>Paul
>>
>>Jeff McKenna wrote:
>>
>>
>>
>>>Hello everyone,
>>>
>>>I am using the 1.1 Sample Application and trying to get sample.html to 
>>>display the keymap.  As mentioned in the subject line, I am running 
>>>Chameleon 1.1 Alpha6 (October 31st release).
>>>
>>>I have followed instructions in a previous post, but no success 
>>>(http://lists.maptools.org/pipermail/chameleon/2003-October/000119.html)
>>>.
>>>
>>>Here's what I've tried:
>>>
>>>- removed the keymap section in the sample mapfile
>>>- relative path from the sample.html template in the keymap tag  
>>>(image="images/keymap.png")
>>>- absolute path to keymap.png in the keymap tag 
>>>(image="C:/GCRC/www/chameleon_sample/htdocs/images/keymap.png")
>>>- even some oddball attempts: placing the keymap in the 
>>>/htdocs/common/wrapper folder and image='keymap.png'
>>>
>>>I've correctly specified the size, and extents of the keymap image.  
>>>win2003-server.
>>>
>>>thanks.
>>>
>>>Jeff
>>>
>>>
>>>
>>>
>>>
>>>_______________________________________________
>>>Chameleon mailing list
>>>Chameleon@lists.maptools.org
>>>http://lists.maptools.org/mailman/listinfo/chameleon
>>>
>>
>>
> 

-- 
  -----------------------------------------------------------------
|Paul Spencer                           spencer@dmsolutions.ca    |
|-----------------------------------------------------------------|
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
  -----------------------------------------------------------------




This archive was generated by Pipermail.