[freeside-users] Viewing Typeset
sales at michianawireless.com
sales at michianawireless.com
Sun Oct 9 01:28:11 PDT 2005
Ok,
I just reinstalled CGI.pm from cpan and now apache loads. However after
still having the same issue. I have applied the following as you said:
-------------- next part --------------
diff -Naur freeside-1.5.7.orig/FS/FS/CGI.pm freeside-1.5.7/FS/FS/CGI.pm
--- freeside-1.5.7.orig/FS/FS/CGI.pm 2004-12-10 17:28:25.000000000 -0500
+++ freeside-1.5.7/FS/FS/CGI.pm 2005-07-26 22:41:07.000000000 -0400
@@ -91,7 +91,8 @@
if ( $header =~ /^Content-Type$/ ) {
$HTML::Mason::Commands::r->content_type($value);
} else {
- $HTML::Mason::Commands::r->header_out( $header => $value );
+ # Modified for mod_perl 1.99+
+ $HTML::Mason::Commands::r->headers_out->{ $header } = $value;
}
} else {
die "http_header called in unknown environment";
@@ -168,8 +169,9 @@
sub eidiot {
warn "eidiot depriciated";
- $HTML::Mason::Commands::r->send_http_header
- if defined $HTML::Mason::Commands::r;
+# Disabled for mod_perl 1.99+, should be an eval{}
+# $HTML::Mason::Commands::r->send_http_header
+# if defined $HTML::Mason::Commands::r;
idiot(@_);
&myexit();
}
And still get the error which changed to this:
System error
error: Can't locate object method "header_out" via package
"Apache2::RequestRec" at /usr/lib/perl5/site_perl/5.8.6/FS/CGI.pm line 94.
context: ...
90: ## is this the correct pacakge for $r ??? for 1.0x and 1.1x ?
91: if ( $header =~ /^Content-Type$/ ) {
92: $HTML::Mason::Commands::r->content_type($value);
93: } else {
94: # $HTML::Mason::Commands::r->header_out( $header => $value );
95: # Modified for mod_perl 1.99+
96: $HTML::Mason::Commands::r->headers_out->{ $header } = $value;
97: }
98: } else {
...
code stack: /usr/lib/perl5/site_perl/5.8.6/FS/CGI.pm:94
/var/www/html/freeside/view/cust_bill-pdf.cgi:15
/var/www/html/freeside/autohandler:1
raw error
Any other ideas?
Thanks,
John
>
> sales at michianawireless.com wrote:
> > error:
> >
> > Can't locate object method "header_out" via package
> "Apache2::RequestRec" at
> > /usr/lib/perl5/site_perl/5.8.6/FS/CGI.pm line 94.
> >
>
> That's one of the changes you need to make to run Freeside under
> Apache2. See the diffs for Apache2/mod_perl2 attached to my e-mail
> about the experimental RPM version of Freeside:
> http://www.sisd.com/pipermail/freeside-devel/2005-September/000521.html
>
> (Search for header_out and apply both changes between the --- next part
> ---- separators.)
>
> That or uninstall Apache2/mod_perl2 and drop back to Apache1/mod_perl1.
>
> Regards,
>
> Richard.
> _______________________________________________
> freeside-users mailing list
> freeside-users at sisd.com
> http://420.am/cgi-bin/mailman/listinfo/freeside-users
More information about the freeside-users
mailing list