Re: apache2::reload causing 500 errors on return statement

2006-10-23 Thread Michael Greenish
ot; in the top of my module? Is that why I am getting the error on my return OK call? - Original Message From: Philippe M. Chiasson <[EMAIL PROTECTED]> To: Michael Greenish <[EMAIL PROTECTED]> Cc: modperl@perl.apache.org Sent: Friday, October 20, 2006 7:31:13 PM Subject: Re: apach

Re: apache2::reload causing 500 errors on return statement

2006-10-20 Thread Philippe M. Chiasson
Michael Greenish wrote: > I also had to make the follow addition to my config file: > > PerlInitHandler Apache2::Reload > PerlSetVar ReloadAll Off With PerlSetVar ReloadAll Off, Apache2::Reload will _not_ reload anything by default. You have to tell it specifically what to try an

Re: apache2::reload causing 500 errors on return statement

2006-10-18 Thread Fred Moyer
I use it every day and it works great for me. If you could post the relevant section of httpd.conf where you configure Apache2::Reload ( in addition to the lines above), I'm sure we could help you out. I don't have any other entries in my httpd.conf file for Apache2::Reload. As I read the doc

Re: apache2::reload causing 500 errors on return statement

2006-10-18 Thread Michael Greenish
> I also had to make the follow addition to my config file: > >PerlInitHandler Apache2::Reload >PerlSetVar ReloadAll Off > > I never figured out how to check if it was actually picking up changes > on its own. > > For now, I have reverted to not using Apache2::Reload, which is kind

Re: apache2::reload causing 500 errors on return statement

2006-10-18 Thread Michael Greenish
> Do you import OK from Apache2::Const in your script? If you don't > return OK, do you still have that message? > - Perrin I do import the constants: use Apache2::Const qw( OK FORBIDDEN REDIRECT :log ); When I don't return OK, I got an error as well but not from the handler (i.e. no

Re: apache2::reload causing 500 errors on return statement

2006-10-18 Thread Jonathan Vanasco
On Oct 18, 2006, at 3:17 PM, Michael Greenish wrote: For now, I have reverted to not using Apache2::Reload, which is kind of a shame since I am still in the development stages of my application. Just have your handler call another sub, and do everything in there. Apache2::Reload will def

Re: apache2::reload causing 500 errors on return statement

2006-10-18 Thread Fred Moyer
On Wed, 18 Oct 2006, Michael Greenish wrote: I also had to make the follow addition to my config file: PerlInitHandler Apache2::Reload PerlSetVar ReloadAll Off I never figured out how to check if it was actually picking up changes on its own. For now, I have reverted to not us

Re: apache2::reload causing 500 errors on return statement

2006-10-18 Thread Perrin Harkins
On Wed, 2006-10-18 at 07:59 -0700, Michael Greenish wrote: > I just added apache2::reload to config & handlers, classes, packages > for my application. However, everywhere I have "return OK", I get an > error: > > "Not a CODE reference at /http/greanie/IndexHandler.pm on ..." Do you import OK fr

Re: apache2::reload causing 500 errors on return statement

2006-10-18 Thread Michael Greenish
since I am still in the development stages of my application. greanie - Original Message From: Jonathan Vanasco <[EMAIL PROTECTED]> To: modperl mod_perl Sent: Wednesday, October 18, 2006 3:00:43 PM Subject: Re: apache2::reload causing 500 errors on return statement On Oct 18, 20

Re: apache2::reload causing 500 errors on return statement

2006-10-18 Thread Jonathan Vanasco
On Oct 18, 2006, at 10:59 AM, Michael Greenish wrote: Hello, I just added apache2::reload to config & handlers, classes, packages for my application. However, everywhere I have "return OK", I get an error: "Not a CODE reference at /http/greanie/IndexHandler.pm on ..." and request retur

Re: apache2::reload causing 500 errors on return statement

2006-10-18 Thread Tom Schindl
Morad IGMIR schrieb: > Hello, > > Perhaps you could paste us some of the code in IndexHandler.pm, > what does it do ? > is it a PerlResponseHandler ? (just trying to guess by the name) > In which case, wouldn't Apache2::Const::HTTP_OK be more appropriate ? > No. No. No. Handlers always return A

Re: apache2::reload causing 500 errors on return statement

2006-10-18 Thread Morad IGMIR
Hello, Perhaps you could paste us some of the code in IndexHandler.pm, what does it do ? is it a PerlResponseHandler ? (just trying to guess by the name) In which case, wouldn't Apache2::Const::HTTP_OK be more appropriate ? Le 18 oct. 06 à 16:59, Michael Greenish a écrit : Hello, I just add

apache2::reload causing 500 errors on return statement

2006-10-18 Thread Michael Greenish
Hello, I just added apache2::reload to config & handlers, classes, packages for my application. However, everywhere I have "return OK", I get an error: "Not a CODE reference at /http/greanie/IndexHandler.pm on ..." and request returns the page and a 500 error (in browser, I see rendered page