<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.5730.11" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Hi Paul,</FONT></DIV>
<DIV><FONT size=2>the first idea that come to my mind is the php process do not
have the right to write files in the folder indicated in the error
message.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>concerning the </FONT><FONT size=3>'DemoCW3' error, change the
profile from production to development so you can see the details of the error,
but it is most likely the same as in your 'paulproject' project.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>there is something strange though, the generated images should
be written in cartoweb3/generated/images/ and not in
projects/paulproject/server_conf/paulproject/images/</FONT></DIV>
<DIV><FONT size=2>the path were mapserver should save the image is set
dynamically in ServerImages.php </FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>edit ServerImages.php, in the function drawMainmap, add a few
print so we can see whats happening:</FONT></DIV>
<DIV><FONT size=2><BR> if
(!$msMapObj->web->imagepath)
{<BR>
$imagePath = $this->serverContext->getConfig()->webWritablePath
.<BR>
self::IMAGES_WRITE_PATH;<BR>
$msMapObj->web->set('imagepath',
$imagePath);<BR> }</DIV>
<DIV> print "start debugging<br
/>";</DIV>
<DIV>
print_r($msMapObj->web->imagepath);<BR>
print "<br />";</DIV>
<DIV> </DIV>
<DIV> if
(!$msMapObj->web->imageurl)
{<BR>
$msMapObj->web->set('imageurl',
$this->getImageBaseUrl());<BR>
}</DIV>
<DIV> </DIV>
<DIV>
print_r($msMapObj->web->imageurl);</DIV>
<DIV> print "end debugging<br
/>";</DIV>
<DIV> </DIV>
<DIV>the first print_r should output something like
/Library/WebServer/documents/cartoweb3/htdocs/generated/images/</DIV>
<DIV>the second should be empty</DIV>
<DIV> </DIV>
<DIV>and deactivate ajax mode in the client.ini file, it will be easier to
debug</DIV>
<DIV> </DIV>
<DIV>regards,</DIV>
<DIV>Oliver</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=p.shapley@gmail.com href="mailto:p.shapley@gmail.com">Paul
Shapley</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=cartoweb-users@lists.maptools.org
href="mailto:cartoweb-users@lists.maptools.org">cartoweb-users@lists.maptools.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Sunday, March 04, 2007 11:11
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Cartoweb-users] Mapserver
failing to write images</DIV>
<DIV><BR></DIV>Hello Users,<BR><BR>Having problems with Mapserver trying to
write images to the 'image' file. Have copied the demoCW3 project to create a
new project called 'paulproject'. Could it be a missing 'plugin' or an initial
image file?. I am using cartoweb 3.3.0 and Mac OS X which displays 'demoCW3'
OK but brings up an error when it is initially displayed which
reads:<BR><BR><SPAN style="COLOR: rgb(102,102,102); FONT-STYLE: italic">The
page at <A href="http://localhost">http://localhost</A> says:</SPAN><BR
style="COLOR: rgb(102,102,102); FONT-STYLE: italic"><SPAN
style="COLOR: rgb(102,102,102); FONT-STYLE: italic">An error has occured.
Press OK to reload this application.</SPAN><BR
style="COLOR: rgb(153,153,153)"><BR>If i 'Cancel' this error once 'DemoCW3'
runs with no problems (but fails to place any .png files in the images
folder). If you press 'OK' the page reloads with the same recurring
error.<BR><BR>The 'paulproject' page produces the following
conformation:<BR><BR><SPAN
style="COLOR: rgb(102,102,102); FONT-STYLE: italic">Fatal error: Failed
writing image to
/Library/WebServer/documents/cartoweb3/projects/paulproject/server_conf/paulproject/images/45cb3eaa_2da_0.png
</SPAN><BR style="COLOR: rgb(102,102,102); FONT-STYLE: italic"><SPAN
style="COLOR: rgb(102,102,102); FONT-STYLE: italic">in
/Library/WebServer/documents/cartoweb3/coreplugins/images/server/ServerImages.php
on line 142 </SPAN><BR><BR>any ideas here most
appreciated.<BR><BR>regards,<BR><BR><BR clear=all><BR>-- <BR>Paul J. Shapley
<P>
<HR>
<P></P>_______________________________________________<BR>Cartoweb-users
mailing
list<BR>Cartoweb-users@lists.maptools.org<BR>http://lists.maptools.org/mailman/listinfo/cartoweb-users<BR></BLOCKQUOTE></BODY></HTML>