Thread Can't locate object method "ctx" (2 answers)
Opened by condor at 2007-11-23 22:26

condor
 2007-11-23 22:26
#102946 #102946
User since
2007-11-23
1 Artikel
BenutzerIn
[default_avatar]
Hallo Leute,

ich teste gerade Apache2::Filter doch leider komme ich nicht sehr weit weil perl die Methode ctx nicht findet.
Doch in allen Perl Beispeilen die ich finde ist wird diese Methode genutzt. Kann ir wer helfen?
Danke - Bernd

Fehler im error.log von Apache2:
__
Can't locate object method "ctx" via package "Apache2::RequestRec" at /var/www/portal/Portal/MainFilter.pm line 11.\n
__
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package Portal::MainFilter;
use strict;
use warnings;
use Apache2::Filter ();
use Apache2::RequestRec ();
use Apache2::RequestIO ();
use Apache2::Const -compile => qw(OK);

sub handler {
 my $filter = shift;
 my $ctx = $filter->ctx; 
 
# unless ($filter->ctx) {
#               init($filter);
#       $filter->ctx(1);
#    }
    
 return Apache2::Const::OK;
}
1;

View full thread Can't locate object method "ctx"