<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>Bug in MapLab 2.2 gMapFactory module </TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2 FACE="Arial">Hi list,</FONT>
</P>

<P><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&nbsp; use 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 error.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Warning: [MapServer Error]: msLoadMap(): (//Rac//rac_fr.map) in E:\MapLab\htdocs\gmapfactory\build_phtml.php on line 1301</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Warning: Failed to open map file //Rac//rac_fr.map in E:\MapLab\htdocs\gmapfactory\build_phtml.php on line 1301</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Parse error: parse error, unexpected ')' in E:\MapLab\projects\gmf_apps\test_franck\globprefs.php on line 46</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">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</FONT></P>
<BR>

<P><FONT SIZE=2 FACE="Arial">After see the code sources off build_phtml.php, if I commente the lines 117 at 128</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">/*if (substr($http_form_vars['gszMapFile'], 0, 1) == &quot;/&quot; ||</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp; preg_match('/^(\w:)/', $http_form_vars['gszMapFile']))</FONT>
<BR><FONT SIZE=2 FACE="Arial">{</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp; if (substr($http_form_vars[&quot;gszMapFile&quot;], 0, strlen($gszFileBrowserRoot)) == $gszFileBrowserRoot)</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp; {</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $http_form_vars[&quot;gszMapFile&quot;] = &quot;/&quot;.substr($http_form_vars[&quot;gszMapFile&quot;], strlen($gszFileBrowserRoot));</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp; }</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp; else</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp; {</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $gszFileBrowserRoot = '';</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp; }</FONT>
<BR><FONT SIZE=2 FACE="Arial">} */</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">and change the lines 130 at 133</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">if ( !drawGlobprefs( $http_form_vars[&quot;gszAppDir&quot;].&quot;globprefs.php&quot;, </FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $http_form_vars[&quot;gszAppDir&quot;], $http_form_vars[&quot;gszWorkingDir&quot;].</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;settings.php&quot;, $gszFileBrowserRoot.$http_form_vars[&quot;gszMapFile&quot;], $gszMapscriptModule, </FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $oLog ) )</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">by </FONT>
<BR><FONT SIZE=2 FACE="Arial">if ( !drawGlobprefs( $http_form_vars[&quot;gszAppDir&quot;].&quot;globprefs.php&quot;, </FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $http_form_vars[&quot;gszAppDir&quot;], $http_form_vars[&quot;gszWorkingDir&quot;].</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;settings.php&quot;, /*$gszFileBrowserRoot.*/$http_form_vars[&quot;gszMapFile&quot;], $gszMapscriptModule, </FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $oLog ) )</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I have commented $gszFileBrowserRoot.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">gMapFactory run very nice.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">But I see the revision and I don't know this probleme</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;* Revision 1.29.2.2&nbsp; 2004/07/21 13:17:00&nbsp; zak</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;* fixed map file path discovery problems when absolute path is outside file browser root path</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;*</FONT>
<BR><FONT SIZE=2 FACE="Arial">After my modifications this problem exist ???</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Arial">best regards.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Franck</FONT>
</P>
<BR>

</BODY>
</HTML>