perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Johnson <solut...@gina.net>
Subject Re: Undefined subroutine &Apache::SessionX::Generate::MD5::generate
Date Tue, 11 Feb 2003 20:47:47 GMT
Was the original issue resolved?  The issue with the Undefined
subroutine happens when the MD5 module isn't installed.  Make sure that
Digest::MD5 and MD5 are installed.

Aaron

On Mon, 2003-02-10 at 10:44, Ville Jungman wrote:
> ok. Maybe some with more experience could help...
> 
> ville jungman, ulvilantie 3 b 11, 00350 helsinki, finland
> tel. + 358 - 9 - 225 4482 , http://www.kolumbus.fi/vilmak
> usko Herraan Jeesukseen, niin sinä pelastut. (apt. 16:31)
> 
> 
> 
> 
> >From: "Michiel Muhlenbaumer" <michiel@muhlenbaumer.com>
> >To: "Ville Jungman" <ville_jungman@hotmail.com>
> >Subject: Re: Undefined subroutine 
> >&Apache::SessionX::Generate::MD5::generate
> >Date: Mon, 10 Feb 2003 16:35:47 +0100
> >
> >I have written a script (CMS in embedded perl), so that script needs
> >Mysql.pm... Session handling works: session-id's are appearing in
> >/tmp/sessions etc...
> >
> >I'm running perl-5.8.0: could that be the cause ?
> >----- Original Message -----
> >From: "Ville Jungman" <ville_jungman@hotmail.com>
> >To: <michiel@muhlenbaumer.com>; <embperl@apache.org>
> >Sent: Monday, February 10, 2003 4:19 PM
> >Subject: Re: Undefined subroutine 
> >&Apache::SessionX::Generate::MD5::generate
> >
> >
> > > uh. Is there a reason why You want to use mysql.pm? If You're stuck with
> >it
> > > You could try something else? I think Mysql.pm is needed by session
> >handling
> > > only for storing MD5's and You have configured embperl (in httpd.conf or
> > > perl.conf) to require it.
> > >
> > > ville jungman, ulvilantie 3 b 11, 00350 helsinki, finland
> > > tel. + 358 - 9 - 225 4482 , http://www.kolumbus.fi/vilmak
> > > usko Herraan Jeesukseen, niin sinä pelastut. (apt. 16:31)
> > >
> > >
> > >
> > >
> > > >From: "Michiel Muhlenbaumer" <michiel@muhlenbaumer.com>
> > > >To: "Ville Jungman" <ville_jungman@hotmail.com>
> > > >Subject: Re: Undefined subroutine
> > > >&Apache::SessionX::Generate::MD5::generate
> > > >Date: Mon, 10 Feb 2003 15:04:30 +0100
> > > >
> > > >Ok, I've adjusted SessionX now, but I still get the same error :-(
> >Sessions
> > > >were working with Mysql, so the error isn't at mysql's side...
> > > >
> > > >It looks like the Mysql.pm is corrupted (although I've reinstalled it
> > > >several times) :-(
> > > >
> > > >"[18365]ERR: 24: Error in Perl code: Can't call method "prepare" on an
> > > >undefined value at /usr/lib/perl5/site_perl/5.8.0/i686-linux/Mysql.pm
> >line
> > > >166."
> > > >
> > > >----- Original Message -----
> > > >From: "Ville Jungman" <ville_jungman@hotmail.com>
> > > >To: <michiel@muhlenbaumer.com>
> > > >Sent: Sunday, February 09, 2003 11:05 PM
> > > >Subject: Re: Undefined subroutine
> > > >&Apache::SessionX::Generate::MD5::generate
> > > >
> > > >
> > > > > Hi!
> > > > >
> > > > > Good to hear that You have at least a feel of advance. These 
> >problems
> > > >are
> > > >a
> > > > > cause of using %udat, right?
> > > > >
> > > > > This error shows maybe because you're storing MD5 authentication
via
> > > >Mysql.
> > > > > I think You should prepare mysql for this but in fact i know too

> >less
> >to
> > > > > tell you anything helpful about this.
> > > > >
> > > > > Instead: It might be easier to store session data to files - not
to
> > > >Mysql.
> > > > > If You think it's ok to use files, you should remove configuration

> >for
> > > >Mysql
> > > > > from httpd.conf (or perl.conf).
> > > > >
> > > > > Apache/perl configuration file (/etc/httpd/conf.d/perl.conf) can
be
> >just
> > > >as
> > > > > short as:
> > > > >
> > > > > LoadModule perl_module modules/mod_perl.so
> > > > > LockDirectory=/tmp/session/lock
> > > > > PerlModule Embperl
> > > > >
> > > > > That's all you have to define to make embperl work. If You have
> > > >something
> > > > > other configurations for mod-/embperl they might prevent you to get
> >the
> > > > > session handling working. There might be configuration both in
> > > >httpd.conf
> > > >or
> > > > > perl.conf. (I suppose LockDirectory=/tmp/sessions/lock is the 
> >default
> > > >anyway
> > > > > - so You might be able to comment it out if You want)
> > > > >
> > > > > ville jungman, ulvilantie 3 b 11, 00350 helsinki, finland
> > > > > tel. + 358 - 9 - 225 4482 , http://www.kolumbus.fi/vilmak
> > > > > usko Herraan Jeesukseen, niin sinä pelastut. (apt. 16:31)
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > >From: "Michiel Muhlenbaumer" <michiel@muhlenbaumer.com>
> > > > > >To: "Ville Jungman" <ville_jungman@hotmail.com>
> > > > > >Subject: Re: Undefined subroutine
> > > > > >&Apache::SessionX::Generate::MD5::generate
> > > > > >Date: Sun, 9 Feb 2003 13:32:26 +0100
> > > > > >
> > > > > >Thx, that's one stop ahead :-)
> > > > > >
> > > > > >[16703]ERR: 24: Error in Perl code: Can't call method "prepare"
on 
> >an
> > > > > >undefined value at 
> >/usr/lib/perl5/site_perl/5.8.0/i686-linux/Mysql.pm
> > > >line
> > > > > >166.
> > > > > >
> > > > > >Next error :-(
> > > > > >
> > > > > >----- Original Message -----
> > > > > >From: "Ville Jungman" <ville_jungman@hotmail.com>
> > > > > >To: <michiel@muhlenbaumer.com>; <embperl@perl.apache.org>
> > > > > >Sent: Sunday, February 09, 2003 1:26 PM
> > > > > >Subject: Re: Undefined subroutine
> > > > > >&Apache::SessionX::Generate::MD5::generate
> > > > > >
> > > > > >
> > > > > > > hi.
> > > > > > >
> > > > > > > Perhaps the lock- or session-file couldn't be created because
> >lock-
> > > >or
> > > > > > > sessions-directory didn't exist. (unless you aren't using
> > > >MD5-storing
> > > > > >via
> > > > > > > File Semaphory - which is default, i suppose)
> > > > > > >
> > > > > > > If this is the case You should add them (mkdir /var/lock/;mkdir
> > > > > > > /tmp/sessions/;chmod 777 /var/lock/;chmod 777 /tmp/sessions/;)

> >and
> > > >it
> > > > > >should
> > > > > > > begin work. (if it works it's wise to restrict access to
these
> > > > > >directories).
> > > > > > >
> > > > > > > (Also I changed SessionX.pm a little bit, but I'm not sure
if it
> > > >helped
> > > > > > > session handling to work or not)
> > > > > > >
> > > > > > > Hope this helps You.
> > > > > > >
> > > > > > > ville jungman, ulvilantie 3 b 11, 00350 helsinki, finland
> > > > > > > tel. + 358 - 9 - 225 4482 , http://www.kolumbus.fi/vilmak
> > > > > > > usko Herraan Jeesukseen, niin sinä pelastut. (apt. 16:31)
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > >From: "Michiel Muhlenbaumer" <michiel@muhlenbaumer.com>
> > > > > > > >To: <embperl@perl.apache.org>
> > > > > > > >Subject: Undefined subroutine
> > > > > >&Apache::SessionX::Generate::MD5::generate
> > > > > > > >Date: Sun, 9 Feb 2003 09:34:54 +0100
> > > > > > > >
> > > > > > > >I'm trying to install Embperl, but I walk into this:
> > > > > > > >
> > > > > > > >[12940]ERR: 24: Error in Perl code: Undefined subroutine
> > > > > > > >&Apache::SessionX::Generate::MD5::generate called
at
> > > > > > > >/usr/lib/perl5/site_perl/5.8.0/Apache/SessionX.pm line
174.
> > > > > > > >
> > > > > > > >Config:
> > > > > > > >  - perl-5.8.0
> > > > > > > >  - Apache-SessionX-2.00b3
> > > > > > > >  - mod_perl-1.27
> > > > > > > >  - Embperl-2.0b8
> > > > > > > >  - Digest::MD5
> > > > > > > >  - MD5
> > > > > > > >  - and some Mysql libs for perl
> > > > > > > >
> > > > > > > >I changed some lines in MD5.pm as desribed here:
> > > > > > > >http://www.ecos.de/~mailarc/embperl/2002-06/msg00066.html,
but
> >that
> > > > > >doesn't
> > > > > > > >help for me...
> > > > > > > >
> > > > > > > >Who knows how to fix it?
> > > > > > > >
> > > > > > > >Thanks in advance,
> > > > > > > >
> > > > > > > >Michiel
> > > > > > >
> > > > > > >
> > > > > > > 
> >_________________________________________________________________
> > > > > > > MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
> > > > > > > http://join.msn.com/?page=features/virus
> > > > > > >
> > > > > > >
> > > > > > >
> > > >---------------------------------------------------------------------
> > > > > > > To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> > > > > > > For additional commands, e-mail: embperl-help@perl.apache.org
> > > > > > >
> > > > > > >
> > > > > > >
> > > > >
> > > > >
> > > > > _________________________________________________________________
> > > > > MSN 8 with e-mail virus protection service: 2 months FREE*
> > > > > http://join.msn.com/?page=features/virus
> > > > >
> > > > >
> > > > >
> > >
> > >
> > > _________________________________________________________________
> > > Add photos to your messages with MSN 8. Get 2 months FREE*.
> > > http://join.msn.com/?page=features/featuredemail
> > >
> > >
> > >
> 
> 
> _________________________________________________________________
> Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
> http://join.msn.com/?page=features/junkmail
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message