[maplab-users] Problems with Maplab - Object Browser doesn`t refresh

publi at infonegocio.com publi at infonegocio.com
Tue Oct 12 09:40:58 EDT 2004


VILLOIN Franck DSIC BMS wrote:

> Hello,
>
> I have the similary problem and I make the patch for Maplab 2.2 for run
>
> My patch
>
>
> >>> Hi list,
> >>>
> >>> I installed the new version of MapLab 2.2 on my system.
> >>> When I open in MapEdit the old map (created by MapLab 2.1 rc3) and 
> >>> use
> >>> gMapFactory the first time is good.
> >>> When I change the option and I click the Apply button I have the
> >>> error.
> >>>
> >>> Warning: [MapServer Error]: msLoadMap(): (//Rac//rac_fr.map) in
> >>> E:\MapLab\htdocs\gmapfactory\build_phtml.php on line 1301
> >>>
> >>> Warning: Failed to open map file //Rac//rac_fr.map in
> >>> E:\MapLab\htdocs\gmapfactory\build_phtml.php on line 1301
> >>>
> >>> Parse error: parse error, unexpected ')' in
> >>> E:\MapLab\projects\gmf_apps\test_franck\globprefs.php on line 46
> >>>
> >>> Fatal error: Call to a member function on a non-object in
> >>> E:\MapLab\projects\gmf_apps\test_franck\test_franck.php on line 51
> >>>
> >>>
> >>> After see the code sources off build_phtml.php, if I commente the
> >>> lines 117
> >>> at 128
> >>>
> >>> /*if (substr($http_form_vars['gszMapFile'], 0, 1) == "/" ||
> >>>     preg_match('/^(\w:)/', $http_form_vars['gszMapFile']))
> >>> {
> >>>     if (substr($http_form_vars["gszMapFile"], 0,
> >>> strlen($gszFileBrowserRoot)) == $gszFileBrowserRoot)
> >>>     {
> >>>         $http_form_vars["gszMapFile"] =
> >>> "/".substr($http_form_vars["gszMapFile"],
> >>> strlen($gszFileBrowserRoot));
> >>>     }
> >>>     else
> >>>     {
> >>>         $gszFileBrowserRoot = '';
> >>>     }
> >>> } */
> >>>
> >>> and change the lines 130 at 133
> >>>
> >>> if ( !drawGlobprefs( $http_form_vars["gszAppDir"]."globprefs.php",
> >>>         $http_form_vars["gszAppDir"],
> >>> $http_form_vars["gszWorkingDir"].
> >>>         "settings.php",
> >>> $gszFileBrowserRoot.$http_form_vars["gszMapFile"],
> >>> $gszMapscriptModule,
> >>>         $oLog ) )
> >>>
> >>> by
> >>> if ( !drawGlobprefs( $http_form_vars["gszAppDir"]."globprefs.php",
> >>>         $http_form_vars["gszAppDir"],
> >>> $http_form_vars["gszWorkingDir"].
> >>>         "settings.php",
> >>> /*$gszFileBrowserRoot.*/$http_form_vars["gszMapFile"],
> >>> $gszMapscriptModule,
> >>>         $oLog ) )
> >>>
> >>> I have commented $gszFileBrowserRoot.
> >>>
> >>> gMapFactory run very nice.
> >>>
> Good luck!
>
> Franck
>
>       -----Message d'origine-----
>       * De:     * maplab-users-bounces at lists.maptools.org
>       [SMTP:maplab-users-bounces at lists.maptools.org] * À la place de *
>       publi at infonegocio.com
>
>       * Date:   * mardi 12 octobre 2004 10:52
>       * À:      * Zak James
>       * Cc:     * maplab-users at lists.maptools.org
>       * Objet:  * Re: [maplab-users] Problems with Maplab - Object
>       Browser doesn`t refresh
>
>       Zak James wrote:
>
>       > Hi,
>       >
>       > I'm pretty sure that the problem with adding new objects is a
>       frame
>       > focus problem. If you first click in the toolbar frame and
>       then click
>       > +, does it make a difference? You also need to wait for the
>       selection
>       > of the left frame object to complete (including reload of the
>       toolbar
>       > frame) before clicking plus. On slow machines, this can be
>       quite an
>       > irritant.
>       >
>       > The error message you're getting is not related and can be
>       resolved by
>       > editing line 196 of mapserv_40.xml in your maplab/config
>       directory so
>       > that the first character in the value string is ' |' (the unix
>       pipe
>       > symbol).
>       > i.e.
>       > VALUE="POINT|LINE...  should be changed to VALUE="|POINT|LINE...
>       >
>       > This will be fixed the next time there is a bug fix release.
>       > Unfortunately, that may not be soon.
>       >
>       > zak
>       >
>       > --
>       > Zak James
>       > Applications and Software Development
>       > DM Solutions Group Inc.
>       > http://www.dmsolutions.ca
>       >
>       >
>       > On Oct 11, 2004, at 5:21 AM, publi at infonegocio.com wrote:
>       >
>       >> Environment:
>       >>     Debian 3.0 Server
>       >>     Apache 2.0.50
>       >>     Mapserver 4.2.3
>       >>     Maplab 2.2
>       >>     PHP 4.3.7 compiled as CGI
>       >>     IE6 under Windows and Mozilla 1.5 under Linux
>       >>
>       >>
>       >>   When I'm in Mapedit, new objects quite often do not appear
>       in the
>       >> Object
>       >>   Browser Window on the left.
>       >>
>       >>   I load my map file
>       >>   Click on the first object "MAP (mymap)"
>       >>   Click on the 'Create New Object..' pulldown and pick 'Layer
>       Object'
>       >>   I click the "+" to the right and no visual update is made
>       to the
>       >>   Object Browser Window on the left and no error is indicated in
>       >>   the upper right.
>       >>
>       >>   Also, sometimes the yellow warning triangle will appear
>       showing this:
>       >>
>       >>   Description
>       >>   Invalid value () for TYPE should be one of
>       >> POINTLINECIRCLEPOLYGONANNOTATIONRASTERQUERY
>       >>
>       >>   Where's the problem?????????
>       >>
>       >>
>       >> _______________________________________________
>       >> Maplab-users mailing list
>       >> Maplab-users at lists.maptools.org
>       >> http://lists.maptools.org/mailman/listinfo/maplab-users
>       >>
>       >
>       >
>              Hi Zack,
>                 Thanks Zack, the two last problems  are ok and it's
>       run. I
>       have another problem with gmapfactory, when i do any
>       modification in the
>       left frame and click in Apply button the next errors appear:
>                             - In the left frame, up the menu:
>                                                   ***Warning*: [MapServer
>       Error]: msLoadMap(): (///tutorial//tutorial.map)
>       in                       
>       *                                            
>                                                                           
>
>       /home/javi/maplab-2.2/htdocs/gmapfactory/build_phtml.php* on
>       line *1301*
>
>       *                                            Warning*: Failed to
>       open
>       map file ///tutorial//tutorial.map in *
>                                                   
>       /home/javi/maplab-2.2/htdocs/gmapfactory/build_phtml.php* on
>       line *1301
>                             - *In the main frame, only the next line:
>                                                     *Parse error*: parse
>       error, unexpected ')' in *
>                                                    
>       /home/javi/maplab-2.2/projects/gmf_apps/nuevo/globprefs.php* on
>       line *46
>
>                    *I have read/write permission with web users in all
>       maplab
>       files. Anyone knows something about this???.
>                    Thanks for all (and Sorry for my English).
>       *
>       *        
>
>
>       **
>
>       _______________________________________________
>       Maplab-users mailing list
>       Maplab-users at lists.maptools.org
>       http://lists.maptools.org/mailman/listinfo/maplab-users
>
Hi VILLOIN Franck DSIC BMS,
       Ok, it's run perfectly. Thanks for all.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/maplab-users/attachments/20041012/33e8654b/attachment.htm


More information about the Maplab-users mailing list