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="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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>