[Cartoweb-users] Parse error: parse error, unexpected T_STRING
Oliver Ishmael
oliver_ishmael at hotmail.com
Thu Jan 5 07:30:02 EST 2006
Hi all,
I have modified the minimal project to use my own data, and am now trying to
format the legend. I have included the new layers in bap.ini, bap.map and
updated the layers.ini. This produces the following errors:
Parse error: parse error, unexpected T_STRING in
c:\wamp\www\cartoweb3\common\StructHandler.php(47) : eval()'d code on line 1
Parse error: parse error, unexpected T_STRING in
c:\wamp\www\cartoweb3\common\StructHandler.php(47) : eval()'d code on line 1
Parse error: parse error, unexpected T_STRING in
c:\wamp\www\cartoweb3\common\StructHandler.php(47) : eval()'d code on line 1
Parse error: parse error, unexpected T_STRING in
c:\wamp\www\cartoweb3\common\StructHandler.php(47) : eval()'d code on line 1
Parse error: parse error, unexpected T_STRING in
c:\wamp\www\cartoweb3\common\StructHandler.php(47) : eval()'d code on line 1
Parse error: parse error, unexpected T_STRING in
c:\wamp\www\cartoweb3\common\StructHandler.php(47) : eval()'d code on line 1
Fatal error: Uncaught exception 'CartocommonException' with message 'Error
[2, Cannot modify header information - headers already sent by (output
started at c:\wamp\www\cartoweb3\common\StructHandler.php(47) : eval()'d
code:1), c:\wamp\www\cartoweb3\client\FormRenderer.php, 297] Backtrace:
file: UNKNOWN - UNKNOWN call: Common::cartowebErrorHandler(2, "Cannot modify
header information - headers already sent by (outp...",
"c:\wamp\www\cartoweb3\client\FormRenderer.php", 297, Array(1)) file: 297 -
c:\wamp\www\cartoweb3\client\FormRenderer.php call: header("HTTP/1.1 500
Internal Server Error") file: 1016 -
c:\wamp\www\cartoweb3\client\Cartoclient.php call:
FormRenderer->showFailure(Object(CartocommonException)) file: 38 -
c:\wamp\www\cartoweb3\htdocs\client.php call: Cartoclient->main() ' in
c:\wamp\www\cartoweb3\common\Common.php:275 Stack trace: #0 [internal
function]: Common::cartowebErrorHandler(2, 'Cannot modify h...',
'c:\wamp\www\car...', 297, Array) #1
c:\wamp\www\cartoweb3\client\FormRenderer.php(297): header('H in
c:\wamp\www\cartoweb3\common\Common.php on line 275
Can someone point me in the right direction please!
---------------------------------------------------------------------------------
Here is my bap.ini :
; plugin configuration and loading
mapInfo.loadPlugins = outline, hilight
; initial map states
;mapInfo.initialMapStates.default.location.bbox = "402695.3 223949.11 655989
413919.39"
;mapInfo.initialMapStates.default.layers.raster.selected = true
mapInfo.initialMapStates.default.layers.baexec.selected = true
;mapInfo.initialMapStates.default.layers.local planning authorities.selected
= true
mapInfo.initialMapStates.default.layers.norfolk_district_2004.selected =
true
mapInfo.initialMapStates.default.layers.countyboundaries.selected = true
; Charset encoder class
EncoderClass.config = EncoderISO
----------------------------------------------------------------------------------------
Here is my bap.map :
#
# Start of map file
#
MAP
#NAME DEMO
#STATUS ON
#SIZE 600 450
#SYMBOLSET "/etc/symbols.sym"
# European Extents
# this will require on-the-fly reprojection
# National Extents
#EXTENT 75000 50000 90000 1200000
# Regional Extents
EXTENT 402695.3 223949.11 655989 413919.39
#UNITS METERS
SHAPEPATH "data"
IMAGECOLOR 159 182 205
#FONTSET "/etc/fonts.txt"
REFERENCE
IMAGE "reference/ref_map.png"
EXTENT 402695.3 223949.11 655989 413919.39
# IMAGE "images/keymap.png"
# EXTENT -2200000 -712631 3072800 3840000
STATUS ON
COLOR -1 -1 -1
OUTLINECOLOR 255 0 0
SIZE 120 90
END
#OUTPUTFORMAT
# NAME png
# DRIVER "GD/PNG"
# MIMETYPE "image/png"
# IMAGEMODE PC256
# EXTENSION "png"
#END
#OUTPUTFORMAT
# NAME GTiff
# DRIVER "GDAL/GTiff"
# MIMETYPE "image/tiff"
# IMAGEMODE RGB
# EXTENSION "tif"
#END
PROJECTION
"init=EPSG:27700"
END
# Start of LAYER DEFINITIONS ---------------------------------------------
# Whatever is going to be at the base of the map should be listed first
(layers lower down lie on top)
#
# ------------------ ADMIN LAYERS
-------------------------------------------
#LAYER
# NAME "UK"
# #MAXSCALE 750000
# #METADATA
# # "DESCRIPTION" "UK"
# #END
# TYPE POLYGON
# STATUS ON
# DATA "UK"
# CLASS
# NAME "UK"
# STYLE
# COLOR 105 139 34
# OUTLINECOLOR 255 255 0
# END
# END
#END
LAYER
NAME "countyboundaries"
#MAXSCALE 750000
#METADATA
# "DESCRIPTION" "countyboundaries"
#END
TYPE POLYGON
STATUS ON
DATA "countyboundaries"
CLASS
NAME "countyboundaries"
STYLE
COLOR 105 139 34
OUTLINECOLOR 255 255 0
END
END
END
LAYER
NAME "baexec"
#MAXSCALE 750000
#METADATA
# "DESCRIPTION" "baexec"
#END
TYPE POLYGON
STATUS ON
DATA "baexec"
CLASS
NAME "baexec"
STYLE
COLOR 255 228 225
END
END
END
LAYER
NAME "local planning authorities"
#MAXSCALE 750000
#METADATA
# "DESCRIPTION" "local planning authorities"
#END
TYPE POLYGON
STATUS ON
DATA "local planning authorities"
CLASS
NAME "local planning authorities"
STYLE
OUTLINECOLOR 255 225 0
END
END
END
LAYER
NAME "Norfolk_district_2004"
#MAXSCALE 750000
#METADATA
# "DESCRIPTION" "Norfolk_district_2004"
#END
TYPE POLYGON
STATUS ON
DATA "Norfolk_district_2004"
CLASS
NAME "Norfolk_district_2004"
STYLE
OUTLINECOLOR 255 225 0
END
END
END
# --------------- SENSITIVE AREAS ------------------------------------
LAYER
NAME "conservation areas"
#MAXSCALE 750000
#METADATA
# "DESCRIPTION" "conservation areas"
#END
TYPE POLYGON
STATUS ON
DATA "conservation areas"
CLASS
NAME "conservation areas"
STYLE
COLOR 0 0 0
END
END
END
# End of LAYER DEFINITIONS
----------------------------------------------------------
# End of MAP FILE --------------------------------------------
END
----------------------------------------------------------------------------
Lastly here is my layers.ini :
; whether to generate class icons automatically
autoClassLegend = true
; layers
layers.root.className = LayerGroup
layers.root.children = Administrative, Sensitive
layers.Administrative.className = LayerGroup
layers.Administrative.children = baexec, local planning authorities,
norfolk_district_2004, countyboundaries
layers.Administrative.rendering = tree
layers.baexec.className = Layer
layers.baexec.msLayer = baexec
layers.baexec.label = baexec
layers.local planning authorities.className = Layer
layers.local planning authorities.msLayer = local planning authorities
layers.local planning authorities.label = local planning authorities
layers.norfolk_district_2004.className = Layer
layers.norfolk_district_2004.msLayer = norfolk_district_2004
layers.norfolk_district_2004.label = norfolk_district_2004
layers.countyboundaries.className = Layer
layers.countyboundaries.msLayer = countyboundaries
layers.countyboundaries.label = countyboundaries
layers.Sensitive.className = LayerGroup
layers.Sensitive.children = conservation areas
layers.Sensitive.rendering = tree
layers.conservation areas.className = Layer
layers.conservation areas.msLayer = conservation areas
layers.conservation areas.label = conservation areas
Can anyone see any obvious problems?
Cheers in advance
Olly
_________________________________________________________________
Be the first to hear what's new at MSN - sign up to our free newsletters!
http://www.msn.co.uk/newsletters
More information about the Cartoweb-users
mailing list