Re: new in CGI::Session::Driver::postgredsql nonexisting
- From: gautam chekuri <gautam.chekuri@xxxxxxxxx>
- Date: Thu, 28 Jun 2007 21:12:36 -0000
On Jun 29, 1:04 am, IDK <ulvi...@xxxxxxxxx> wrote:
On Jun 28, 9:46 pm, "J. Gleixner" <glex_no-s...@xxxxxxxxxxxxxxxxxxxxx>
wrote:
IDK wrote:
On Jun 28, 8:38 pm, goodgautam <gautam.chek...@xxxxxxxxx> wrote:
In your code the first param being passed to CGI::Session's
constructor reads : "driver:postgredsql;id:md5" ..
Is that a typo in the code too ( s~postgredsql~postgresql~; ) ? I
think it should be like driver:postgresql ...http://search.cpan.org/dist/CGI-Session/lib/CGI/Session/Driver/postgr...
Wow, that's it!
Thanks!
But now it gives me another error:
Now you should do some debugging before posting another error.
[Thu Jun 28 20:52:39 2007] login: (in cleanup) Can't connect to
data source '' because I can't work out what driver to use (it doesn't
seem to contain a 'dbi:driver:' prefix and the DBI_DRIVER env var is
not set) at /usr/share/perl5/CGI/Session/Driver/DBI.pm line 26
[Thu Jun 28 20:52:39 2007] login: (in cleanup) Can't call method
"commit" on unblessed reference at /usr/share/perl5/CGI/Session/Driver/
DBI.pm line 130 during global destruction.
Niklas,
Are you sure you are passing the all the params correctly in your
program ?
I use CGI::Session version 4.20 .. and it all works fine ..
[root@deepdark gautam]# perl -MCGI::Session -e 'print
$CGI::Session::VERSION, "\n";'
4.20
If you are sure that your program is correct, you might want to run it
under the debugger and
see what arguments are being passed to DBI->connect( ) from the code
in /usr/share/perl5/CGI/Session/Driver/DBI.pm at line 26
One thing that we can be sure of from the error msg you pasted is that
DBI->connect didn't get its params correctly ...
- Gautam
.
- Follow-Ups:
- References:
- new in CGI::Session::Driver::postgredsql nonexisting
- From: IDK
- Re: new in CGI::Session::Driver::postgredsql nonexisting
- From: goodgautam
- Re: new in CGI::Session::Driver::postgredsql nonexisting
- From: IDK
- Re: new in CGI::Session::Driver::postgredsql nonexisting
- From: J. Gleixner
- Re: new in CGI::Session::Driver::postgredsql nonexisting
- From: IDK
- new in CGI::Session::Driver::postgredsql nonexisting
- Prev by Date: Re: "Convert" perl command line to simple script
- Next by Date: Re: Problem with PERL function
- Previous by thread: Re: new in CGI::Session::Driver::postgredsql nonexisting
- Next by thread: Re: new in CGI::Session::Driver::postgredsql nonexisting
- Index(es):
Relevant Pages
|
|