[mapserver-users] fatal error on linux server
MSulchan Darmawan
bleketux at gmail.com
Tue Nov 17 23:14:32 PST 2009
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.
--
Cheers,
[-Sulchan-]
claws-mail 3.7.3 @ hardy heron 8.04.3 LTS
y!m : bleketux
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20091118/9d2684f4/attachment.sig>
More information about the MapServer-users
mailing list