[Cartoweb-users] Tooltips plugin: DB table name is not set...
Oliver Christen
oliver.christen at camptocamp.com
Mon Sep 15 02:56:39 EDT 2008
Hi
your config seems ok.
please verify the .ini is generated correcty and contains the correct
dbTableName.
also do a cw3setup.php --clean and a ?reset_session to be sure the
parameteres are correctly taken into account
if it still doesnt work, you may add a print_r($configStruct->tooltips) in
ToolTipsService.php on line 91 just after $configStruct =
StructHandler::loadFromArray($iniArray);
it will display the content of the loaded config as seems by the application
regards
Oliver
----- Original Message -----
From: "Kurt Gerber" <kurt.gerber at cde.unibe.ch>
To: <cartoweb-users at lists.maptools.org>
Sent: Friday, September 12, 2008 4:30 PM
Subject: [Cartoweb-users] Tooltips plugin: DB table name is not set...
> 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
>
> ********************************************
>
> _______________________________________________
> Cartoweb-users mailing list
> Cartoweb-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/cartoweb-users
>
More information about the Cartoweb-users
mailing list