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