<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1505" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi Bart,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>No, this is using mapserver 4.4</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I did a bit more testing, and found out that the
problem is on that line 1810 of server_data_manager.php</FONT></DIV>
<DIV><FONT face=Arial size=2>It tries to add a record to the DB_CAPABILITIES dbf
file (capab.dbf), but the array being added ($rec_new) contains 12 elements,
while there are 17 attributes in capab.dbf. So it fails to add the record
alltogether. If I fill up the $rec_new array to contain 17 values, then it
does add the record, and I can see the layers. However, upon adding it to the
map, I get this error:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> * ERROR: could not add layer 1
to map!<BR> * BBOX ID [0] was not found in bbox file
[bbox.dbf].</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Which makes sense, because bbox_id (which is not
found) is one of the values that was originally not filled in in capab.dbf, and
is blank.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Why would there be less values in the $rec_new
array than there should be? In the XML document, the layers has its bounding box
defined.....</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>regards,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Jacob</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>-----Original Message-----<BR>From: <A
href="mailto:chameleon-bounces@lists.maptools.org">chameleon-bounces@lists.maptools.org</A>
[mailto:chameleon-bounces@lists.maptools.org] On Behalf Of Bart van den
Eijnden<BR>Sent: 7 July 2005 17:47<BR>To: <A
href="mailto:chameleon@lists.maptools.org">chameleon@lists.maptools.org</A>; <A
href="mailto:jacob.delfos@maunsell.com">jacob.delfos@maunsell.com</A><BR>Subject:
Re: [Chameleon] WMS browser not finding layers</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Hi Jacob,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>are you using Mapserver 4.6?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>This could be related then:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><A
href="http://bugzilla.maptools.org/show_bug.cgi?id=1096">http://bugzilla.maptools.org/show_bug.cgi?id=1096</A></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Best regards,<BR>Bart</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Bart van den Eijnden<BR>Syncera IT
Solutions<BR>Postbus 270<BR>2600 AG DELFT</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>tel.nr.: 015-7512436<BR>email: <A
href="mailto:BEN@Syncera-ITSolutions.nl">BEN@Syncera-ITSolutions.nl</A></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>>>> "Jacob Delfos" <<A
href="mailto:jacob.delfos@maunsell.com">jacob.delfos@maunsell.com</A>>
07/07/05 11:33am >>><BR>Hi All,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>The WMSbrowser is having trouble seeing the layers
of my wms browser. I'm using a simple mapfile on the wms-server, and the
getcapabilities request returns a valid xml file. The getmap request returns a
valid image. The WMS browser finds the server, and all seems ok, except it
doesn't show any layers, only the wms_name of the wms server. In my php log, I
get:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>[07-Jul-2005 17:24:40] PHP Notice: Undefined index:
szServerDataPath in C:\chameleon\demo\htdocs\common\phpwms\manage_servers.phtml
on line 52</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>[07-Jul-2005 17:24:40] PHP Notice: Undefined index:
queryable in C:\chameleon\demo\htdocs\common\phpwms\xpath.class.php on line
750</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>[07-Jul-2005 17:24:40] PHP Warning: Wrong number of
fields specified in
C:\chameleon\demo\htdocs\common\phpwms\server_data_manager.php on line
1810</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I am not sure what is happening. Has anyone had
these errors before? I'm using chameleon from CVS june 16 2005, PHP
4.3.11.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>regards,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Jacob</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2><BR>_______________________________________________<BR>Chameleon mailing
list<BR><A
href="mailto:Chameleon@lists.maptools.org">Chameleon@lists.maptools.org</A><BR><A
href="http://lists.maptools.org/mailman/listinfo/chameleon">http://lists.maptools.org/mailman/listinfo/chameleon</A><BR></FONT></DIV>
<DIV><FONT face=Arial size=2><A
href="mailto:jacob.delfos@maunsell.com"></A></FONT> </DIV></BODY></HTML>