Hi Daniel,<br>you really don't know how useful has been your suggest!!!! :-))<br><br>thanks a lot. We've spent so much time exploring every code php to find an error!<br><br>Really, thanks again<br><br>Matteo<br><br>
<div><span class="gmail_quote">2007/10/18, <a href="mailto:Daniel.Huber@ch2m.com">Daniel.Huber@ch2m.com</a> <<a href="mailto:Daniel.Huber@ch2m.com">Daniel.Huber@ch2m.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<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<br>> matteo rossi<br>> Sent: Thursday, October 18, 2007 2:37 PM<br>> To: <a href="mailto:ka-map-users@lists.maptools.org">ka-map-users@lists.maptools.org</a>
<br>> Subject: [ka-Map-users] Problems in printing outputs on KaMap<br>><br>> Hi list,<br>> on our webgis developped with KaMap we have some problem<br>> printing the mapoutput and searching the database for a word
<br>> matching.<br>> the strings are respectively:<br>><br>> *Fatal error*: Call to a member function selectOutputFormat()<br>> on a non-object in<br>> *C:\ms4w\apps\ka-map-1.0\htdocs\tools\print\print_map.php*
on<br>> line *291<br>><br>> **Fatal error*: Call to a member function preparequery() on a<br>> non-object in<br>> *C:\ms4w\apps\ka-map-1.0\htdocs\tools\search\kaSearch.php* on<br>> line *92<br>><br>> *can you help us to fix it?
<br>><br>> thanks a lot<br>><br>> matteo rossi<br>><br><br><br>Welcome to the list! My first error w/ ka-Map was the same as yours.<br>Here is how I fixed it:<br><br><br>Change the path in the config.php for the map file from a relative path
<br>to an absolute.path:<br><br> 'path' => '../../gmap/htdocs/gmap75.map',<br><br>should become something like this:<br><br> 'path' => '/ms4w/apps/gmap/htdocs/gmap75.map',<br>
<br><br>The absolute path method breaks because the print_map.php file is not at<br>the same level as config.php. So while it appears that everything works<br>with the config settings because the map and controls show up just fine,
<br>any PHP files called in the /tools directory will fail.<br></blockquote></div><br>