[Chameleon] error rendering map image after reinstalling
William Bronsema
wbronsema at dmsolutions.ca
Tue Feb 21 07:24:14 EST 2006
Hi Dejan,
If the samples are working then it is either a problem with your template or
mapfile. I would start with the mapfile.
Try loading the map using a simple php script like:
<?php
// load the mapscript module if necessary
if (!extension_loaded("MapScript"))
{
// load
dl( 'php_mapscript_46.'. PHP_SHLIB_SUFFIX );
}
// open map
$oMap = ms_newMapObj( 'mymap.map' );
// force output
$oMap->selectoutputformat('png');
// draw map
$oImage = $oMap->draw();
// set header
header('Content-type: image/png');
// output map
$url = $oImage->saveImage('');
?>
If that works then the next thing to try is removing all your widgets from
your template and start putting them back in one at a time to see where the
problem is.
HTH
Bill
________________________________________________
William A. Bronsema, C.E.T.
Software & Applications Development,
DM Solutions Group Inc.
> -----Original Message-----
> From: chameleon-bounces at lists.maptools.org [mailto:chameleon-
> bounces at lists.maptools.org] On Behalf Of Gambin Dejan
> Sent: Tuesday, February 21, 2006 4:33 AM
> To: chameleon at lists.maptools.org
> Subject: RE: [Chameleon] error rendering map image after reinstalling
>
> Hi list,
>
> I still can't solve my problem with "error rendering map image" I have
> tried many things, I have also tried to remove KeyMapDHTML widget, but
> then I get similar error, just with "....MapDHTML.widget.php on line
> 220". Samples work good.
>
> Any help??
>
> thanks very much
>
> dejan
>
> > -----Original Message-----
> > From: Julien-Samuel Lacroix [mailto:jlacroix at dmsolutions.ca]
> > Sent: Monday, February 20, 2006 4:05 PM
> > To: Gambin Dejan
> > Cc: chameleon at lists.maptools.org
> > Subject: Re: [Chameleon] error rendering map image after reinstalling
> >
> >
> > Hi,
> > Most of the time, this error occurs when the session directory is not
> > writable by the web-user. Normally I think MS4W use the /ms4w/tmp/
> > folder as the session directory. However it seems that you installed
> > your MS4W package in /Apps/gis/. It may be the source of the
> > problem. If
> > I remember well, MS4W as to be at the root of a drive.
> >
> > Julien
> >
> > Gambin Dejan wrote:
> > > Hi,
> > >
> > > I have installed my Chameleon application to another server.
> > > Everything seemed to be fine but I got "Error rendering map image"
> > > error and "A fatal error has occured restoring your session. Please
> > > restart the application". After updating the map I get:
> > >
> > > Fatal error: Call to a member function on a non-object in
> > >
> > E:\Apps\gis\ms4w\apps\chameleon\htdocs\widgets\KeyMapDHTML\KeyMapDHTML
> > > .w
> > > idget.php on line 150
> > >
> > > I saw some posts regarding this problem, I have tried some
> > > modifications in my map file but nothing helped.
> > >
> > > Can anyone help?
> > >
> > > regards,
> > >
> > > dejan
> > >
> > > _______________________________________________
> > > Chameleon mailing list
> > > Chameleon at lists.maptools.org
> > > http://lists.maptools.org/mailman/listinfo/chameleon
> >
> > --
> > ------------------------------------------------------------
> > Julien-Samuel Lacroix jlacroix at dmsolutions.ca
> > DM Solutions Group http://www.dmsolutions.ca/
> > ------------------------------------------------------------
> >
>
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
More information about the Chameleon
mailing list