Debugging RT code

I’m working on updating the rt-reminders.pl to work with the newer API, and I’m getting the following error when running it from command-line:

rt:~/bin # /root/bin/rt-reminders.pl -r
Can’t call method “warn” on an undefined value at /usr/lib/perl5/vendor_perl/5.20.1/RT.pm line 954.

We’re running RT 4.2.12 on openSUSE 13.2. Any ideas would be helpful. Thanks.

Gary L. Greene, Jr.
Sr. Systems Administrator
IT Operations
Minerva Networks, Inc.
Cell: +1 (650) 704-6633

signature.asc (842 Bytes)

I’m working on updating the rt-reminders.pl to work with the newer
API, and I’m getting the following error when running it from
command-line:

rt:~/bin # /root/bin/rt-reminders.pl -r
Can’t call method “warn” on an undefined value at
/usr/lib/perl5/vendor_perl/5.20.1/RT.pm line 954.

We’re running RT 4.2.12 on openSUSE 13.2. Any ideas would be
helpful.

Get a stack trace. Something called a deprecated method in an odd way
such that RT=>Deprecated() couldn’t figure out a caller name.