[ka-Map-users] Problems in printing outputs on KaMap

matteo rossi matteo.oettam at gmail.com
Thu Oct 18 17:10:46 EDT 2007


Hi Daniel,
you really don't know how useful has been your suggest!!!! :-))

thanks a lot. We've spent so much time exploring every code php to find an
error!

Really, thanks again

Matteo

2007/10/18, Daniel.Huber at ch2m.com <Daniel.Huber at ch2m.com>:
>
>
>
> > -----Original Message-----
> > From: ka-map-users-bounces at lists.maptools.org
> > [mailto:ka-map-users-bounces at lists.maptools.org] On Behalf Of
> > matteo rossi
> > Sent: Thursday, October 18, 2007 2:37 PM
> > To: ka-map-users at lists.maptools.org
> > Subject: [ka-Map-users] Problems in printing outputs on KaMap
> >
> > Hi list,
> > on our webgis developped with KaMap we have some problem
> > printing the mapoutput and searching the database for a word
> > matching.
> > the strings are respectively:
> >
> > *Fatal error*: Call to a member function selectOutputFormat()
> > on a non-object in
> > *C:\ms4w\apps\ka-map-1.0\htdocs\tools\print\print_map.php* on
> > line *291
> >
> > **Fatal error*: Call to a member function preparequery() on a
> > non-object in
> > *C:\ms4w\apps\ka-map-1.0\htdocs\tools\search\kaSearch.php* on
> > line *92
> >
> > *can you help us to fix it?
> >
> > thanks a lot
> >
> > matteo rossi
> >
>
>
> Welcome to the list!  My first error w/ ka-Map was the same as yours.
> Here is how I fixed it:
>
>
> Change the path in the config.php for the map file from a relative path
> to an absolute.path:
>
>       'path' => '../../gmap/htdocs/gmap75.map',
>
> should become something like this:
>
>     'path' => '/ms4w/apps/gmap/htdocs/gmap75.map',
>
>
> 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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ka-map-users/attachments/20071018/6d7687e1/attachment.html


More information about the ka-Map-users mailing list