<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 8Impr; color: #000000'><br>Hi,<br><br>It could be in relation with your layers from a WMS service.<br>In fact, it could be an error in your layers.ini<br>Are you sure that "layers.<span style="font-style: italic;">mylayer</span>_label.msLayer = <span style="font-style: italic;">mylayer_label</span>" is correct.<br><br>Maybe you will found the problem if you get the <span style="font-weight: bold;">GetCapabilities</span> if your application works with WMS service.<br>You will found the coorect name of the layer. It could be different...<br>We had this problem in the past...<br><br>Arno <br>CCI du Gers<br><br>----- Mail Original -----<br>De: "Simon ORTET" &lt;simon.ortet@silogic.fr&gt;<br>À: cartoweb-users@lists.maptools.org<br>Envoyé: Mercredi 3 Septembre 2008 11:46:50 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne<br>Objet: [Cartoweb-users] wmsBrowserLight: error when adding a WMS layer from the same server as cartoweb<br><br>Hi,<br><br>I have an error I can't explain: I use the WmsBrowserLight plugin and it <br>works perfectly. I can add layers from several WMS servers, except one: <br>my ow server. I mean the server where my cartoweb application is <br>installed. I can get the layers list but when i try to add a layer from <br>the list i get this error:<br><br>&nbsp;&nbsp; &nbsp;/Error [8, Trying to get property of non-object,<br>&nbsp;&nbsp; &nbsp;/opt/cartoweb/cartoweb3/coreplugins/layers/server/LayersInitProvider.php,<br>&nbsp;&nbsp; &nbsp;304]<br>&nbsp;&nbsp; &nbsp;Backtrace:<br><br>&nbsp;&nbsp; &nbsp;file: 304 -<br>&nbsp;&nbsp; &nbsp;/opt/cartoweb/cartoweb3/coreplugins/layers/server/LayersInitProvider.php<br>&nbsp;&nbsp; &nbsp;call: Common::cartowebErrorHandler(8, "Trying to get property of<br>&nbsp;&nbsp; &nbsp;non-object",<br>&nbsp;&nbsp; &nbsp;"/opt/cartoweb/cartoweb3/coreplugins/layers/server/LayersInitProv...",<br>&nbsp;&nbsp; &nbsp;304, Array(8))<br><br>&nbsp;&nbsp; &nbsp;file: 258 -<br>&nbsp;&nbsp; &nbsp;/opt/cartoweb/cartoweb3/coreplugins/layers/server/ServerLayers.php<br>&nbsp;&nbsp; &nbsp;call: LayersInitProvider-&gt;fillDynamicLayer(Object(Layer))<br><br>&nbsp;&nbsp; &nbsp;file: 74 - /opt/cartoweb/cartoweb3/server/ServerPluginHelper.php<br>&nbsp;&nbsp; &nbsp;call: ServerLayers-&gt;handleCorePlugin(Object(LayersRequest))<br><br>&nbsp;&nbsp; &nbsp;file: 184 - /opt/cartoweb/cartoweb3/server/ServerPluginHelper.php<br>&nbsp;&nbsp; &nbsp;call: ServerPluginHelper-&gt;callHandleFunction(Object(ServerLayers),<br>&nbsp;&nbsp; &nbsp;"handleCorePlugin")<br><br>&nbsp;&nbsp; &nbsp;file: UNKNOWN - UNKNOWN<br>&nbsp;&nbsp; &nbsp;call: CoreProviderHelper-&gt;handleCorePluginHelper(Object(ServerLayers))<br><br>&nbsp;&nbsp; &nbsp;file: 267 - /opt/cartoweb/cartoweb3/common/PluginManager.php<br>&nbsp;&nbsp; &nbsp;call: call_user_func_array(Array(2), Array(1))<br><br>&nbsp;&nbsp; &nbsp;file: 299 - /opt/cartoweb/cartoweb3/server/Cartoserver.php<br>&nbsp;&nbsp; &nbsp;call: PluginManager-&gt;callPluginImplementing(Object(ServerLayers),<br>&nbsp;&nbsp; &nbsp;"CoreProvider", "handleCorePlugin")<br><br>&nbsp;&nbsp; &nbsp;file: 349 - /opt/cartoweb/cartoweb3/server/Cartoserver.php<br>&nbsp;&nbsp; &nbsp;call: Cartoserver-&gt;doGetMap(Object(MapRequest))<br><br>&nbsp;&nbsp; &nbsp;file: 370 - /opt/cartoweb/cartoweb3/server/Cartoserver.php<br>&nbsp;&nbsp; &nbsp;call: Cartoserver-&gt;callWithExceptionCheck("doGetMap",<br>&nbsp;&nbsp; &nbsp;Object(MapRequest))<br><br>&nbsp;&nbsp; &nbsp;file: 81 - /opt/cartoweb/cartoweb3/server/MapResultCache.php<br>&nbsp;&nbsp; &nbsp;call: Cartoserver-&gt;cacheGetMap(Object(MapRequest))<br><br>&nbsp;&nbsp; &nbsp;file: 186 - /opt/cartoweb/cartoweb3/server/MapResultCache.php<br>&nbsp;&nbsp; &nbsp;call: MapResultCache-&gt;getMapResultFromServer(Object(MapRequest))<br><br>&nbsp;&nbsp; &nbsp;file: 380 - /opt/cartoweb/cartoweb3/server/Cartoserver.php<br>&nbsp;&nbsp; &nbsp;call: MapResultCache-&gt;getMap(Object(MapRequest))<br><br>&nbsp;&nbsp; &nbsp;file: 104 - /opt/cartoweb/cartoweb3/client/CartoserverService.php<br>&nbsp;&nbsp; &nbsp;call: Cartoserver-&gt;getMap(Object(MapRequest))<br><br>&nbsp;&nbsp; &nbsp;file: 165 - /opt/cartoweb/cartoweb3/client/CartoserverService.php<br>&nbsp;&nbsp; &nbsp;call: CartoserverService-&gt;callDirect("getMap", Object(MapRequest))<br><br>&nbsp;&nbsp; &nbsp;file: 233 - /opt/cartoweb/cartoweb3/client/CartoserverService.php<br>&nbsp;&nbsp; &nbsp;call: CartoserverService-&gt;callFunction("getMap", Object(MapRequest))<br><br>&nbsp;&nbsp; &nbsp;file: 933 - /opt/cartoweb/cartoweb3/client/Cartoclient.php<br>&nbsp;&nbsp; &nbsp;call: CartoserverService-&gt;getMap(Object(MapRequest))<br><br>&nbsp;&nbsp; &nbsp;file: 1062 - /opt/cartoweb/cartoweb3/client/Cartoclient.php<br>&nbsp;&nbsp; &nbsp;call: Cartoclient-&gt;getMapResultFromRequest(Object(MapRequest))<br><br>&nbsp;&nbsp; &nbsp;file: 1237 - /opt/cartoweb/cartoweb3/client/Cartoclient.php<br>&nbsp;&nbsp; &nbsp;call: Cartoclient-&gt;doMain()<br><br>&nbsp;&nbsp; &nbsp;file: 38 - /opt/cartoweb/cartoweb3/htdocs/client.php<br>&nbsp;&nbsp; &nbsp;call: Cartoclient-&gt;main()<br><br>&nbsp;&nbsp; &nbsp;file: 4 - /opt/cartoweb/cartoweb3/htdocs/aeag.php<br>&nbsp;&nbsp; &nbsp;call: require_once("/opt/cartoweb/cartoweb3/htdocs/client.php")/<br><br><br>I found a thread on this problem on a forum: <br>http://www.nabble.com/Error-failure-td18585778.html<br>It's told that the problem is that i can't add a layer that is already <br>loaded in my viewer. So I tried to remove a layer from my layers.ini and <br>call it with a WMS request in my viewer. Unfortunately i get the same error.<br><br>Any idea, lead, that could help me to solve this problem will be greatly <br>appreciated.<br><br>Simon Ortet<br>AKKA Technologies<br><br>_______________________________________________<br>Cartoweb-users mailing list<br>Cartoweb-users@lists.maptools.org<br>http://lists.maptools.org/mailman/listinfo/cartoweb-users<br></div></body></html>