Confusing 'Use of uninitialized value' error / reply and comment not working

Hi, Folks,

I’m trying to figure out why a new RT 3.6.1 install (fc3, postgresql
7.4.11, modperl2, perl 5.8.5, apache 2.0.53, postfix 2.1.5) isn’t doing
reply-to-requestors or comments from the web interface. The output
html starts with a tag and includes the number of msec the query
took but no content before that.

I’m seeing the syslog error:

Aug 24 21:23:54 server1 RT: Use of uninitialized value in substitution 

(s///) at /opt/rt3/lib/RT/Interface/Web.pm line 617.
(/opt/rt3/lib/RT/Interface/Web.pm:617)

which is the line:

 $args{'Body'} =~ s/\r\n/\n/gs;

in the following code snippet:

 #TODO document what else this takes.
 my %args = (
     Subject             => undef,
     From                => undef,
     Cc                  => undef,
     Body                => undef,
     AttachmentFieldName => undef,

map Encode::encode_utf8($), @,

     @_,
 );

 #Make the update content have no 'weird' newlines in it

 $args{'Body'} =~ s/\r\n/\n/gs;

Yet, if I Dumper(@_), I see:

Aug 24 21:27:22 server1 RT: $VAR1 = ‘Subject’; $VAR2 = undef; $VAR3 =
‘Body’; $VAR4 = 'reply test test test ';
(/opt/rt3/lib/RT/Interface/Web.pm:615)

which looks like it ought to add to the hash correctly.

Debugging steps taken so far: SQL query logging (no errors), increasing
postgresql RAM (I hadn’t done any performance tuning yet) commenting
out that line of code (no improvement other than masking the error).

Additional curiosity - I don’t seem to be getting watcher mail either.

Does anybody see what I’m missing here? Or is this just a red herring?

Thanks,
-Bill

Bill McGonigle, Owner Work: 603.448.4440
BFC Computing, LLC Home: 603.448.1668
bill@bfccomputing.com Cell: 603.252.2606
http://www.bfccomputing.com/ Page: 603.442.1833
Blog: http://blog.bfccomputing.com/
VCard: http://bfccomputing.com/vcard/bill.vcf

Hi, Folks,

I’m trying to figure out why a new RT 3.6.1 install (fc3, postgresql
7.4.11, modperl2, perl 5.8.5, apache 2.0.53, postfix 2.1.5) isn’t doing
reply-to-requestors or comments from the web interface. The output
html starts with a tag and includes the number of msec the query
took but no content before that.

We’re seeing this all over the place. with redhat based systems.

Just to eliminate one thing we’ve changed in the past couple weeks,
could you install:

Cache-Simple-TimedExpiry-0.23 - A lightweight cache with timed expiration - metacpan.org (that
version explicitly) and try again?

Jesse

We’re seeing this all over the place. with redhat based systems.

OK, good to know it’s not just me.

Just to eliminate one thing we’ve changed in the past couple weeks,
could you install:

Cache-Simple-TimedExpiry-0.23 - A lightweight cache with timed expiration - metacpan.org (that
version explicitly) and try again?

Sorry, no benefit. I installed 0.23, cleared the mason object cache
for good measure, restarted apache, and I still see the same result.

Thanks for the lightning-fast response and let me know if there’s
anything else I can do to troubleshoot.

-Bill

Bill McGonigle, Owner Work: 603.448.4440
BFC Computing, LLC Home: 603.448.1668
bill@bfccomputing.com Cell: 603.252.2606
http://www.bfccomputing.com/ Page: 603.442.1833
Blog: http://blog.bfccomputing.com/
VCard: http://bfccomputing.com/vcard/bill.vcf

We’re seeing this all over the place. with redhat based systems.

OK, good to know it’s not just me.

Just to eliminate one thing we’ve changed in the past couple weeks,
could you install:

Cache-Simple-TimedExpiry-0.23 - A lightweight cache with timed expiration - metacpan.org (that
version explicitly) and try again?

Sorry, no benefit. I installed 0.23, cleared the mason object cache
for good measure, restarted apache, and I still see the same result.

Thanks for the lightning-fast response and let me know if there’s
anything else I can do to troubleshoot.

Ok. That means it’s less likely to be my fault :wink:

Can you try using /opt/rt3/bin/standalone_httpd? That will let us tell
if it’s apache/mod_perl or perl itself.

Jesse

Can you try using /opt/rt3/bin/standalone_httpd? That will let us tell
if it’s apache/mod_perl or perl itself.

OK, I tried this (stopped the apache httpd to make sure it was coming
in to the standalone_httpd), same results.

-Bill

Bill McGonigle, Owner Work: 603.448.4440
BFC Computing, LLC Home: 603.448.1668
bill@bfccomputing.com Cell: 603.252.2606
http://www.bfccomputing.com/ Page: 603.442.1833
Blog: http://blog.bfccomputing.com/
VCard: http://bfccomputing.com/vcard/bill.vcf

See the message I posted to rt-users yesterday. Upgrade CGI.pmOn Sat, Aug 26, 2006 at 09:40:00PM -0400, Bill McGonigle wrote:

On Aug 25, 2006, at 02:19, Jesse Vincent wrote:

Can you try using /opt/rt3/bin/standalone_httpd? That will let us tell
if it’s apache/mod_perl or perl itself.

OK, I tried this (stopped the apache httpd to make sure it was coming
in to the standalone_httpd), same results.

-Bill


Bill McGonigle, Owner Work: 603.448.4440
BFC Computing, LLC Home: 603.448.1668
bill@bfccomputing.com Cell: 603.252.2606
http://www.bfccomputing.com/ Page: 603.442.1833
Blog: http://blog.bfccomputing.com/
VCard: http://bfccomputing.com/vcard/bill.vcf

See the message I posted to rt-users yesterday. Upgrade CGI.pm

Works great. Many thanks.

-Bill

Bill McGonigle, Owner Work: 603.448.4440
BFC Computing, LLC Home: 603.448.1668
bill@bfccomputing.com Cell: 603.252.2606
http://www.bfccomputing.com/ Page: 603.442.1833
Blog: http://blog.bfccomputing.com/
VCard: http://bfccomputing.com/vcard/bill.vcf

Hi,
Im still seeing this error on a debian system.
Im only getting it since updating from 3.6.0 to 3.6.1

Sep 12 04:59:34 intranet1 RT: Use of uninitialized value in substitution
(s///) at /opt/rt3/lib/RT/Interface/Web.pm line 617.
(/opt/rt3/lib/RT/Interface/Web.pm:617)
Sep 12 05:00:33 intranet1 RT: Use of uninitialized value in substitution
(s///) at /opt/rt3/lib/RT/Interface/Web.pm line 617.
(/opt/rt3/lib/RT/Interface/Web.pm:617)

Im running apache1 and have updated the CGI.pm as below.
intranet1:/opt/rt3/etc# perl -MCPAN -e ‘install CGI’
CPAN: File::HomeDir loaded ok
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Tue, 12 Sep 2006 09:33:17 GMT
CGI is up to date (3.23).
intranet1:/opt/rt3/etc#

I am also seeing this error:

Sep 12 04:39:43 intranet1 RT: Use of uninitialized value in string ne at
/opt/rt3/lib/RT/Interface/Web.pm line 1468.
(/opt/rt3/lib/RT/Interface/Web.pm:1468)

Although Ive only seen this once and that was after upgrading my CGI.pm
The only significant change I have made is the use of the
oldertransactionsfirst in my RT_SiteConfig.pm

All other deps seem to be fine:

intranet1:/opt/rt3/etc# /home/bgeach/rt-3.6.1/sbin/rt-test-dependencies -v
–install
perl:
>=5.8.3(5.008004)…found
users:
rt group (rt)…found
bin owner (root)…found
libs owner (root)…found
libs group (bin)…found
web owner (www-data)…found
web group (rt3)…found
CLI dependencies:
Getopt::Long >=2.24…found
CORE dependencies:
Digest::base…found
Digest::MD5 >=2.27…found
DBI >=1.37…found
Test::Inline…found
Class::ReturnValue >=0.40…found
DBIx::SearchBuilder >=1.39…found
Text::Template…found
File::Spec >=0.8…found
HTML::Entities…found
HTML::Scrubber >=0.08…found
Net::Domain…found
Log::Dispatch >=2.0…found
Locale::Maketext >=1.06…found
Locale::Maketext::Lexicon >=0.32…found
Locale::Maketext::Fuzzy…found
MIME::Entity >=5.108…found
Mail::Mailer >=1.57…found
Net::SMTP…found
Text::Wrapper…found
Time::ParseDate…found
Time::HiRes…found
File::Temp…found
Term::ReadKey…found
Text::Autoformat…found
Text::Quoted >=1.3…found
Tree::Simple >=1.04…found
Scalar::Util…found
Module::Versions::Report…found
Cache::Simple::TimedExpiry…found
UNIVERSAL::require…found
Calendar::Simple…found
DEV dependencies:
Regexp::Common…found
Test::Inline…found
Apache::Test…found
HTML::Form…found
HTML::TokeParser…found
WWW::Mechanize…found
Test::WWW::Mechanize >=1.04…found
Module::Refresh >=0.03…found
Test::Expect 0.30…MISSING
XML::Simple…found

Install module Test::Expect
CPAN: File::HomeDir loaded ok
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Tue, 12 Sep 2006 09:33:17 GMT
Test::Expect is up to date (0.30).
MAILGATE dependencies:
HTML::TreeBuilder…found
HTML::FormatText…found
Getopt::Long…found
LWP::UserAgent…found
MASON dependencies:
Params::Validate >=0.02…found
Cache::Cache…found
Exception::Class >=1.14…found
HTML::Mason >=1.23…found
MLDBM…found
Errno…found
FreezeThaw…found
Digest::MD5 >=2.27…found
CGI::Cookie >=1.20…found
Storable >=2.08…found
Apache::Session >=1.53…found
XML::RSS >=1.05…found
HTTP::Server::Simple >=0.07…found
HTTP::Server::Simple::Mason >=0.09…found
GD…found
GD::Graph…found
GD::Text…found
Text::WikiFormat >=0.76…found

SOMETHING WAS MISSING!

Looks like your test died before it could output anything.

[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Jesse VincentSent: 27 August 2006 02:58
To: Bill McGonigle
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] confusing ‘Use of uninitialized value’ error /
replyand comment not working

See the message I posted to rt-users yesterday. Upgrade CGI.pm