Hi Daniel,<br>you really don&#39;t know how useful has been your suggest!!!! :-))<br><br>thanks a lot. We&#39;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> &lt;<a href="mailto:Daniel.Huber@ch2m.com">Daniel.Huber@ch2m.com</a>&gt;:</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>&gt; -----Original Message-----<br>&gt; From: <a href="mailto:ka-map-users-bounces@lists.maptools.org">ka-map-users-bounces@lists.maptools.org</a><br>&gt; [mailto:<a href="mailto:ka-map-users-bounces@lists.maptools.org">
ka-map-users-bounces@lists.maptools.org</a>] On Behalf Of<br>&gt; matteo rossi<br>&gt; Sent: Thursday, October 18, 2007 2:37 PM<br>&gt; To: <a href="mailto:ka-map-users@lists.maptools.org">ka-map-users@lists.maptools.org</a>
<br>&gt; Subject: [ka-Map-users] Problems in printing outputs on KaMap<br>&gt;<br>&gt; Hi list,<br>&gt; on our webgis developped with KaMap we have some problem<br>&gt; printing the mapoutput and searching the database for a word
<br>&gt; matching.<br>&gt; the strings are respectively:<br>&gt;<br>&gt; *Fatal error*: Call to a member function selectOutputFormat()<br>&gt; on a non-object in<br>&gt; *C:\ms4w\apps\ka-map-1.0\htdocs\tools\print\print_map.php*
 on<br>&gt; line *291<br>&gt;<br>&gt; **Fatal error*: Call to a member function preparequery() on a<br>&gt; non-object in<br>&gt; *C:\ms4w\apps\ka-map-1.0\htdocs\tools\search\kaSearch.php* on<br>&gt; line *92<br>&gt;<br>&gt; *can you help us to fix it?
<br>&gt;<br>&gt; thanks a lot<br>&gt;<br>&gt; matteo rossi<br>&gt;<br><br><br>Welcome to the list!&nbsp;&nbsp;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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#39;path&#39; =&gt; &#39;../../gmap/htdocs/gmap75.map&#39;,<br><br>should become something like this:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&#39;path&#39; =&gt; &#39;/ms4w/apps/gmap/htdocs/gmap75.map&#39;,<br>
<br><br>The absolute path method breaks because the print_map.php file is not at<br>the same level as config.php.&nbsp;&nbsp;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>