<!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 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) == "/" ||</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, strlen($gszFileBrowserRoot)) == $gszFileBrowserRoot)</FONT>
<BR><FONT SIZE=2 FACE="Arial"> {</FONT>
<BR><FONT SIZE=2 FACE="Arial"> $http_form_vars["gszMapFile"] = "/".substr($http_form_vars["gszMapFile"], 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>
</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["gszAppDir"]."globprefs.php", </FONT>
<BR><FONT SIZE=2 FACE="Arial"> $http_form_vars["gszAppDir"], $http_form_vars["gszWorkingDir"].</FONT>
<BR><FONT SIZE=2 FACE="Arial"> "settings.php", $gszFileBrowserRoot.$http_form_vars["gszMapFile"], $gszMapscriptModule, </FONT>
<BR><FONT SIZE=2 FACE="Arial"> $oLog ) )</FONT>
</P>
<P><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"], $http_form_vars["gszWorkingDir"].</FONT>
<BR><FONT SIZE=2 FACE="Arial"> "settings.php", /*$gszFileBrowserRoot.*/$http_form_vars["gszMapFile"], $gszMapscriptModule, </FONT>
<BR><FONT SIZE=2 FACE="Arial"> $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"> * Revision 1.29.2.2 2004/07/21 13:17:00 zak</FONT>
<BR><FONT SIZE=2 FACE="Arial"> * fixed map file path discovery problems when absolute path is outside file browser root path</FONT>
<BR><FONT SIZE=2 FACE="Arial"> *</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>