Tags:
create new tag
, view all tags

Question

I have DBI modules installed, and the DatabasePlugin working perfectly. However, I need the better reporting capibilities of DBIQueryPlugin and my call to DBI_QUERY shows as plain text:

%DBI_QUERY{db1}%
SELECT
hostname
FROM
os
.header
sampleheader
.body
%hostname%
.footer
samplefooter
%DBI_QUERY%

I've edited the config file for my database (much the same as DatabasePlugin). Does anyone know what I might have done wrong? I've installed the plugin the same way as DatabasePlugin (unzipped the package in the twiki dir and activated it via the admin panel). In fact, I've deactivated and activated it a couple times. I've tried both the Dakar and non-Dakar packages. I've also tried double quotes around the db name in the call and no quotes, etc etc..

I would think if there was a problem with the config file or with the parameters, it should give me an error, no?

Environment

TWiki version: TWikiRelease04x00x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin DatabasePlugin WSYWIG Plugin
Server OS: Solaris 9
Web server: Apache 2
Perl version: 5.6.1
Client OS: Windows XP
Web Browser: Firefox
Categories: Plugins

-- GeneHorodecki - 23 May 2006

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

Hi,

I can't be of much help, but I can tell you that your script, above, looks correct. Also, make sure your lib/DBIQueryPlugin.cfg file is properly configured with the correct username and password for your database. Are you getting any error messages? I never got plain text when I initially installed DBIQueryPlugin, but I did get error messages.

-- JulietHabberstandish - 31 May 2006

Also make sure that lib/DBIQueryPlugin.cfg is readable by the web server user or group.

-- DonWennick - 20 Jun 2008

 
Topic revision: r5 - 2008-06-20 - DonWennick
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.