<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/1.0.2">
</HEAD>
<BODY>
Daniel,
<BR>
I have got IMAGEPATH and IMAGETMP set in the map file. Here is the extract from my map file
<BR>
WEB
<BR>
LOG /var/www/html/blis/blis.log
<BR>
IMAGEPATH "/var/www/html/tmp/"
<BR>
IMAGEURL "/tmp/"
<BR>
METADATA
<BR>
WMS_TITLE "BLIS"
<BR>
WMS_ABSTRACT "This is the BLIS (Bundaberg Land Information System)."
<BR>
WMS_ACCESSCONSTRAINTS none
<BR>
END
<BR>
END
<BR>
<BR>
I changed the working path (/var/www/html/blis) to writable and it then saved the tmp images to this directory even though IMAGEPATH was was set to /var/www/html/tmp/ in the map file.
<BR>
<BR>
Any thoughts?
<BR>
Steve
<BR>
<BR>
On Thu, 2002-10-10 at 02:05, Daniel Morissette wrote:
<BLOCKQUOTE>
<PRE><FONT COLOR="#737373"><FONT SIZE="3"><I>Nothing has changed between 3.6.2 and 3.6.3 that would explain this.</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>I see that the path to the temporary png file in the error message is</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>not absolute which means that MapScript is trying to write the temp png</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>file to the current working directory. So perhaps you get this error</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>because the working directory of your script (var/www/html/blis/ ?) is</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>read-only. I would suggest that you make sure that your IMAGEPATH is</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>set in your mapfile and uses an absolute path to the location of your</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>temporary images directory and that this directory is writable by the</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>web user.</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>Daniel</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> Steven Bowden wrote:</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> Hi List,</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> I just tried to upgrade to 3.6.3 and received the following error when</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> I tried to access my application:</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> Warning: MapServer Error in msSaveImage(): (1034121816212081.png) in</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> /var/www/html/blis/blis.phpm on line 217</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> Fatal error: Failed writing image to 1034121816212081.png in</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> /var/www/html/blis/blis.phpm on line 217</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> The relevant code from my php mapscript is</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> $image=$map->draw();</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> $image_url=$image->saveWebImage($config[image_type],1,1,$config[image_quality]);</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> The mapserver configuration options that I used to compile this</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> version were exactly the same as the ones that I used to compile 3.6.2</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> which works without any problem. Here are the options that I used:</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> ./configure --with-proj --with-wmsclient --with-libwww --with-gdal</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> --enable-runpath --with-php=../php-4.1.2 --without-tif --with-gd</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> --with-postgis --with-freetype=/usr/include --enable-force-freetype1</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> I am running mapserver on RedHat 7.3 and using php 4.1.2.</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> Anyone got any hints on what the problem could be?</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> I think it is something to do with the php_mapscript.so because I</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> reverted back to the php_mapscript.so compiled with 3.6.2 and the</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> mapserv 3.6.3 cgi and it doesn't produce the error.</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> Regards</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>> Steve</FONT></FONT></I>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>