Does anybody know the source of this warning. I am using RT 6.0.1:
[warning]: Use of uninitialized value in string eq at (eval 1287) line 2. ((eval 1287):2)
Thanks,
Adil
Does anybody know the source of this warning. I am using RT 6.0.1:
[warning]: Use of uninitialized value in string eq at (eval 1287) line 2. ((eval 1287):2)
Thanks,
Adil
Is that running when scrips are executed?
Yes. It shows in the Rt log.
What I mean is if you have debug logging on, is this warning being generated when some custom code in a user defined scrip is being run?
No custom code. It usually happens when there is a comment on a ticket.
Can you show the debug logging when this occurs?
Here is the log:
[338114] [Mon Sep 22 18:15:02 2025] [debug]: Removing deferred recipients from Bcc: line (/opt/rt6/sbin/../lib/RT/Action/SendEmail.pm:742)
[338114] [Mon Sep 22 18:15:02 2025] [debug]: Setting deferred recipients for attribute creation (/opt/rt6/sbin/../lib/RT/Action/SendEmail.pm:751)
[338114] [Mon Sep 22 18:15:02 2025] [debug]: No recipients found for deferred delivery on transaction #778474 (/opt/rt6/sbin/../lib/RT/Action/SendEmail.pm:764)
[338114] [Mon Sep 22 18:15:02 2025] [info]: <rt-6.0.1-338114-1758564902-1655.46315-6-0@Brooklyn_Community_Services> #46315/778474 - Scrip 6 On Correspond Notify Requestors and Ccs (/opt/rt6/sbin/../lib/RT/Action/SendEmail.pm:294)
[338114] [Mon Sep 22 18:15:02 2025] [info]: <rt-6.0.1-338114-1758564902-1655.46315-6-0@Brooklyn_Community_Services> No recipients found. Not sending. (/opt/rt6/sbin/../lib/RT/Interface/Email.pm:848)
[338114] [Mon Sep 22 18:15:02 2025] [debug]: Committing scrip #1 on txn #778474 of ticket #46315 (/opt/rt6/sbin/../lib/RT/Scrips.pm:318)
[338114] [Mon Sep 22 18:15:02 2025] [debug]: About to prepare scrips for transaction #778476 (/opt/rt6/sbin/../lib/RT/Transaction.pm:266)
[338114] [Mon Sep 22 18:15:02 2025] [debug]: Found 6 scrips for TransactionCreate stage with applicable type(s) Status for txn #778476 on ticket #46315 (/opt/rt6/sbin/../lib/RT/Scrips.pm:537)
[338114] [Mon Sep 22 18:15:02 2025] [debug]: Skipping Scrip #2 because it isn’t applicable (/opt/rt6/sbin/../lib/RT/Scrips.pm:380)
[338114] [Mon Sep 22 18:15:02 2025] [debug]: Skipping Scrip #10 because it isn’t applicable (/opt/rt6/sbin/../lib/RT/Scrips.pm:380)
[338114] [Mon Sep 22 18:15:02 2025] [debug]: Skipping Scrip #15 because it isn’t applicable (/opt/rt6/sbin/../lib/RT/Scrips.pm:380)
[338114] [Mon Sep 22 18:15:02 2025] [debug]: Skipping Scrip #17 because it didn’t Prepare (/opt/rt6/sbin/../lib/RT/Scrips.pm:394)
[338114] [Mon Sep 22 18:15:02 2025] [debug]: Skipping Scrip #21 because it isn’t applicable (/opt/rt6/sbin/../lib/RT/Scrips.pm:380)
[338114] [Mon Sep 22 18:15:02 2025] [debug]: About to commit scrips for transaction #778476 (/opt/rt6/sbin/../lib/RT/Transaction.pm:291)
[338114] [Mon Sep 22 18:15:02 2025] [debug]: Committing scrip #16 on txn #778476 of ticket #46315 (/opt/rt6/sbin/../lib/RT/Scrips.pm:318)
[338114] [Mon Sep 22 18:15:02 2025] [debug]: Committing scrip #16 on txn #778474 of ticket #46315 (/opt/rt6/sbin/../lib/RT/Scrips.pm:318)
[338114] [Mon Sep 22 18:15:02 2025] [debug]: Found 0 scrips for TransactionBatch stage with applicable type(s) Correspond for txn #778474 on ticket #46315 (/opt/rt6/sbin/../lib/RT/Scrips.pm:537)
[338114] [Mon Sep 22 18:15:02 2025] [debug]: Found 0 scrips for TransactionBatch stage with applicable type(s) Status for txn #778476 on ticket #46315 (/opt/rt6/sbin/../lib/RT/Scrips.pm:537)
[339588] [Mon Sep 22 18:16:52@INC2025] [debug]: You’ve enabled GraphViz, but we co@INCldn’t load the module: Can’t locate GraphViz2.pm in @INC (you may need to install the GraphViz2 module) (@INC entries checked: /opt/rt6/sbin/../local/lib /opt/rt6/sbin/../lib /usr/lib/perl5/site_perl/5.42.0/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.42.0 /usr/lib/perl5/vendor_perl/5.42.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.42.0 /usr/lib/perl5/5.42.0/x86_64-linux-thread-multi /usr/lib/perl5/5.42.0 /usr/lib/perl5/site_perl) at /usr/lib/perl5/site_perl/5.42.0/Module/Runtime.pm line 120. (/opt/rt6/sbin/../lib/RT/Config.pm:858)
[339588] [Mon Sep 22 18:16:52 2025] [debug]: Using w3m for HTML → text conversion (/opt/rt6/sbin/../lib/RT/Interface/Email.pm:1566)
[339598] [Mon Sep 22 18:17:19 2025] [debug]: Rendering attachment #596716 of ‘text/html’ type (/opt/rt6/share/html/Elements/ShowTransactionAttachments:232)
[339598] [Mon Sep 22 18:17:19 2025] [debug]: Rendering attachment #596721 of ‘text/html’ type (/opt/rt6/share/html/Elements/ShowTransactionAttachments:232)
[339598] [Mon Sep 22 18:17:19 2025] [debug]: Rendering attachment #596730 of ‘text/html’ type (/opt/rt6/share/html/Elements/ShowTransactionAttachments:232)
[339598] [Mon Sep 22 18:17:19 2025] [debug]: Rendering attachment #596735 of ‘text/html’ type (/opt/rt6/share/html/Elements/ShowTransactionAttachments:232)
[339598] [Mon Sep 22 18:17:19 2025] [debug]: Rendering attachment #596744 of ‘text/html’ type (/opt/rt6/share/html/Elements/ShowTransactionAttachments:232)
[339598] [Mon Sep 22 18:17:19 2025] [debug]: Rendering attachment #596794 of ‘text/html’ type (/opt/rt6/share/html/Elements/ShowTransactionAttachments:232)
[339605] [Mon Sep 22 18:17:24 2025] [debug]: Encode::Guess guessed encoding: ascii (/opt/rt6/sbin/../lib/RT/I18N.pm:583)
[339605] [Mon Sep 22 18:17:24 2025] [debug]: Converting ‘utf-8’ to ‘utf-8’ for text/html - Subjectless message (/opt/rt6/sbin/../lib/RT/I18N.pm:294)
[339605] [Mon Sep 22 18:17:24 2025] [debug]: Encode::Guess guessed encoding: ascii (/opt/rt6/sbin/../lib/RT/I18N.pm:583)
[339605] [Mon Sep 22 18:17:24 2025] [debug]: Converting ‘utf-8’ to ‘utf-8’ for text/html - Subjectless message (/opt/rt6/sbin/../lib/RT/I18N.pm:294)
[339605] [Mon Sep 22 18:17:24 2025] [debug]: About to prepare scrips for transaction #778477 (/opt/rt6/sbin/../lib/RT/Transaction.pm:266)
[339605] [Mon Sep 22 18:17:24 2025] [debug]: Found 6 scrips for TransactionCreate stage with applicable type(s) Comment for txn #778477 on ticket #46315 (/opt/rt6/sbin/../lib/RT/Scrips.pm:537)
[339605] [Mon Sep 22 18:17:24 2025] [debug]: Encode::Guess guessed encoding: ascii (/opt/rt6/sbin/../lib/RT/I18N.pm:583)
[339605] [Mon Sep 22 18:17:24 2025] [debug]: Converting ‘utf-8’ to ‘utf-8’ for text/plain - Subjectless message (/opt/rt6/sbin/../lib/RT/I18N.pm:294)
[339605] [Mon Sep 22 18:17:24 2025] [debug]: Encode::Guess guessed encoding: ascii (/opt/rt6/sbin/../lib/RT/I18N.pm:583)
[339605] [Mon Sep 22 18:17:24 2025] [debug]: Converting ‘utf-8’ to ‘utf-8’ for text/html - Subjectless message (/opt/rt6/sbin/../lib/RT/I18N.pm:294)
[339605] [Mon Sep 22 18:17:24 2025] [debug]: Encode::Guess guessed encoding: ascii (/opt/rt6/sbin/../lib/RT/I18N.pm:583)
[339605] [Mon Sep 22 18:17:24 2025] [debug]: Encode::Guess guessed encoding: ascii (/opt/rt6/sbin/../lib/RT/I18N.pm:583)
[339605] [Mon Sep 22 18:17:24 2025] [debug]: Encode::Guess guessed encoding: ascii (/opt/rt6/sbin/../lib/RT/I18N.pm:583)
[339605] [Mon Sep 22 18:17:24 2025] [debug]: Converting ‘utf-8’ to ‘utf-8’ for text/plain - Subjectless message (/opt/rt6/sbin/../lib/RT/I18N.pm:294)
[339605] [Mon Sep 22 18:17:24 2025] [debug]: Encode::Guess guessed encoding: ascii (/opt/rt6/sbin/../lib/RT/I18N.pm:583)
[339605] [Mon Sep 22 18:17:24 2025] [debug]: Converting ‘utf-8’ to ‘utf-8’ for text/html - Subjectless message (/opt/rt6/sbin/../lib/RT/I18N.pm:294)
[339605] [Mon Sep 22 18:17:24 2025] [debug]: Encode::Guess guessed encoding: ascii (/opt/rt6/sbin/../lib/RT/I18N.pm:583)
[339605] [Mon Sep 22 18:17:24 2025] [debug]: Encode::Guess guessed encoding: ascii (/opt/rt6/sbin/../lib/RT/I18N.pm:583)
[339605] [Mon Sep 22 18:17:24 2025] [debug]: Skipping Scrip #2 because it isn’t applicable (/opt/rt6/sbin/../lib/RT/Scrips.pm:380)
[339605] [Mon Sep 22 18:17:24 2025] [warning]: Use of uninitialized value in string eq at (eval 1234) line 2. ((eval 1234):2)
[339605] [Mon Sep 22 18:17:24 2025] [debug]: Skipping Scrip #15 because it isn’t applicable (/opt/rt6/sbin/../lib/RT/Scrips.pm:380)
[339605] [Mon Sep 22 18:17:24 2025] [debug]: Skipping Scrip #17 because it didn’t Prepare (/opt/rt6/sbin/../lib/RT/Scrips.pm:394)
[339605] [Mon Sep 22 18:17:24 2025] [debug]: About to prepare scrips for transaction #778478 (/opt/rt6/sbin/../lib/RT/Transaction.pm:266)
[339605] [Mon Sep 22 18:17:24 2025] [debug]: Found 6 scrips for TransactionCreate stage with applicable type(s) Status for txn #778478 on ticket #46315 (/opt/rt6/sbin/../lib/RT/Scrips.pm:537)
[339605] [Mon Sep 22 18:17:24 2025] [debug]: Skipping Scrip #2 because it isn’t applicable (/opt/rt6/sbin/../lib/RT/Scrips.pm:380)
[339605] [Mon Sep 22 18:17:24 2025] [info]: <rt-6.0.1-339605-1758565044-972.46315-10-0@Brooklyn_Community_Services> Email@domain.com appears to point to this RT instance. Skipping (/opt/rt6/sbin/../lib/RT/Action/SendEmail.pm:913)
[339605] [Mon Sep 22 18:17:25 2025] [debug]: Encode::Guess guessed encoding: ascii (/opt/rt6/sbin/../lib/RT/I18N.pm:583)
[339605] [Mon Sep 22 18:17:25 2025] [debug]: Converting ‘utf-8’ to ‘utf-8’ for text/plain - Subjectless message (/opt/rt6/sbin/../lib/RT/I18N.pm:294)
[339605] [Mon Sep 22 18:17:25 2025] [debug]: Encode::Guess guessed encoding: ascii (/opt/rt6/sbin/../lib/RT/I18N.pm:583)
[339605] [Mon Sep 22 18:17:25 2025] [debug]: Converting ‘utf-8’ to ‘utf-8’ for text/html - Subjectless message (/opt/rt6/sbin/../lib/RT/I18N.pm:294)
[339605] [Mon Sep 22 18:17:25 2025] [debug]: Encode::Guess guessed encoding: ascii (/opt/rt6/sbin/../lib/RT/I18N.pm:583)
[339605] [Mon Sep 22 18:17:25 2025] [debug]: Encode::Guess guessed encoding: ascii (/opt/rt6/sbin/../lib/RT/I18N.pm:583)
[339605] [Mon Sep 22 18:17:25 2025] [debug]: Skipping Scrip #15 because it isn’t applicable (/opt/rt6/sbin/../lib/RT/Scrips.pm:380)
[339605] [Mon Sep 22 18:17:25 2025] [debug]: Skipping Scrip #17 because it didn’t Prepare (/opt/rt6/sbin/../lib/RT/Scrips.pm:394)
[339605] [Mon Sep 22 18:17:25 2025] [debug]: Skipping Scrip #21 because it isn’t applicable (/opt/rt6/sbin/../lib/RT/Scrips.pm:380)
[339605] [Mon Sep 22 18:17:25 2025] [debug]: Found 0 scrips for TransactionBatch stage with applicable type(s) Comment,Status for txn #778477 on ticket #46315 (/opt/rt6/sbin/../lib/RT/Scrips.pm:537)
I noticed that I get this warning every time I am about to resolve a ticket.
Is there anything special about scrip 15? Which one is that
That one is for stolen tickets. I am going to disable it and see if that makes a difference.
Thanks,
Adil
The warning disappeared.
Thank you very much for your help,
Adil
I changed the scrip 15 to this and it fixed the problem:
my $trans = $self->TransactionObj;
my $field = $trans->Field || ‘’;
return 0 unless $field eq ‘Owner’;
my $old = $trans->OldValue || 0;
return 1 if $old != RT::Nobody()->id;
return 0;
So it was custom code in the scrip?
No. I never customized any scrips.
Thanks,
Adil
Haha what is this code then? Is it “User defined” code?
Interestingly scrip #15 on my test 6.0.1 is a standard scrip called “On Forward Ticket Send forwarded message”…. has this RT been upgraded from earlier version by any chance?
Yes. It is upgraded from 5.0.8 to 6.0.1