[Chameleon] Manage WMS Servers widget shows "cache_mlt" errors,results in no WMS data layers

Delfos, Jacob Jacob.Delfos at maunsell.com
Sun May 7 20:44:59 EDT 2006


Hi Bart,

I'm not familiar with that extension. I guess this extension makes use
of the fields added in dbf.php?

To prevent changing the DBF structure from what it currently is, can I
suggest the following changes to server_data_manager.php instead?

Line 1807, after:
$rec_new = array( $nLayerID, $nServerID, $szName, $szTitle, $szSRS);

Add this line:
$rec_new = array_merge($rec_new, array("","",""));  // values for
mdu_type,mdu_fmt,mdu_url

Change line 1813, from:

$rec_new = array_merge($rec_new, array($ll_minx, $ll_miny, $ll_maxx,
$ll_maxy, $bb_id));

To

$rec_new = array_merge($rec_new, array($ll_minx, $ll_miny, $ll_maxx,
$ll_maxy, "","", $bb_id));
// fill blanks for missing minscale and maxscale


These lines mean the DBF stays the same, but the record added to it has
blanks for the field for which values are not added. I don't think this
would cause any problems for anyone, as currently the code tries to add
an invalid record to the DBF, with too few fields. It appears to work
for me.

Jennifer, if this causes incompatability with your old DBF, maybe you
could edit your DBF by adding fields to it, so it can be used with the
new structure. 

Regards,

Jacob








> -----Original Message-----
> From: Bart van den Eijnden (OSGIS) [mailto:bartvde at xs4all.nl] 
> Sent: 5 May 2006 15:29
> To: Delfos, Jacob
> Cc: Jennifer Zeisloft; chameleon at lists.maptools.org
> Subject: Re: [Chameleon] Manage WMS Servers widget shows 
> "cache_mlt" error s,results in no WMS data layers
> 
> Hi Jacob, Jennifer,
> 
> I would be against applying this fix, since it destroys some of the 
> functionality we use. :-)
> 
> We have everything working with Chameleon 2.4, but we run 
> Linux and use 
> the Chameleon PHP extension to do the parsing (instead of the 
> wmsparse 
> utility).
> 
> I will try to reproduce this on Windows today with a fresh 
> MS4W install 
> and report back.
> 
> Best regards,
> Bart
> 
> Delfos, Jacob wrote:
> 
> > Jennifer,
> >  
> > You may be running into bug 
> > http://bugzilla.maptools.org/show_bug.cgi?id=1132
> >  
> > As far as I can tell, this hasn't been fixed yet. A bit 
> unfortunate, 
> > because it means version 2.4 has a broken WMS layer widget in it.
> >  
> > Does anyone have a problem with me applying the 'fix' to the widget 
> > that I mentioned in the bug report? I held off on it, 
> because I wasn't 
> > sure if a better solution was coming, and whether it might 
> interfere 
> > with othe things.
> >  
> > Jacob
> >  
> >
> >     *From:* chameleon-bounces at lists.maptools.org
> >     [mailto:chameleon-bounces at lists.maptools.org] *On Behalf Of
> >     *Jennifer Zeisloft
> >     *Sent:* 5 May 2006 06:45
> >     *To:* Eijnden, B. van den (Bart)
> >     *Cc:* chameleon at lists.maptools.org
> >     *Subject:* Re: [Chameleon] Manage WMS Servers widget shows
> >     "cache_mlt" error s,results in no WMS data layers
> >
> >     Hi Bart (and list),
> >
> >     Thanks so much for the suggestion - I don't remember placing my
> >     old chameleon.xml file in the new version - but adding the code
> >     got rid of the mlt_cache error.
> >
> >     Unfortunately, it does not seem to be related to the 
> WMS problem -
> >     which is what I really need to solve. 
> >
> >     Has something changed since the last version of Chameleon that
> >     might cause WMS servers to lose their layer lists in the Explore
> >     WMS Layers window?  The refreshed servers are still listed as
> >     connected, but display the same way a disconnected 
> server displays
> >     except that a Service Title is still shown.  It is not only our
> >     WMS servers, but *every* WMS server that is refreshed.  If the
> >     server is not refreshed, there is no problem.
> >
> >     I made the assumption that refreshing a server grabs a new
> >     capabilities statement.  I checked for differences and 
> found only
> >     two - one having to do with the SYSTEM definition and one having
> >     to do with the mapserver version being used:
> >
> >     BEFORE:
> >     <!DOCTYPE WMT_MS_Capabilities SYSTEM
> >     
> "http://schemas.opengeospatial.net/wms/1.1.1/capabilities_1_1_1.dtd"
> >
> >     <!-- MapServer version 4.6.1
> >
> >     AFTER:
> >     <!DOCTYPE WMT_MS_Capabilities SYSTEM
> >     
> "http://schemas.opengeospatial.net/wms/1.1.1/WMS_MS_Capabilities.dtd"
> >
> >     <!-- MapServer version 4.8.1
> >
> >     The tricky thing is that ONLY our files showed these 
> differences. 
> >     Other refreshed server capability statements showed no 
> difference
> >     between the "before" and "after".  Perhaps I am on the wrong
> >     track?  Or perhaps this could be part of the answer?
> >
> >     I am running out of ideas with my limited understanding 
> of exactly
> >     how the widgets work and I truly appreciate any help that can be
> >     provided.
> >
> >     Thank you!
> >
> >     Jennifer Zeisloft
> >     UW Sea Grant
> >
> >
> >     On 5/4/06, *Eijnden, B. van den (Bart)*
> >     <b.vdeijnden at agi.rws.minvenw.nl
> >     <mailto:b.vdeijnden at agi.rws.minvenw.nl>> wrote:
> >
> >         Jennifer,
> >          
> >         cache_mlt is a new option in chameleon.xml. Did you 
> just place
> >         your old chameleon.xml in your 2.4 version? You could add an
> >         entry to your chameleon.xml:
> >          
> >             <context-param>
> >                 <param-name>cache_mlt</param-name>
> >                 <param-value>false</param-value>
> >                 <description>This option controls whether or not the
> >         MLT language translation file is cached or not.  Values are
> >         "true" and "false"</description>
> >             </context-param>
> >         Don't know if this will solve your problem though.
> >          
> >         Best regards,
> >         Bart
> >
> >             -----Oorspronkelijk bericht-----
> >             *Van:* chameleon-bounces at lists.maptools.org
> >             <mailto:chameleon-bounces at lists.maptools.org>
> >             [mailto:chameleon-bounces at lists.maptools.org
> >             <mailto:chameleon-bounces at lists.maptools.org>]*Namens
> >             *Jennifer Zeisloft
> >             *Verzonden:* donderdag 4 mei 2006 0:39
> >             *Aan:* chameleon at lists.maptools.org
> >             <mailto:chameleon at lists.maptools.org>
> >             *Onderwerp:* [Chameleon] Manage WMS Servers widget shows
> >             "cache_mlt" errors, results in no WMS data layers
> >
> >         Hello All,
> >
> >         I recently upgraded ms4w and chameleon to the versions most
> >         current at the time: ms4w 1.4.1 and chameleon 2.4.  
> Since that
> >         time, the Manage WMS Servers widget "inside" the Add WMS
> >         Layers widget is returning a series of errors with the same
> >         messge:
> >
> >         cache_mlt not found. Returning default value.
> >
> >         The biggest problem is that any servers that are 
> refreshed or
> >         added show only the upper most segment of the tree 
> in the Add
> >         WMS Layers dialog - i.e. the title appears, but none of the
> >         layers appear and nothing can be added to a map.  I am
> >         guessing this is related to the cache_mlt error, but not
> >         certain how.
> >
> >         I searched the archives and took a look at the mlt.php file,
> >         but don't understand how this would affect WMS servers. 
> >
> >         A look at the Apache error log shows a couple of unusual
> >         errors that I do not know the origins of and which also seem
> >         related to the WMS problem:
> >
> >         Premature end of script headers: php.exe, referer:
> >         
> http://.../chameleon//common/phpwms/manage_servers.phtml?sid=4
> 45925887dba6&callbackFunction=myUpdateServers
> >
> >         File does not exist:
> >         C:/ms4w/apps/chameleon/htdocs/skins/default/css/cwc2.css,
> >         referer:
> >         
> http://.../chameleon//widgets/WMSBrowser/WMSBrowser.php?templa
te=mapbrowser_iframe_en.html&sid=445925887dba6
> >         (none of the icons, etc. appeared to be missing...)
> >
> >         If anyone should have a suggestion as to how to get 
> WMS layers
> >         to appear in the Add WMS Layer dialog or how to get 
> rid of the
> >         cache_mlt error, I would greatly appreciate it!
> >
> >         Thanks in advance for your help!
> >
> >         Jennifer Zeisloft
> >         UW Sea Grant
> >
> >         Disclaimer
> >         
> **************************************************************
> **********
> >         Aan dit bericht kunnen geen rechten worden ontleend. Dit
> >         bericht is uitsluitend bestemd voor de geadresseerde. Als u
> >         dit bericht per abuis hebt ontvangen, wordt u 
> verzocht het te
> >         vernietigen en de afzender te informeren. Wij adviseren u om
> >         bij twijfel over de juistheid of de volledigheid van de mail
> >         contact met afzender op te nemen. This message shall not
> >         constitute any rights or obligations. This message 
> is intended
> >         solely for the addressee. If you have received this 
> message in
> >         error, please delete it and notify the sender immediately.
> >         When in doubt whether this message is correct or complete,
> >         please contact the sender.
> >         
> **************************************************************
> **********
> >
> >
> >
> >-------------------------------------------------------------
> -----------
> >
> >_______________________________________________
> >Chameleon mailing list
> >Chameleon at lists.maptools.org
> >http://lists.maptools.org/mailman/listinfo/chameleon
> >  
> >
> 
> 
> -- 
> Bart van den Eijnden
> OSGIS, Open Source GIS
> http://www.osgis.nl
> 
> 



More information about the Chameleon mailing list