Skip Menu |
 

This queue is for tickets about the CGI-Simple CPAN distribution.

Report information
The Basics
Id: 38931
Status: resolved
Priority: 0/
Queue: CGI-Simple

People
Owner: Nobody in particular
Requestors: RSAVAGE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 1.105
Fixed in: (no value)



Subject: Require 'require Apache2::Response;'
Download (untitled) / with headers
text/plain 1003b
This is the error: Can't locate object method "send_cgi_header" via package "Apache2::RequestRec" at /usr/local/share/perl/5.10.0/CGI/Simple.pm line 1011. I'm using: Server Version: Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_apreq2-20051231/2.6.0 mod_perl/2.0.4 Perl/v5.10.0 and in my module: package Local::Sites::Test::Sites; # Author: # Ron Savage <ron@savage.net.au> use base 'CGI::Application'; use strict; use warnings FATAL => 'all', NONFATAL => 'redefine'; use CGI::Simple; use Local::Sites::Config; use Local::Sites::Base::DB; use Log::Dispatch; use Log::Dispatch::DBI; our $VERSION = '1.00'; # ----------------------------------------------- sub cgiapp_get_query { my($self) = @_; return CGI::Simple -> new(); } # End of cgiapp_get_query. I found I needed to add: require Apache2::Response; as the new line 1010 to get my code to work. I'm guessing Apache::RequestUtil does not export or even contain the method send_cgi_header() without adding this line.
Thanks. This should be fixed in 1.106.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.