[rt-devel] problem with Mason and script_name

Ruslan U. Zakirov cubic at acronis.ru
Tue Nov 18 08:47:07 EST 2003


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 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
> 
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?




More information about the Rt-devel mailing list