[fusion-users] Re: Unable to display map using fusion

Michael Adair madair at dmsolutions.ca
Mon Apr 23 11:40:33 EDT 2012


Badrul,

Unfortunately the errors reported in the error log are not necessarily 
all that useful, the first relevant one would be the third one at line 
158 of LoadMap.php and there is still some problems with your mapfile. I 
really can't help much without seeing your application however I would 
suggest trying to get the mapfile working outside of Fusion first with 
just MapServer CGI calls (http://mapserver.org/cgi/index.html).  You 
need to make sure the symbolset, fontset, shapepath and various paths 
are correct.  Once you can get an image using MapServer CGI, then it 
will be the same mapfile path that is used in the CGI call that goes 
into the AppDef file.


Mike


On 23/04/2012 6:19 AM, Badrul wrote:
> hi michael
>
> I am getting following errors in Apache error log:
>
> [error] [client 127.0.0.1] File does not exist:
> C:/ms4w/apps/fusion/templates/mapserver/standard/images/icons/info.png,
> referer: http://localhost/fusion/templates/mapserver/standard/index.html
>
> [error] [client 127.0.0.1] File does not exist:
> C:/ms4w/apps/fusion/templates/mapserver/standard/images/icons/view-options.png,
> referer: http://localhost/fusion/templates/mapserver/standard/index.html
>
> [error] [client 127.0.0.1] PHP Fatal error:  Uncaught exception
> 'MapScriptException' with message 'Property 'imagetype' does not exist in
> this object.' in
> C:\\ms4w\\apps\\fusion\\layers\\MapServer\\php\\LoadMap.php:158, referer:
> http://localhost/fusion/templates/mapserver/standard/index.html
>
> [error] [client 127.0.0.1] Stack trace:, referer:
> http://localhost/fusion/templates/mapserver/standard/index.html
>
> [error] [client 127.0.0.1] #0
> C:\\ms4w\\apps\\fusion\\layers\\MapServer\\php\\LoadMap.php(158):
> mapObj->__get('imagetype'), referer:
> http://localhost/fusion/templates/mapserver/standard/index.html
>
> [error] [client 127.0.0.1] #1 {main}, referer:
> http://localhost/fusion/templates/mapserver/standard/index.html
>
> [error] [client 127.0.0.1]   thrown in
> C:\\ms4w\\apps\\fusion\\layers\\MapServer\\php\\LoadMap.php on line 158,
> referer: http://localhost/fusion/templates/mapserver/standard/index.html
>
>
> Map is not getting displayed and in ApplicationDefinition.xml i have given
> map path as
>
> <MapFile>/ukoutline.map</MapFile>
>
> This ukoutline.map i have stored in c:\.
>
> Please let me know if i have stored map at right place if not where do i
> need to store it and what changes i need to make in
> ApplicationDefinition.xml
>
>
> -----
> Thanks&  Regards
> Badrul
> --
> View this message in context: http://osgeo-org.1560.n6.nabble.com/Unable-to-display-map-using-fusion-tp4715312p4909753.html
> Sent from the Fusion Users mailing list archive at Nabble.com.
> _______________________________________________
> fusion-users mailing list
> fusion-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/fusion-users


More information about the fusion-users mailing list