[Cartoweb-users] Tooltips plugin: DB table name is not set...

Kurt Gerber kurt.gerber at cde.unibe.ch
Fri Sep 12 10:30:36 EDT 2008


Hi
On our Cartoweb 3.4 I have configured the toolTips plugin as follows:

tooltips.ini.in:

tooltips.village.label = "Settlements"
tooltips.village.dsn = "pqsql://@DB_USER@:@DB_PASSWD@@@DB_HOST/@DB_NAME@
tooltips.village.dbTableName = tj_annotations
tooltips.village.attributes = "textstring, feature"
tooltips.village.srid = 28472
tooltips.village.template = layerResult.tpl


the postgis connection details as well as the table name are working
will in the mapfile.map.in on the server side.
But when I activate the toolTips plugin on the client side with this
settings, I receive the following error message, when I load the map in
the browser:


lass : CartoclientException
Message : DB table name is not set for layer id:village
Backtrace:

file: 145 - /var/www/cartoweb3/plugins/toolTips/client/ToolTipsService.php
call: ToolTipsService->setQueryableLayerMembers(Object(ByXyQueryableLayer), Object(stdClass), "village")

file: 96 - /var/www/cartoweb3/plugins/toolTips/client/ToolTipsService.php
call: ToolTipsService->addByXyQueryableLayers(Object(stdClass))

file: 128 - /var/www/cartoweb3/plugins/toolTips/client/ClientToolTips.php
call: ToolTipsService->__construct(Object(Cartoclient))

file: 91 - /var/www/cartoweb3/plugins/toolTips/client/ClientToolTips.php
call: ClientToolTips->isToolTipsActive()

file: UNKNOWN - UNKNOWN
call: ClientToolTips->renderForm(Object(Smarty_Cartoclient))

file: 270 - /var/www/cartoweb3/common/PluginManager.php
call: call_user_func_array(Array(2), Array(1))

file: 285 - /var/www/cartoweb3/common/PluginManager.php
call: PluginManager->callPluginImplementing(Object(ClientToolTips), "GuiProvider", "renderForm", Array(1))

file: 693 - /var/www/cartoweb3/client/Cartoclient.php
call: PluginManager->callPluginsImplementing("GuiProvider", "renderForm", Array(1))

file: 375 - /var/www/cartoweb3/client/FormRenderer.php
call: Cartoclient->callPluginsImplementing("GuiProvider", "renderForm", Object(Smarty_Cartoclient))

file: 326 - /var/www/cartoweb3/client/FormRenderer.php
call: FormRenderer->showForm()

file: 1112 - /var/www/cartoweb3/client/Cartoclient.php
call: FormRenderer->render()

file: 1261 - /var/www/cartoweb3/client/Cartoclient.php
call: Cartoclient->doMain()

file: 33 - /var/www/cartoweb3/htdocs/client.php
call: Cartoclient->main()

file: 3 - /var/www/cartoweb3/htdocs/TajikWb.php
call: require_once("/var/www/cartoweb3/htdocs/client.php")



It says, that the table name is not set, but that's not true.
Or have I overseen something?


Sincerely 

Kurt Gerber 

-- 
********************************************

Centre for Development and Environment
Institute of Geography University Bern
Hallerstrasse 10
3012 Bern
 
phone: +41(0)31 631 88 37
fax:   +41(0)31 631 85 44

e-mail: kurt.gerber at cde.unibe.ch

www: http://www.cde.unibe.ch

******************************************** 



More information about the Cartoweb-users mailing list