You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Aare Vesi <aa...@myrien.com> on 2006/01/31 22:52:30 UTC
possible mp2 related bug under embperl 2.1.0
Hi,
While using Embperl 2.1.0 under mod_perl 2.0.1 following error occurs:
code:
used under ModPerl::Registry.
###
use Apache2::RequestRec;
use Apache2::RequestUtil;
use Embperl;
$r = Apache2::RequestUtil->request;
$session = Embperl::Req::SetupSession ($r);
$test = $session -> {test};
###
Error message:
[Tue Jan 31 22:57:46 2006] [error] Can't locate object method header_in"
via package "Apache2::RequestRec" at
/usr/local/lib/perl/5.8.7/Embperl.pm line 355.\n
Problem seems to be with
$req_rec->header_in('Cookie')
as header_in(), header_out() and err_header_out() are not available in
mod_perl 2.0.
http://apache.perl.org/docs/2.0/user/porting/compat.html#C__r_E_gt_header_in_
or is there some bug in my coding?
TIA,
Aare
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
RE: possible mp2 related bug under embperl 2.1.0
Posted by Gerald Richter <ri...@ecos.de>.
> >
> > Could you try if a
> >
> > use Apache2::compat ;
> >
> > Fixes the problem?
>
> thanks. problem solved.
>
Ok, then I will put a similar solution in Embperl itself
Gerald
** Virus checked by BB-5000 Mailfilter **
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: possible mp2 related bug under embperl 2.1.0
Posted by Aare Vesi <aa...@myrien.com>.
Gerald Richter wrote:
> Hi,
>> Problem seems to be with
>> $req_rec->header_in('Cookie')
>>
>> as header_in(), header_out() and err_header_out() are not
>> available in
>> mod_perl 2.0.
>>
>> http://apache.perl.org/docs/2.0/user/porting/compat.html#C__r_
>> E_gt_header_in_
>>
>> or is there some bug in my coding?
>>
>
> Could you try if a
>
> use Apache2::compat ;
>
> Fixes the problem?
thanks. problem solved.
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
RE: possible mp2 related bug under embperl 2.1.0
Posted by Gerald Richter <ri...@ecos.de>.
Hi,
>
> Problem seems to be with
> $req_rec->header_in('Cookie')
>
> as header_in(), header_out() and err_header_out() are not
> available in
> mod_perl 2.0.
>
> http://apache.perl.org/docs/2.0/user/porting/compat.html#C__r_
> E_gt_header_in_
>
> or is there some bug in my coding?
>
Could you try if a
use Apache2::compat ;
Fixes the problem?
Gerald
** Virus checked by BB-5000 Mailfilter **
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org