[rt-users] cookie.pm problem

Dave Lowenstein dlowenst at mail.sdsu.edu
Fri Sep 3 18:15:07 EDT 2004


i've jumped through all the hoops to get rt installed on solaris 8 using 
apache 1.3.31 and mysql, and I've hit a roadblock:

When I try to load the front page I get this:

error:   	Usage: Apache::headers_in(r) at 
/usr/local/lib/perl5/5.8.5/CGI/Cookie.pm line 76.
context:
...
72:  	sub get_raw_cookie {
73:  	my $r = shift;
74:  	$r ||= eval { Apache->request() } if $MOD_PERL;
75:  	if ($r) {
76:  	$raw_cookie = $r->headers_in ('Cookie');
77:  	} else {
78:  	if ($MOD_PERL && !exists $ENV{REQUEST_METHOD}) {
79:  	die "Run $r->subprocess_env; before calling fetch()";
80:  	}
...
code stack:  	/usr/local/lib/perl5/5.8.5/CGI/Cookie.pm:76
/usr/local/lib/perl5/5.8.5/CGI/Cookie.pm:43
/opt/rt3/share/html/Elements/SetupSessionCookie:27
/opt/rt3/share/html/autohandler:57



Any Ideas on what is going wrong here? Here is the "raw error"


System error
error:  	Usage: Apache::headers_in(r) at 
/usr/local/lib/perl5/5.8.5/CGI/Cookie.pm line 76.
context:
...
72:  	sub get_raw_cookie {
73:  	my $r = shift;
74:  	$r ||= eval { Apache->request() } if $MOD_PERL;
75:  	if ($r) {
76:  	$raw_cookie = $r->headers_in ('Cookie');
77:  	} else {
78:  	if ($MOD_PERL && !exists $ENV{REQUEST_METHOD}) {
79:  	die "Run $r->subprocess_env; before calling fetch()";
80:  	}
...
code stack:  	/usr/local/lib/perl5/5.8.5/CGI/Cookie.pm:76
/usr/local/lib/perl5/5.8.5/CGI/Cookie.pm:43
/opt/rt3/share/html/Elements/SetupSessionCookie:27
/opt/rt3/share/html/autohandler:57
raw error



Usage: Apache::headers_in(r) at /usr/local/lib/perl5/5.8.5/CGI/Cookie.pm 
line 76.


Trace begun at 
/usr/local/lib/perl5/site_perl/5.8.5/HTML/Mason/Exceptions.pm line 131
HTML::Mason::Exceptions::rethrow_exception('Usage: Apache::headers_in(r) 
at /usr/local/lib/perl5/5.8.5/CGI/Cookie.pm line 76.^J') called at 
/usr/local/lib/perl5/5.8.5/CGI/Cookie.pm line 76
CGI::Cookie::get_raw_cookie at /usr/local/lib/perl5/5.8.5/CGI/Cookie.pm 
line 43
CGI::Cookie::fetch('CGI::Cookie') called at 
/opt/rt3/share/html/Elements/SetupSessionCookie line 27
HTML::Mason::Commands::__ANON__ at 
/usr/local/lib/perl5/site_perl/5.8.5/HTML/Mason/Component.pm line 134
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x14afe24)') 
called at /usr/local/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm line 
1074
eval {...} at /usr/local/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm 
line 1068
HTML::Mason::Request::comp(undef, undef) called at 
/opt/rt3/share/html/autohandler line 57
HTML::Mason::Commands::__ANON__ at 
/usr/local/lib/perl5/site_perl/5.8.5/HTML/Mason/Component.pm line 134
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x1489c7c)') 
called at /usr/local/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm line 
1069
eval {...} at /usr/local/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm 
line 1068
HTML::Mason::Request::comp(undef, undef, undef) called at 
/usr/local/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm line 338
eval {...} at /usr/local/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm 
line 338
eval {...} at /usr/local/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm 
line 297
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x140a8c0)') 
called at /usr/local/lib/perl5/site_perl/5.8.5/HTML/Mason/ApacheHandler.pm 
line 134
eval {...} at 
/usr/local/lib/perl5/site_perl/5.8.5/HTML/Mason/ApacheHandler.pm line 134
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x140a8c0)') 
called at /usr/local/lib/perl5/site_perl/5.8.5/HTML/Mason/ApacheHandler.pm 
line 792
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x6d5bec)', 
'Apache=SCALAR(0x14060d0)') called at /opt/rt3/bin/webmux.pl line 105
eval {...} at /opt/rt3/bin/webmux.pl line 105
RT::Mason::handler('Apache=SCALAR(0x14060d0)') called at /dev/null line 0
eval {...} at /dev/null line 0



Dave Lowenstein
Analyst/Programmer
Instructional Technology Services
San Diego State University
(619)594-0270
http://www-rohan.sdsu.edu/dept/its




More information about the rt-users mailing list