You need to log in before you can comment on or make changes to this bug.
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", );
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.
Verified on Windows XP ms4w and maplab 2.2 20040721.