You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Alvar Freude <al...@merz-akademie.de> on 2000/10/24 05:30:15 UTC

Session error

Hi,

I updated Apache::Session from 1.0x to 1.53, changed the config files
and now get errors:

Can't locate object method "close" via package
"Apache::Session::Store::MySQL" at
/usr/local/lib/perl5/site_perl/5.6.0/i686-linux/HTML/Embperl/Session.pm
line 370.


I am using embperl 1.3b6 (I hope so ;) ) on mod_perl/1.23

i HTML::Embperl sais:

   INST_VERSION 49.46.51.98.53


It seems that there some diffrent versions have a conflict?


My start-up.pl contains:

BEGIN
    {
    $ENV{EMBPERL_SESSION_CLASSES} = "MySQL MySQL";
    $ENV{EMBPERL_SESSION_ARGS}    = "DataSource=dbi:mysql:session 
                                     UserName=session 
                                     Password=i-dont-tell-u 
                                     LockDataSource=dbi:mysql:session
                                     LockUserName=session
                                     LockPassword=who-knows?";
    };
use HTML::Embperl;



With a different httpd I also use    

    $ENV{EMBPERL_COOKIE_EXPIRES}   = "+1y";


and this also doesn't work.


So my idea was: there are old HTML::Embperl-Files / Part of the module?

But HTML::Embperl::Session is also up to date and line 370 is part of
the 1.5x-Session handling code ...


I installed all with the CPAN-Module.


any hints?


Thanx and Ciao
  Alvar

-- 
Alvar C.H. Freude  |  alvar.freude@merz-akademie.de

    Demo: http://www.online-demonstration.org/  |  Mach mit!
Blast-DE: http://www.assoziations-blaster.de/   |  Blast-Dich-Fit
Blast-EN: http://www.a-blast.org/               |  Blast/english

Re: Session error

Posted by Alvar Freude <al...@merz-akademie.de>.
Hi,

> i noticed that you have to load Apache::Session before HTML::Embperl,
> else it doesn't find the right session stuff (Embperl.pm doesn't
> require Apache::Session itself).

yes, i use it in start-up.pl before Embperl.pm, so this has nothing todo
with this problem.


Ciao
  Alvar

-- 
Alvar C.H. Freude  |  alvar.freude@merz-akademie.de

    Demo: http://www.online-demonstration.org/   | Mach mit!
Blast-DE: http://www.assoziations-blaster.de/    | Blast-Dich-Fit
Blast-EN: http://www.a-blast.org/                | Blast/english

Re: Session error

Posted by Angus Lees <gu...@switchonline.com.au>.
i noticed that you have to load Apache::Session before HTML::Embperl,
else it doesn't find the right session stuff (Embperl.pm doesn't
require Apache::Session itself).

i don't remember what the symptoms turned out to be, so this mightn't
have anything to do with your problem ;)
(its more of a bug report)

-- 
 - Gus

Re: Session error

Posted by Gerald Richter <ri...@ecos.de>.
Hi,

>
> uups, sorry -- I don't set any special, my EMBPERL_OPTIONS are 16400
> (optRedirectStdout, optRawInput). I also   use NOT Carp etc, but perhaps
> some of the Apache::Registry-Scripts are using them; nevertheless this
> should not disturb embperl, I guess.
>

No, this doesn't have any influcence on Embperl. Thanks for your feedback I
have put it on the TODO list to track it down further before the next
release

Gerald



Re: Session error

Posted by Alvar Freude <al...@merz-akademie.de>.
Hi,

> Do you mean Apache errormessages i.e. in httpd.conf or have you some special
> settings in EMBPERL_OPTIONS ?

uups, sorry -- I don't set any special, my EMBPERL_OPTIONS are 16400
(optRedirectStdout, optRawInput). I also   use NOT Carp etc, but perhaps
some of the Apache::Registry-Scripts are using them; nevertheless this
should not disturb embperl, I guess.


Ciao
  Alvar

-- 
Alvar C.H. Freude  |  alvar.freude@merz-akademie.de

    Demo: http://www.online-demonstration.org/   | Mach mit!
Blast-DE: http://www.assoziations-blaster.de/    | Blast-Dich-Fit
Blast-EN: http://www.a-blast.org/                | Blast/english

Re: Session error

Posted by Gerald Richter <ri...@ecos.de>.
>
> perhaps the error message was sent out to the browser, because I
> switched full error messages on?
>

Do you mean Apache errormessages i.e. in httpd.conf or have you some special
settings in EMBPERL_OPTIONS ?

Gerald



Re: Session error

Posted by Alvar Freude <al...@merz-akademie.de>.
Hi,

> The message is correct, but you shouldn't see it because it is wrapped in an
> eval and the errormessage is set the nothing in the next line.
> 
> The line is a workaround for a problem with Apache::Session::Store::File.
> 
> Where do you see this message? In only in your error log or do you get a 500
> Internal Server error page?

The error appeared in the HTML after the content is sent, including
"normal" Server-Error message.

 
> I also use Mysql for session handling and don't get this error. You may try
> to delete the line 370 in HTML::Embperl::Session to solve the problem, but
> it would like to understand the reason.

I commented it out, now all works perfect, thanx!

perhaps the error message was sent out to the browser, because I
switched full error messages on?


Ciao
   Alvar

-- 
Alvar C.H. Freude  |  alvar.freude@merz-akademie.de

    Demo: http://www.online-demonstration.org/   | Mach mit!
Blast-DE: http://www.assoziations-blaster.de/    | Blast-Dich-Fit
Blast-EN: http://www.a-blast.org/                | Blast/english

Re: Session error

Posted by Gerald Richter <ri...@ecos.de>.
Hi,
>
> I updated Apache::Session from 1.0x to 1.53, changed the config files
> and now get errors:
>
> Can't locate object method "close" via package
> "Apache::Session::Store::MySQL" at
> /usr/local/lib/perl5/site_perl/5.6.0/i686-linux/HTML/Embperl/Session.pm
> line 370.
>

The message is correct, but you shouldn't see it because it is wrapped in an
eval and the errormessage is set the nothing in the next line.

The line is a workaround for a problem with Apache::Session::Store::File.

Where do you see this message? In only in your error log or do you get a 500
Internal Server error page?

I also use Mysql for session handling and don't get this error. You may try
to delete the line 370 in HTML::Embperl::Session to solve the problem, but
it would like to understand the reason.

Gerald

P.S. As Angus wrote you should load Apache::Session before HTML::Embperl,
otherwise Embperl cannot determinate the correct version.

-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925151
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------