[mapserver-users] 3.6.3 Compile problems/errors
Daniel Morissette
morissette at dmsolutions.ca
Wed Oct 9 09:05:19 PDT 2002
Nothing has changed between 3.6.2 and 3.6.3 that would explain this.
I see that the path to the temporary png file in the error message is
not absolute which means that MapScript is trying to write the temp png
file to the current working directory. So perhaps you get this error
because the working directory of your script (var/www/html/blis/ ?) is
read-only. I would suggest that you make sure that your IMAGEPATH is
set in your mapfile and uses an absolute path to the location of your
temporary images directory and that this directory is writable by the
web user.
Daniel
> Steven Bowden wrote:
>
> Hi List,
> I just tried to upgrade to 3.6.3 and received the following error when
> I tried to access my application:
>
> Warning: MapServer Error in msSaveImage(): (1034121816212081.png) in
> /var/www/html/blis/blis.phpm on line 217
>
> Fatal error: Failed writing image to 1034121816212081.png in
> /var/www/html/blis/blis.phpm on line 217
>
> The relevant code from my php mapscript is
> $image=$map->draw();
> $image_url=$image->saveWebImage($config[image_type],1,1,$config[image_quality]);
>
> The mapserver configuration options that I used to compile this
> version were exactly the same as the ones that I used to compile 3.6.2
> which works without any problem. Here are the options that I used:
> ./configure --with-proj --with-wmsclient --with-libwww --with-gdal
> --enable-runpath --with-php=../php-4.1.2 --without-tif --with-gd
> --with-postgis --with-freetype=/usr/include --enable-force-freetype1
>
> I am running mapserver on RedHat 7.3 and using php 4.1.2.
> Anyone got any hints on what the problem could be?
> I think it is something to do with the php_mapscript.so because I
> reverted back to the php_mapscript.so compiled with 3.6.2 and the
> mapserv 3.6.3 cgi and it doesn't produce the error.
>
> Regards
> Steve
More information about the MapServer-users
mailing list