<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3020" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=375280100-28012007><FONT face=Arial
color=#0000ff size=2>Change the path in the config.php for the map file from a
relative path to an absolute.path. What comes 'out of the box' with MS4W
is </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=375280100-28012007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=375280100-28012007><FONT face=Arial
color=#0000ff size=2> 'path' =>
'../../gmap/htdocs/gmap75.map',</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=375280100-28012007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=375280100-28012007><FONT face=Arial
color=#0000ff size=2>setting it to it's absolute path, based on how they suggest
you install the MS4W directory (at the root of c:\), gets everything working
just fine:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=375280100-28012007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=375280100-28012007> <FONT
face=Arial color=#0000ff size=2> 'path' =>
'/ms4w/apps/gmap/htdocs/gmap75.map',</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=375280100-28012007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=375280100-28012007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=375280100-28012007><FONT face=Arial
color=#0000ff size=2>The absolute path method breaks because the print_map.php
file is not at the same level as config.php. So while it appears that
everything works with the config settings because the map and controls show
up just fine, any PHP files called in the /tools directory
will fail. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=375280100-28012007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=375280100-28012007><FONT face=Arial
color=#0000ff size=2>Thanks Lorenzo for prompting me to look at the path for the
map files. This exercise has also taught me a little more about PHP, which
I know I am going to have to learn if I keep messing w/
MapServer.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=375280100-28012007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=375280100-28012007><FONT face=Arial
color=#0000ff size=2>Dan</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> ka-map-users-bounces@lists.maptools.org
[mailto:ka-map-users-bounces@lists.maptools.org] <B>On Behalf Of </B>Sacha
Black<BR><B>Sent:</B> Saturday, January 27, 2007 2:38 PM<BR><B>To:</B>
ka-map-users@lists.maptools.org<BR><B>Subject:</B> Re: [ka-Map-users] Printing
Error<BR></FONT><BR></DIV>
<DIV></DIV>dan,<BR><BR>for what's worth I have the same problem printing from
ka-map in ms4w 2.x.... <BR><BR>sacha<BR><BR>
<DIV><SPAN class=gmail_quote>On 1/27/07, <B class=gmail_sendername><A
href="mailto:Daniel.Huber@ch2m.com">Daniel.Huber@ch2m.com</A></B> <<A
href="mailto:Daniel.Huber@ch2m.com">Daniel.Huber@ch2m.com</A>> wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Interesting,
because I'm using all the default configuration files<BR>downloaded from
MapTools.org MS4W site. Everything works perfectly with<BR>that
example, as well as when I changed config.php to use a mapfile of <BR>my
own. Only printing does not work.<BR><BR>Could you send the
config.php file you are using for your test<BR>application on <A
href="http://ominiverdi.org">ominiverdi.org</A>? I could compare
the two. The one I have <BR>is "config.php,v 1.5 2006/10/13
18:55:47 jmckenna"<BR><BR>PHP is a new animal to me, so I don't know how to
debug the code in<BR>print_map.php to really find out what is
happening. According to PHP<BR>sites, this error is related to one
of the objects not being set. <BR><BR>BTW, I'm using PHP 5.2.0, if that
matters.<BR><BR>Dan<BR><BR>-----Original Message-----<BR>From: <A
href="mailto:ka-map-users-bounces@lists.maptools.org">ka-map-users-bounces@lists.maptools.org</A><BR>[mailto:
<A
href="mailto:ka-map-users-bounces@lists.maptools.org">ka-map-users-bounces@lists.maptools.org</A>]
On Behalf Of Lorenzo<BR>Becchi<BR>Sent: Saturday, January 27, 2007 12:41
AM<BR>To: <A
href="mailto:ka-map-users@lists.maptools.org">ka-map-users@lists.maptools.org</A><BR>Subject:
[ka-Map-users] Printing Error<BR><BR>Hi Daniel,<BR>to be honest I have no
experience on Windows installation.<BR><BR>Anyway, our test application on <A
href="http://ominiverdi.org">ominiverdi.org</A> is working fine to me:<BR><A
href="http://www.ominiverdi.org/ka-map/ka-map/htdocs/">http://www.ominiverdi.org/ka-map/ka-map/htdocs/</A><BR><BR>it
is the same code of version 1.0 on a slackware linux.<BR><BR>can you do some
more tests?<BR><BR>just trying: it seems it is not loading your mapfile
properly, are you<BR>using relative path in mapfile or config
file?<BR><BR>ciao<BR>Lorenzo<BR><BR><BR><BR>> New to ka-Map but really like
what I've seen so far. Except...... <BR>><BR>> Running the
example interface w/ GMap, I'm receiving the following<BR>> error, which is
similar to what was reported back in September on this<BR><BR>> but no
clear fix was posted (at least I couldn't find it in the list <BR>>
archives):<BR>><BR>> Fatal error: Call to a
member function selectOutputFormat() on a<BR>> non-object in
C:\ms4w\apps\ka-<BR>> map-1.0.b1\htdocs\tools\print\print_map.php on line
218<BR>><BR>> A quick browse of the print_map.php file shows that this
is the line <BR>> of code that fails for
everything:<BR>><BR>>
$oMap->selectOutputFormat( $szMapImageFormat );<BR>><BR>> except
GeoTIFF, which bails
on:<BR>><BR>> $oMap->set('width',
$pw);<BR>><BR>><BR>> I have two different configurations setup (on
virtual machines) and<BR>> they both fail:<BR>><BR>> Windows 2003
Server<BR>> MS4W 1.6<BR>> ka-map 1.0.b1 (and latest CVS pulled from wiki
site) <BR>><BR>> WinXP Pro SP2<BR>> MS4W 2.2.1<BR>> ka-map 1.0.b1
(and latest CVS pulled from wiki site)<BR>><BR>><BR>> I also followed
the troubleshooting guide on the Wiki site and nothing<BR><BR>> failed
there, so I'm at a total loss as to why this is failing. <BR>><BR>> Any
help for a NooB?<BR>><BR>>
Dan<BR><BR>_______________________________________________<BR>ka-Map-users
mailing list<BR><A
href="mailto:ka-Map-users@lists.maptools.org">ka-Map-users@lists.maptools.org
</A><BR><A
href="http://lists.maptools.org/mailman/listinfo/ka-map-users">http://lists.maptools.org/mailman/listinfo/ka-map-users</A><BR><BR>_______________________________________________<BR>ka-Map-users
mailing list<BR><A
href="mailto:ka-Map-users@lists.maptools.org">ka-Map-users@lists.maptools.org</A><BR><A
href="http://lists.maptools.org/mailman/listinfo/ka-map-users">http://lists.maptools.org/mailman/listinfo/ka-map-users</A><BR></BLOCKQUOTE></DIV><BR></BODY></HTML>