Bug 573 - [MapLab-GMapFactory]Parse error when opening tutorial
: [MapLab-GMapFactory]Parse error when opening tutorial
Status: VERIFIED FIXED
: MapLab
map editor
: 3.0
: PC Windows XP
: P2 normal
: ---
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2004-07-20 19:17 by
Modified: 2004-07-21 09:09 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2004-07-20 19:17:43
A parse error (see below) appears after creating a new project in GMapFactory.

Steps to reproduce:

1.  Load MapLab.
2.  Select MapEdit.
3.  Open the tutorial.
4.  Select GMapFactory.
5.  Create a new project.
6.  Click on "Ok" button.
7.  Fatal error appears.

Map extents are valid.

But opening by clicking on the "Open new or existing project" (step 3 in
"GMapFactory/Creating a Project File" section in the tutorial) does not
generates an error.

Mozilla 1.6 and IE 6
Windows XP
MapLab 2.2 20040720
----------------

PHP errors:

Parse error: parse error, unexpected ')' in
E:\ms4w\apps\maplab-2.2\projects\gmf_apps\xxx\globprefs.php on line 46

--------------
Code in "globprefs.php":

// define the maximum extents
define( "MAX_EXT_MINX",  );
define( "MAX_EXT_MINY",  );
define( "MAX_EXT_MAXX",  );
define( "MAX_EXT_MAXY",  );
------- Comment #1 From 2004-07-20 23:55:05 -------
This was happening because the mapscript failed to load the mapfile so no
extents were available. The 
failure occurred because of an assumption about the file browser root path made
in converting the 
mapfile name from absolute to relative in the build_phtml code. I added code to
handle conditions 
where the file browser root and the mapfile root weren't the same path. Should
be ok, but only tested 
on the Mac so far.
------- Comment #2 From 2004-07-21 09:09:26 -------
Verified on Windows XP ms4w and maplab 2.2 20040721.