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;'
MIME-Version: 1.0
X-Mailer: MIME-tools 5.426 (Entity 5.426)
Content-Type: text/plain
Charset: utf8
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 1003
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.
MIME-Version: 1.0
X-Mailer: MIME-tools 5.426 (Entity 5.426)
Content-Disposition: inline
Charset: utf8
Message-Id: <rt-3.6.HEAD-11555-1221398849-719.38931-0-0 [...] rt.cpan.org>
Content-Type: text/plain
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 38
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.