Re: mp2 + DB random errors

2004-02-14 Thread Michael L. Artz
It doesn't sound like a mp2 core problem. Have you tried enabling Apache::DBI's debug tracing? Yup, did that. Seems to be something 'wrong' with DBI in that the handle becomes invalid after a bad execute happens. I would think that Apache::DBI would then ping the DB and get an error and crea

Re: and

2004-02-14 Thread Stefan Cars
Here is my code: $s->add_config(''); $s->add_config('ServerAdmin [EMAIL PROTECTED]'); $s->add_config('ServerName www.xxx.xxx'); $s->add_config('DocumentRoot /xxx/xxx/xxx'); $s->add_config('ErrorLog logs/xxx-error_log $s->add_config(''); On Sat, 14 Feb 2004, Stas Bekman wrote: > Stefan Cars wro

Re: and

2004-02-14 Thread Stas Bekman
Stefan Cars wrote: Hi! Of course I understand that I need to write the whole container, this was just en example (the ... was to illustrate that there was more information there). I've added a container that looks exactly like one that works if I do it directly in the httpd.conf (outside the ). I

Re: mp2 + DB random errors

2004-02-14 Thread Stas Bekman
Michael L. Artz wrote: Not quite sure where to start asking this question, but it might involve mp2/Apache::DBI, so I thought this might be a good start. I have built a web application using mp2 sitting on top of a postgres DB. I still am working out the kinks with the system, but I am having

Re: and

2004-02-14 Thread Stas Bekman
Stefan Cars wrote: Hi! I'm having trouble getting doing some perl configuration within in httpd.conf with Apache 2 and mod_perl 2 (both latest version as of today). Using this do not work: use Apache::DBI; use Snowfall::Database3; use Apache::PerlSections (); use Apache::ServerUtil (); use Apache

Re: and

2004-02-14 Thread Stefan Cars
Hi! Of course I understand that I need to write the whole container, this was just en example (the ... was to illustrate that there was more information there). I've added a container that looks exactly like one that works if I do it directly in the httpd.conf (outside the ). Regarding the Tie::I

mp2 + DB random errors

2004-02-14 Thread Michael L. Artz
Not quite sure where to start asking this question, but it might involve mp2/Apache::DBI, so I thought this might be a good start. I have built a web application using mp2 sitting on top of a postgres DB. I still am working out the kinks with the system, but I am having an interesting problem.

and

2004-02-14 Thread Stefan Cars
Hi! I'm having trouble getting doing some perl configuration within in httpd.conf with Apache 2 and mod_perl 2 (both latest version as of today). Using this do not work: use Apache::DBI; use Snowfall::Database3; use Apache::PerlSections (); use Apache::ServerUtil (); use Apache::Server; my $s =

Re: directive and ps -ef output

2004-02-14 Thread Stas Bekman
Mariano Absatz wrote: Well... it seems cvs has departed a bit too much from 1.99-12... I couldn't apply the patch automatically, it had indentation problems, besides the section code being about 60 lines before the intended place... Anyway, I applied it manually, and it compiled, but the resul

Re: [OT] Re: Shared Module Vars, Missing Object Methods?

2004-02-14 Thread Ged Haywood
Hi there, On Fri, 13 Feb 2004, Garth Webb wrote: > So what is a good alternative to Apache::Registry? My impression was > that this is the thing to use unless you want the extra functionality of > something like HTML::Mason. I'm not sure I understand the question. Apache::Registry offers a mea

Re: Shared Module Vars, Missing Object Methods?

2004-02-14 Thread Ged Haywood
continued... On Fri, 13 Feb 2004, Morbus Iff wrote: > I forgot to ask the most obvious: > > * You're starting a script. It needs to > run under CGI and mod_perl. You'd have to explain that bit to me first. > * You're starting a new project under mod_perl. > What would your startin

Re: Shared Module Vars, Missing Object Methods?

2004-02-14 Thread Ged Haywood
Hello again, I see Perrin's picked up on this thread too, so some of my replies might be superfluous now but I didn't want to just abandon it. On Fri, 13 Feb 2004, Morbus Iff wrote: > >Code handlers, get rid of globals and closures, run 'httpd -X'. > > Could you tell me more what you mean by "

Re: Shared Module Vars, Missing Object Methods?

2004-02-14 Thread Morbus Iff
>return undef unless LibDB::DB->supported($user_dbtype); > >That would explain why it can't call connect() on the object being returned. Hmm. The actual error I'm getting, though, DOES mention LibDB::DB::MySQL - so LibDB::DB seems to be returning the proper object: Program fragment delivered err

Re: Shared Module Vars, Missing Object Methods?

2004-02-14 Thread Perrin Harkins
Morbus Iff wrote: How are other people handling user settings? For instance, LibDB::Settings determines a bunch of stuff for each and every request, depending on the user environment (script being run, the browser's AcceptLanguage, the user's chosen template, etc.). Since I want those values to be