Re: new in CGI::Session::Driver::postgredsql nonexisting



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.

Read the docs for DBI's connect method, your data source isn't correct,
just as the error is telling you.

I've been debugging that exact error all day, but only recently got
some
progress and found that session.pm was buggy...

I can access other databases with the same DBI handle.

If I replace all the session code with:
$cgi = new CGI;
print header();

Everything works fine, but my goal is to use sessions.

.



Relevant Pages

  • Re: Datagrid larger numbered pages not working
    ... Stupid coding issue... ... debugging at one point and forgot to remove it. ... > Could you show more your code, such as HTML, data source ... >>> Elton Wang ...
    (microsoft.public.dotnet.framework.aspnet.datagridcontrol)
  • Re: Get parameters from URL using CGI
    ... import cgi ... import cgitb; cgitb.enable# Optional; for debugging only ... abcd wrote: ...
    (comp.lang.python)
  • Re: how to get select text in a form?
    ... I use CGI, HTML and python to ... you can use the same data source as you used to generate ... your form to work out what value corresponds to what text. ... Prev by Date: ...
    (alt.html)