Mason 1.1x?

Help,

OK, after countless days rebuilding my OSX box I have Perl 5.8,
mod_perl, PHP and FastCGI playing together. Reinstalling RT I ran
make fixdeps. The fixdeps process seemed to go smoother than I can
ever remember. There were a few glitches, but now I find that RT
won’t even display the login page, apparently because of Mason 1.1x.
There is nothing in the README about it from what I can remember, but
searching the RT-dev list online it looks like it’s a problem. Now
since this was simply the default CPAN install running fixdeps I’m
not sure how I would have avoided this. Can anyone tell me the best
way to “downgrade” Mason? I am trying to install rt-2-1-30 by the way
on OSX.1.5 wkstn. From the RT Changelog it looks like work has begun
on Mason 1.1 some time in April. The failure mode is as follows:

error: Error during compilation of
/Volumes/UFS_ELORET/htdocs/rt2/WebRT/html/index.html:
Global symbol “%session” requires explicit package name at
/Volumes/UFS_ELORET/htdocs/rt2/WebRT/html/index.html line 23. Global
symbol “%session” requires explicit package name at
/Volumes/UFS_ELORET/htdocs/rt2/WebRT/html/index.html line 1. Global
symbol “%session” requires explicit package name at
/Volumes/UFS_ELORET/htdocs/rt2/WebRT/html/index.html line 15.
context:
1: <& /Elements/Header, Title=>loc(“Start page”), Refresh =>
$session{‘home_refresh_interval’} &>
2: <& /Elements/Tabs, current_toptab => ‘’ &>
3:


4:
5:
19:
20:


11:

12: <& /Elements/Quicksearch &>
13:

14:
15: <& /Elements/Refresh, Name => ‘HomeRefreshInterval’, Default
=> $session {‘home_refresh_interval’} &>
16:

17:
18:

21: <%init>
22: if ($ARGS{‘HomeRefreshInterval’}) {
23: $session{‘home_refresh_interval’} = $ARGS{‘HomeRefreshInterval’};
24: }
25: </%init>
26:
code stack: /usr/local/perl/lib/HTML/Mason/Interp.pm:596
/usr/local/perl/lib/HTML/Mason/Interp.pm:271
/usr/local/perl/lib/HTML/Mason/Request.pm:174
/usr/local/perl/lib/HTML/Mason/Request.pm:138
/usr/local/perl/lib/HTML/Mason/ApacheHandler.pm:59
/usr/local/perl/lib/Class/Container.pm:194
/usr/local/perl/lib/Class/Container.pm:257
/usr/local/perl/lib/HTML/Mason/Interp.pm:170
/usr/local/perl/lib/HTML/Mason/ApacheHandler.pm:777
/usr/local/perl/lib/HTML/Mason/ApacheHandler.pm:713
(eval 31):5
/dev/null:0

Mark Moorcroft
Macintosh Systems Administrator
ELORET Corp.
NASA Ames Research Center
Moffet Field, CA 94035-1000
M/S 234-1
Phone: 650-604-4784
Fax: 650-604-0487
mailto:mmoorcroft@mail.arc.nasa.gov
http://www.eloret.com/

OK, after countless days rebuilding my OSX box I have Perl 5.8,
mod_perl, PHP and FastCGI playing together. Reinstalling RT I ran
make fixdeps. The fixdeps process seemed to go smoother than I can
ever remember. There were a few glitches, but now I find that RT
won’t even display the login page, apparently because of Mason 1.1x.
There is nothing in the README about it from what I can remember, but
searching the RT-dev list online it looks like it’s a problem. Now
since this was simply the default CPAN install running fixdeps I’m
not sure how I would have avoided this. Can anyone tell me the best
way to “downgrade” Mason?

The 1.1201 (or 1.1202, or 1.13) line of Mason is probably saner than
old versions, so you wouldn’t neccessarily want to downgrade.

Please try applying the attached patch, assuming you’re using
mason_handler.fcgi.

Thanks,
/Autrijus/

— mason_handler.fcgi Fri Aug 9 06:37:18 2002
+++ mason_handler.fcgi.new Sat Aug 24 10:48:23 2002
@@ -36,6 +36,7 @@
{

 package HTML::Mason::Commands;
  • use vars qw(%session);

    use RT::Tickets;
    use RT::Transactions;