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

Attachment: signature.asc
Description: PGP signature

_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to