<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" <simon.ortet@silogic.fr><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> /Error [8, Trying to get property of non-object,<br> /opt/cartoweb/cartoweb3/coreplugins/layers/server/LayersInitProvider.php,<br> 304]<br> Backtrace:<br><br> file: 304 -<br> /opt/cartoweb/cartoweb3/coreplugins/layers/server/LayersInitProvider.php<br> call: Common::cartowebErrorHandler(8, "Trying to get property of<br> non-object",<br> "/opt/cartoweb/cartoweb3/coreplugins/layers/server/LayersInitProv...",<br> 304, Array(8))<br><br> file: 258 -<br> /opt/cartoweb/cartoweb3/coreplugins/layers/server/ServerLayers.php<br> call: LayersInitProvider->fillDynamicLayer(Object(Layer))<br><br> file: 74 - /opt/cartoweb/cartoweb3/server/ServerPluginHelper.php<br> call: ServerLayers->handleCorePlugin(Object(LayersRequest))<br><br> file: 184 - /opt/cartoweb/cartoweb3/server/ServerPluginHelper.php<br> call: ServerPluginHelper->callHandleFunction(Object(ServerLayers),<br> "handleCorePlugin")<br><br> file: UNKNOWN - UNKNOWN<br> call: CoreProviderHelper->handleCorePluginHelper(Object(ServerLayers))<br><br> file: 267 - /opt/cartoweb/cartoweb3/common/PluginManager.php<br> call: call_user_func_array(Array(2), Array(1))<br><br> file: 299 - /opt/cartoweb/cartoweb3/server/Cartoserver.php<br> call: PluginManager->callPluginImplementing(Object(ServerLayers),<br> "CoreProvider", "handleCorePlugin")<br><br> file: 349 - /opt/cartoweb/cartoweb3/server/Cartoserver.php<br> call: Cartoserver->doGetMap(Object(MapRequest))<br><br> file: 370 - /opt/cartoweb/cartoweb3/server/Cartoserver.php<br> call: Cartoserver->callWithExceptionCheck("doGetMap",<br> Object(MapRequest))<br><br> file: 81 - /opt/cartoweb/cartoweb3/server/MapResultCache.php<br> call: Cartoserver->cacheGetMap(Object(MapRequest))<br><br> file: 186 - /opt/cartoweb/cartoweb3/server/MapResultCache.php<br> call: MapResultCache->getMapResultFromServer(Object(MapRequest))<br><br> file: 380 - /opt/cartoweb/cartoweb3/server/Cartoserver.php<br> call: MapResultCache->getMap(Object(MapRequest))<br><br> file: 104 - /opt/cartoweb/cartoweb3/client/CartoserverService.php<br> call: Cartoserver->getMap(Object(MapRequest))<br><br> file: 165 - /opt/cartoweb/cartoweb3/client/CartoserverService.php<br> call: CartoserverService->callDirect("getMap", Object(MapRequest))<br><br> file: 233 - /opt/cartoweb/cartoweb3/client/CartoserverService.php<br> call: CartoserverService->callFunction("getMap", Object(MapRequest))<br><br> file: 933 - /opt/cartoweb/cartoweb3/client/Cartoclient.php<br> call: CartoserverService->getMap(Object(MapRequest))<br><br> file: 1062 - /opt/cartoweb/cartoweb3/client/Cartoclient.php<br> call: Cartoclient->getMapResultFromRequest(Object(MapRequest))<br><br> file: 1237 - /opt/cartoweb/cartoweb3/client/Cartoclient.php<br> call: Cartoclient->doMain()<br><br> file: 38 - /opt/cartoweb/cartoweb3/htdocs/client.php<br> call: Cartoclient->main()<br><br> file: 4 - /opt/cartoweb/cartoweb3/htdocs/aeag.php<br> 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>