[mapserver-users] fatal error on linux server

francesco francesco.pirotti at unipd.it
Wed Nov 18 03:13:43 EST 2009


Should check your mapfile if it is correctly parsed by the mapscritpt. 
Try drawing the mapfile using standard mapserver.exe and see if it works.
Francesco Pirotti

MSulchan Darmawan ha scritto:
> Dear all,
>
> I've made a PHP script and tried it on windows using ms4w (mapserver
> 5.4.2) and it's completely works.
> Then I tried it on linux (ubuntu server 8.04 with mapserver 5.4.2) but
> it produce the following error :
>
> Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named
> 'aceh'.
> in /home/bleketux/public_html/cmh2/_modules/mod_petazm/frm_petazm.php
> on line 184
>
> Warning: [MapServer Error]: msShapefileOpen(): (KB_ACEH.shp)
> in /home/bleketux/public_html/cmh2/_modules/mod_petazm/frm_petazm.php
> on line 184
>
> Warning: [MapServer Error]: msShapefileOpen():
> (/home/bleketux/public_html/cmh2/mapserver/shp/KB_ACEH.shp)
> in /home/bleketux/public_html/cmh2/_modules/mod_petazm/frm_petazm.php
> on line 184
>
> Fatal error: Call to a member function SaveWebImage() on a non-object
> in /home/bleketux/public_html/cmh2/_modules/mod_petazm/frm_petazm.php
> on line 185
>
> Here is some script of line 180 - 185 :
>
> $strProj = "proj=latlong,ellps=WGS84,datum=WGS84";
> $objMap->SetProjection ($strProj, MS_FALSE);
> $objMap->outputformat->Set ("name", "Format GIF");
> $objMap->outputformat->Set ("extension", "gif");
> $objImagePeta = $objMap->Draw();
> $objUrlPeta 	= $objImagePeta->SaveWebImage();
>
> To avoid permission problem, i've set chmod 777 to the root web folder.
> Can you point me where should I fix the problem ?
> Thanks in advance.
>
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>   


-- 
*Francesco Pirotti*
Dep. TESAF
CIRGEO – Interdepartmental Research Center on Cartography Photogrammetry
Remote Sensing and G.I.S.
University of Padova
Web: http://www.cirgeo.unipd.it/cirgeo/francescopirotti.htm
Email: francesco.pirotti at unipd.it <mailto:francesco.pirotti at unipd.it>
Phone: +39 049 827 2710
Phone: +39 349 55 39 261




More information about the mapserver-users mailing list