"Can't call cgi_object method unless CGI.pm was used to handle incoming arguments" error when I try to create a new ticket

Hi Rt users,

I’m new to rt having just installed it yesterday. I am having problems adding tickets. When I fill out the form and press “create” button I get a mason error:

  component stack:   /Ticket/Display.html [standard]
  /autohandler [standard]
 
  code stack:   /usr/local/rt2/bin/webmux.pl:100
    /usr/local/rt2/lib/RT/Interface/Web.pm:369
    /usr/local/rt2/WebRT/data/obj/STANDARD/Ticket/Display.html:50
    /usr/local/rt2/WebRT/data/obj/STANDARD/autohandler:69

error while executing /Ticket/Display.html [standard]:
Can’t call cgi_object method unless CGI.pm was used to handle incoming arguments.
HTML::Mason::Interp::ANON(‘Can’t call cgi_object method unless CGI.pm was used to handle i…’) called at /usr/local/lib/perl5/site_perl/5.6.1/HTML/Mason/ApacheHandler.pm line 55
HTML::Mason::Request::ApacheHandler::cgi_object(‘HTML::Mason::Request::ApacheHandler=HASH(0x9083190)’) called at /usr/local/rt2/bin/webmux.pl line 100
HTML::Mason::Commands::CGIObject() called at /usr/local/rt2/lib/RT/Interface/Web.pm line 369
HTML::Mason::Commands::MakeMIMEEntity(‘Subject’, ‘’, ‘From’, undef, ‘Cc’, ‘’, ‘Body’, ‘dsfdfasdf’, …) called at /usr/local/rt2/WebRT/data/obj/STANDARD/Ticket/Display.html line 50
HTML::Mason::Commands::ANON(‘Due’, ‘’, ‘Status’, ‘new’, ‘new-RefersTo’, ‘’, ‘MemberOf-new’, ‘’, …) called at /usr/local/lib/perl5/site_perl/5.6.1/HTML/Mason/Component.pm line 131
HTML::Mason::Component::run(‘HTML::Mason::Component::FileBased=HASH(0x9095d3c)’, ‘Due’, ‘’, ‘Status’, ‘new’, ‘new-RefersTo’, ‘’, ‘MemberOf-new’, …) called at /usr/local/lib/perl5/site_perl/5.6.1/HTML/Mason/Request.pm line 653
eval {…} called at /usr/local/lib/perl5/site_perl/5.6.1/HTML/Mason/Request.pm line 653
HTML::Mason::Request::comp(‘HTML::Mason::Request::ApacheHandler=HASH(0x9083190)’, ‘HTML::Mason::Component::FileBased=HASH(0x9095d3c)’, ‘Due’, ‘’, ‘Status’, ‘new’, ‘new-RefersTo’, ‘’, …) called at /usr/local/lib/perl5/site_perl/5.6.1/HTML/Mason/Request.pm line 316
HTML::Mason::Request::call_next(‘HTML::Mason::Request::ApacheHandler=HASH(0x9083190)’) called at /usr/local/rt2/WebRT/data/obj/STANDARD/autohandler line 69
HTML::Mason::Commands::ANON(‘Due’, ‘’, ‘Status’, ‘new’, ‘new-RefersTo’, ‘’, ‘MemberOf-new’, ‘’, …) called at /usr/local/lib/perl5/site_perl/5.6.1/HTML/Mason/Component.pm line 131
HTML::Mason::Component::run(‘HTML::Mason::Component::FileBased=HASH(0x9094cbc)’, ‘Due’, ‘’, ‘Status’, ‘new’, ‘new-RefersTo’, ‘’, ‘MemberOf-new’, …) called at /usr/local/lib/perl5/site_perl/5.6.1/HTML/Mason/Request.pm line 653
eval {…} called at /usr/local/lib/perl5/site_perl/5.6.1/HTML/Mason/Request.pm line 653
HTML::Mason::Request::comp(‘HTML::Mason::Request::ApacheHandler=HASH(0x9083190)’, ‘HASH(0x9081560)’, ‘HTML::Mason::Component::FileBased=HASH(0x9094cbc)’, ‘Due’, ‘’, ‘Status’, ‘new’, ‘new-RefersTo’, …) called at /usr/local/lib/perl5/site_perl/5.6.1/HTML/Mason/Request.pm line 159
eval {…} called at /usr/local/lib/perl5/site_perl/5.6.1/HTML/Mason/Request.pm line 159
HTML::Mason::Request::exec(‘HTML::Mason::Request::ApacheHandler=HASH(0x9083190)’, ‘/Ticket/Display.html’, ‘Due’, ‘’, ‘Status’, ‘new’, ‘new-RefersTo’, ‘’, …) called at /usr/local/lib/perl5/site_perl/5.6.1/HTML/Mason/ApacheHandler.pm line 914
HTML::Mason::ApacheHandler::handle_request_1(‘HTML::Mason::ApacheHandler=HASH(0x889e56c)’, ‘Apache=SCALAR(0x90a278c)’, ‘HTML::Mason::Request::ApacheHandler=HASH(0x9083190)’, undef) called at /usr/local/lib/perl5/site_perl/5.6.1/HTML/Mason/ApacheHandler.pm line 560
eval {…} called at /usr/local/lib/perl5/site_perl/5.6.1/HTML/Mason/ApacheHandler.pm line 560
HTML::Mason::ApacheHandler::handle_request(‘HTML::Mason::ApacheHandler=HASH(0x889e56c)’, ‘Apache=SCALAR(0x90a278c)’) called at /usr/local/rt2/bin/webmux.pl line 172
RT::Mason::handler(‘Apache=SCALAR(0x90a278c)’) called at /dev/null line 0
eval {…} called at /dev/null line 0
It seems that I have problems on pages with forms but not pages with links. I tried replacing:
use HTML::Mason::ApacheHandler (args_method => ‘CGI’);
withuse HTML::Mason::ApacheHandler (args_method=>‘mod_perl’)
in webmux.pl but that didn’t help.

I am using rt2-0-13. Thanks in advance for any help.

Dennis Cumro

Summit Communication Design
6065 S. Quebec St. Suite 202
Englewood, CO 80111
Phone: 303-290-1898
FAX: 303-265-9379
http://www.SummitDesign.net

Dear Dennis!

Looks like you have configured your Apache to use HTML::Mason with
(args_method => ‘mod_perl’).
RT2 can’t redefine this setting because args_method is a parameter of
module import.
This issue will be fixed in upcoming 1.10 version of HTML::Mason,
args_method will be a parameter of ApacheHandler constructor.

Now you can either reconfigure your server to use (args_method => ‘CGI’)
or use a patch suggested by me in
http://lists.fsck.com/pipermail/rt-devel/2002-February/002079.html.
Jesse said that there is no reasons to add this patch to the current
stable branch
and it will not be needed in future versions too due to the change in
HTML::Mason mentioned above.

Best regards,
Alexei

Alexei Barantsev, ISP RAS
E-mail: barancev@kazbek.ispras.ru
ICQ : 3959207-----Original Message-----
From: rt-users-admin@lists.fsck.com
[mailto:rt-users-admin@lists.fsck.com] On Behalf Of Dennis L. Cumro
Sent: Friday, March 29, 2002 10:22 PM
To: rt-users@lists.fsck.com
Subject: [rt-users] “Can’t call cgi_object method unless CGI.pm was used
to handle incoming arguments” error when I try to create a new ticket

Hi Rt users,

I’m new to rt having just installed it yesterday. I am having problems
adding tickets. When I fill out the form and press “create” button I
get a mason error:

component stack: /Ticket/Display.html [standard]
/autohandler [standard]

code stack: /usr/local/rt2/bin/webmux.pl:100
/usr/local/rt2/lib/RT/Interface/Web.pm:369
/usr/local/rt2/WebRT/data/obj/STANDARD/Ticket/Display.html:50
/usr/local/rt2/WebRT/data/obj/STANDARD/autohandler:69

error while executing /Ticket/Display.html [standard]:
Can’t call cgi_object method unless CGI.pm was used to handle incoming
arguments.
HTML::Mason::Interp::ANON(‘Can’t call cgi_object method unless
CGI.pm was used to handle i…’) called at
/usr/local/lib/perl5/site_perl/5.6.1/HTML/Mason/ApacheHandler.pm line 55

[…]

It seems that I have problems on pages with forms but not pages with
links. I tried replacing:
use HTML::Mason::ApacheHandler (args_method => ‘CGI’);
withuse HTML::Mason::ApacheHandler (args_method=>‘mod_perl’)
in webmux.pl but that didn’t help.

I am using rt2-0-13. Thanks in advance for any help.

Dennis Cumro

Summit Communication Design
6065 S. Quebec St. Suite 202
Englewood, CO 80111
Phone: 303-290-1898
FAX: 303-265-9379
http://www.SummitDesign.net