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