SV: [rt-devel] problem with Mason and script_name

Andreas Falk anfa at edu.nykoping.se
Wed Nov 19 12:55:49 EST 2003


Hi a had the same problem..

It seems that in 1.24 this is missing the {} around script_name and
path_info?

>From 1.23
shift->{uri} ||= $ENV{SCRIPT_NAME} . $ENV{PATH_INFO} || ''; 

And from 1.24
$self->{uri} ||= $self->script_name . $self->path_info || '';

Don't know if this is the only thing but that worked for me..
But Im downgrading anyway..

// Falk
// BuIT

-----Ursprungligt meddelande-----
Från: rt-devel-bounces at lists.fsck.com
[mailto:rt-devel-bounces at lists.fsck.com] För Benjamin Boksa
Skickat: den 18 november 2003 14:51
Till: Matthias F. Brandstetter
Kopia: rt-devel at lists.fsck.com
Ämne: Re: [rt-devel] problem with Mason and script_name


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Matthias,

I had the same problem and solved it by downgrading Mason to version 
1.20.

Regards,

Benne

Am Dienstag, 18.11.03, um 14:27 Uhr (Europe/Paris) schrieb Matthias F. 
Brandstetter:

> Hi all,
>
> I am at installing RT3 and have a little problem with HTML::Mason.
> After
> setting everything up, I get the following error when I try to access 
> RT3:
>
> Can't locate object method "script_name" via package 
> "HTML::Mason::FakeApache" at 
> /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/FakeApache.pm line 73.
>
> I looked at this FakeApache.pm line 73, there is indeed this line:
>
> $self->{uri} ||= $self->script_name . $self->path_info || '';
>
> Since the error msg says that there is no object method for
> "script_name",
> I searched for it:
>
> root at mx2:/usr/lib/perl5/site_perl/5.8.0/HTML# grep -ir 'script_name' *
> Mason/FakeApache.pm: $self->{uri} ||= $self->script_name .
> $self->path_info
> || '';
>
> (outout is one line)
> So, it seems that there is really no object method for this
> "script_name".
> Good, and now? Could somebdody tell me what to do now? I have no idea
> where to get this "script_name" from :(
>
> Greetings and TIA, Matthias




More information about the Rt-devel mailing list