MapTools.org

[maplab-users] Preview isn't working after refresh in Mapedit.

Zak James zak-ms@hoppsan.org
Fri, 5 Dec 2003 16:30:07 -0500
It looks like mapserver is not finding the temporary map file saved 
when you make a preview. The most common reason for this is that the 
Image Path and Image URL parameters in the web object of your map do 
not point to the same location.

If your web server's root is /var/www/html/, then the image path could 
be /var/www/html/tmp/ and the image url would then be /tmp/. The image 
path has to be a web accessible directory.

zak

--
Zak James
Applications and Software Development
DM Solutions Group Inc.
http://www.dmsolutions.ca

On Dec 5, 2003, at 4:17 PM, Steven Zussino wrote:

> I have commented out the error message in preview.phtml and the 
> following
> appears instead:
>
> Warning: [MapServer Error]: msLoadMap(): in
> /var/www/html/mapserver/htdocs/common/wrapper/map_session.php on line 
> 221
>
> Warning: Failed to open map file
> /var/www/html/mapserver/tmp/3fd0f089c2968.map in
> /var/www/html/mapserver/htdocs/common/wrapper/map_session.php on line 
> 221
>
> Warning: [MapServer Error]: msLoadMap(): in
> /var/www/html/mapserver/htdocs/common/wrapper/map_session.php on line 
> 221
>
> Warning: [MapServer Error]: msLoadMap(): in
> /var/www/html/mapserver/htdocs/common/wrapper/map_session.php on line 
> 221
>
> Warning: Failed to open map file
> /var/www/html/mapserver/tmp/3fd0f089c2968.map in
> /var/www/html/mapserver/htdocs/common/wrapper/map_session.php on line 
> 221
>
> Fatal error: Call to a member function on a non-object in
> /var/www/html/mapserver/htdocs/mapedit/preview.php on line 309
>
> These errors appear in the preview window.  However, I am able to one
> successful preview but if I try to view additional layers after or 
> zoom in
> I receive the previous.  Also no changes to the tutorial map have been
> made before the preview.
>
> Thanks.
>
>> Is this error message appearing in the preview window or the main
>> mapedit window? Does anything appear in the preview window?
>>
>> Have any changes been made to the tutorial map before the preview is
>> launched?
>>
>> zak
>> --
>> Zak James
>> Applications and Software Development
>> DM Solutions Group Inc.
>> http://www.dmsolutions.ca
>>
>> On Dec 5, 2003, at 2:53 PM, Steven Zussino wrote:
>>
>>> I receive the following message using Mapedit using the default
>>> tutorial.map file after the initial refresh.  (No map file or map 
>>> file
>>>  empty!).
>>>
>>> I am using Maplab2-1RC3, php 4.2.3, Mapserver 4.0, and RH 7.2.
>>> Everything is configured correctly in the maplab.xml file that I know
>>> of and in the installation information.  I also am able to use
>>> Mapfactory correctly.
>>>
>>> I would appreciate any help on the matter.  Thanks.
>
>
> _______________________________________________
> Maplab-users mailing list
> Maplab-users@lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/maplab-users
>
>



This archive was generated by Pipermail.