Summary: | [MapLab] adding class item to layer (tutorial), map preview errors out | ||
---|---|---|---|
Product: | MapLab | Reporter: | ad_wells@hotmail.com |
Component: | map editor | Assignee: | maplab-dev <maplab-dev@lists.maptools.org> |
Status: | REOPENED | ||
Severity: | blocker | CC: | jmckenna@gatewaygeomatics.com |
Priority: | P2 | ||
Version: | 2.2 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: | |||
Bug Depends on: | 1005 | ||
Bug Blocks: | |||
Attachments: | temp mapfile |
trying now
i can duplicate your exact errors. note there are 2 bugs here: 1) the file browsers (every one i tried) for the mapfile parameters return invalid paths in the textbox (e.g. browse for a shapefile in a DATA parameter and see the returned path) 2) there seems to be a problem with adding a CLASSITEM. Any time i add a CLASSITEM, either to an existing layer (in tutorial.map) or to a new layer...the CLASSITEM will also get written to ANOTHER layer. I've attached the temp mapfile that MapLab is trying to load when we get the reported errors. Users add a new layer "capital", with a CLASSITEM and EXPRESSION...and taking a look at the temp mapfile you can see that the "land_fn" layer also mysteriously has the CLASSITEM and EXPRESSION...which causes the error.
Created an attachment (id=68) [details]
temp mapfile
This appears to be fixed by changes in PHP 4.4.0. Not sure what the fix was but it is likely related to the reference problem fix described here: http://www.php.net/release_4_4_0.php Note that 4.4.0 breaks binary compatibility with 4.3.x. Please test on your platform. Do we have an MS4W which incorporates 4.4.0 yet?
PHP 4.4.0 solves this duplicate objects problem. A new MS4W (1.3.0) will be available shortly with this php version. However the file browser problem reported here still exists (as well as selecting a shape attribute browser). I'll file new bugs for these.
*** Bug 1005 has been marked as a duplicate of this bug. ***
opened bug#1183 for the path issue.
ms4w will be released shortly with a newer PHP5 version (5.1.6), and this bug is back (multiple classes ....)
it doesn't seem to happen with PHP 4.4.4 (which is included in this next release).
a reminder: PHP4 will not be supported in MS4W after this month, so these PHP5 problems are critical.
we're gonna have to live with this for a bit - i painfully just tried a "php 5.2-dev snapshot".....i get scarey multithreaded errors for php_mapscript. I now have a big headache. sorry, i tried.