Re: PerlModule Error

2001-08-24 Thread Rasoul Hajikhani

Stas Bekman wrote:
> 
> On Thu, 23 Aug 2001, Rasoul Hajikhani wrote:
> 
> > ___cliff rayman___ wrote:
> > >
> > > and what do the error logs say?
> > >
> > > Rasoul Hajikhani wrote:
> > >
> > > > I know this question will sound primitive to most of you, however, I
> > > > have this nagging error which won't go away.
> > > > In my httpsd.conf, I have declared "PerlModule
> > > > MY::Perl::Control::WebAccess" which I know is where it is supposed to
> > > > be. My @INC does not include the path to that directory, however, in my
> > > > startup.pl I have that directory as my
> > > > "use lib qw(...);". I have tried declaring:
> > > > "use MY::Perl::Control::WebAccess;" in my startup.pl, with the same
> > > > result: apache won't start.
> > > > I mean what's up? I have another module sitting next to my
> > > > MY::Perl::Control::WebAccess and in my startup.pl I have:
> > > > "use MY::Perl::Control::Cookie_Check;" and all is fine and dandy...
> > > > apache runs without a hitch. I tried "perl5lib (all capital)" in my
> > > > .cshrc, again nothing. Now I come to you learned people in the hope of
> > > > salvation... Any ideas people?
> > > > -r
> > >
> > > --
> > > ___cliff [EMAIL PROTECTED]http://www.genwax.com/
> >
> > Here it is:
> >
> > Undefined subroutine &My::Perl::Control::WebAccess::handler called.
> 
> That's not the error that we want to see. The error you've listed can
> happen when you actually generate some request. But that's after >Apache

You are right. Apache does not even start.

> has started. PerlModule on the other hand merely loads the file similar to
> use. As you say use() doesn't work for you too. Are you sure you can
> perform:
> 
> % perl -c MY/Perl/Control/WebAccess.pm

Yes, I get "WebAccess.pm syntax OK" result.

> 
> remove the error_log file before you start a new test and see what
> happens.
> 
> If you still fail to find the problem. Take your code and shrink it to
> smallest possible size, while it still imposes a problem for you and
> together with the configuration section for this module send it to the
> list. Remember, we want a simple test that we can easily understand and
> reproduce the problem with.
> 
> Thanks.
> 
> _
> Stas Bekman  JAm_pH --   Just Another mod_perl Hacker
> http://stason.org/   mod_perl Guide  http://perl.apache.org/guide
> mailto:[EMAIL PROTECTED]   http://localhost/  http://eXtropia.com/
> http://singlesheaven.com http://perl.apache.org http://perlmonth.com/



Re: PerlModule Error

2001-08-24 Thread Rasoul Hajikhani

Ken Williams wrote:
> 
> [EMAIL PROTECTED] (Rasoul Hajikhani) wrote:
> >> > "use lib qw(...);". I have tried declaring:
> >> > "use MY::Perl::Control::WebAccess;" in my startup.pl, with the same
> >
> >Here it is:
> >
> >Undefined subroutine &My::Perl::Control::WebAccess::handler called.
> 
> Looks like you need to check the capitalization on 'MY'.
I chnaged the name to MIS_APPS::RHS::Control::WebAccess.pm but still get
the same error.
> 
> By the way, using the MY:: namespace isn't the greatest idea in the
> first place, because the MY:: namespace is used by MakeMaker during
> modules' installation process.  I'm sure it's not causing a problem
> here, but it can at least create confusion in the mind.
> 
You are right, this did not solve the problem.
-r
>   ------
>   Ken Williams Last Bastion of Euclidity
>   [EMAIL PROTECTED]The Math Forum



Re: PerlModule Error

2001-08-23 Thread Ken Williams

[EMAIL PROTECTED] (Rasoul Hajikhani) wrote:
>> > "use lib qw(...);". I have tried declaring:
>> > "use MY::Perl::Control::WebAccess;" in my startup.pl, with the same
>
>Here it is:
>
>Undefined subroutine &My::Perl::Control::WebAccess::handler called.

Looks like you need to check the capitalization on 'MY'.

By the way, using the MY:: namespace isn't the greatest idea in the
first place, because the MY:: namespace is used by MakeMaker during
modules' installation process.  I'm sure it's not causing a problem
here, but it can at least create confusion in the mind.


  ------
  Ken Williams Last Bastion of Euclidity
  [EMAIL PROTECTED]The Math Forum



Re: PerlModule Error

2001-08-23 Thread Stas Bekman

On Thu, 23 Aug 2001, Rasoul Hajikhani wrote:

> ___cliff rayman___ wrote:
> >
> > and what do the error logs say?
> >
> > Rasoul Hajikhani wrote:
> >
> > > I know this question will sound primitive to most of you, however, I
> > > have this nagging error which won't go away.
> > > In my httpsd.conf, I have declared "PerlModule
> > > MY::Perl::Control::WebAccess" which I know is where it is supposed to
> > > be. My @INC does not include the path to that directory, however, in my
> > > startup.pl I have that directory as my
> > > "use lib qw(...);". I have tried declaring:
> > > "use MY::Perl::Control::WebAccess;" in my startup.pl, with the same
> > > result: apache won't start.
> > > I mean what's up? I have another module sitting next to my
> > > MY::Perl::Control::WebAccess and in my startup.pl I have:
> > > "use MY::Perl::Control::Cookie_Check;" and all is fine and dandy...
> > > apache runs without a hitch. I tried "perl5lib (all capital)" in my
> > > .cshrc, again nothing. Now I come to you learned people in the hope of
> > > salvation... Any ideas people?
> > > -r
> >
> > --
> > ___cliff [EMAIL PROTECTED]http://www.genwax.com/
>
> Here it is:
>
> Undefined subroutine &My::Perl::Control::WebAccess::handler called.

That's not the error that we want to see. The error you've listed can
happen when you actually generate some request. But that's after Apache
has started. PerlModule on the other hand merely loads the file similar to
use. As you say use() doesn't work for you too. Are you sure you can
perform:

% perl -c MY/Perl/Control/WebAccess.pm

remove the error_log file before you start a new test and see what
happens.

If you still fail to find the problem. Take your code and shrink it to
smallest possible size, while it still imposes a problem for you and
together with the configuration section for this module send it to the
list. Remember, we want a simple test that we can easily understand and
reproduce the problem with.

Thanks.

_
Stas Bekman  JAm_pH --   Just Another mod_perl Hacker
http://stason.org/   mod_perl Guide  http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]   http://localhost/  http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/





Re: PerlModule Error

2001-08-23 Thread Rasoul Hajikhani

___cliff rayman___ wrote:
> 
> and what do the error logs say?
> 
> Rasoul Hajikhani wrote:
> 
> > I know this question will sound primitive to most of you, however, I
> > have this nagging error which won't go away.
> > In my httpsd.conf, I have declared "PerlModule
> > MY::Perl::Control::WebAccess" which I know is where it is supposed to
> > be. My @INC does not include the path to that directory, however, in my
> > startup.pl I have that directory as my
> > "use lib qw(...);". I have tried declaring:
> > "use MY::Perl::Control::WebAccess;" in my startup.pl, with the same
> > result: apache won't start.
> > I mean what's up? I have another module sitting next to my
> > MY::Perl::Control::WebAccess and in my startup.pl I have:
> > "use MY::Perl::Control::Cookie_Check;" and all is fine and dandy...
> > apache runs without a hitch. I tried "perl5lib (all capital)" in my
> > .cshrc, again nothing. Now I come to you learned people in the hope of
> > salvation... Any ideas people?
> > -r
> 
> --
> ___cliff [EMAIL PROTECTED]http://www.genwax.com/

Here it is:

Undefined subroutine &My::Perl::Control::WebAccess::handler called.

-r



Re: PerlModule Error

2001-08-23 Thread ___cliff rayman___

and what do the error logs say?

Rasoul Hajikhani wrote:

> I know this question will sound primitive to most of you, however, I
> have this nagging error which won't go away.
> In my httpsd.conf, I have declared "PerlModule
> MY::Perl::Control::WebAccess" which I know is where it is supposed to
> be. My @INC does not include the path to that directory, however, in my
> startup.pl I have that directory as my
> "use lib qw(...);". I have tried declaring:
> "use MY::Perl::Control::WebAccess;" in my startup.pl, with the same
> result: apache won't start.
> I mean what's up? I have another module sitting next to my
> MY::Perl::Control::WebAccess and in my startup.pl I have:
> "use MY::Perl::Control::Cookie_Check;" and all is fine and dandy...
> apache runs without a hitch. I tried "perl5lib (all capital)" in my
> .cshrc, again nothing. Now I come to you learned people in the hope of
> salvation... Any ideas people?
> -r

--
___cliff [EMAIL PROTECTED]http://www.genwax.com/