Problem with Mason and script_name

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@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 :frowning:

Greetings and TIA, Matthias

They said the same thing about Urkle; that little snot. Boy I’d like
to smack that kid.

	-- Homer Simpson
	   Bart Gets Famous

Matthias F. Brandstetter wrote:

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@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 :frowning:

Greetings and TIA, Matthias

I think you should try update Mason or CGI.
I have scipt_name() func defined only in CGI.pm
And don’t have call to script_name() in Mason subdir at all.
What versions do you have?

-----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@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 :frowning:

Greetings and TIA, Matthias


They said the same thing about Urkle; that little snot. Boy I’d like
to smack that kid.

  -- Homer Simpson
     Bart Gets Famous

rt-devel mailing list
rt-devel@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-devel


Benjamin Boksa

b.boksa@sidebysite.de
PGP: http://www.sidebysite.de/pgp/b.boksa.asc

side by site GmbH & Co. KG
Druckgestaltung & Webdesign

Barbarastr. 3-9 (Block 6)
D-50735 Koeln

Fon: +49 221 2790964
Fax: +49 221 2790965

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)

iD8DBQE/uiO1R5U9XkJXZKwRAkLvAJ4noW6AUUfDNd+SgeE5tNEG/bWZNgCfQBn6
Wn0DVlGBAC/Jtu20e5gTr0g=
=4Mm2
-----END PGP SIGNATURE-----

---------- quoting Benjamin Boksa ----------

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

Yep, that was it. First I tried it with 1.24, now I use 1.23 which works
well.

Thanks! Greets, Matthias

Keep brain from freezing.

	-- Homer Simpson
	   Simpson and Delilah

Matthias F. Brandstetter wrote:

---------- quoting Benjamin Boksa ----------

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

Yep, that was it. First I tried it with 1.24, now I use 1.23 which works
well.

Thanks! Greets, Matthias

I have 1.23 and also well.
May be you can send bug report with error explanations to Mason folks
about 1.24?
Best regards. Ruslan.

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@lists.fsck.com
[mailto:rt-devel-bounces@lists.fsck.com] För Benjamin Boksa
Skickat: den 18 november 2003 14:51
Till: Matthias F. Brandstetter
Kopia: rt-devel@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: