Custom Global Scrip Not Firing

Hi All,

I’m a little stumped, I’ve created scrips before for other scenarios,
but I created a simple global “On Create” scrip… and I can’t see in
the logs that it’s even trying to use it when I create a ticket.

Can anyone point me in the right direction…?
Andy Speagle

“THE Student” - UCATS
Wichita State University

signature.asc (197 Bytes)

I ran into this the other day, too. The logs never showed my scrip firing (not even in debug), but, if I put a print in the definition, I could see my print statement in the logs…

For me, it turned out to be an error in the template that my scrip was calling. Fixed the template, and all was well.
Try using a known good template for experimenting purposes?-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Andy Speagle
Sent: Friday, September 18, 2009 1:48 PM
To: rt-users@lists.bestpractical.com
Subject: [rt-users] Custom Global Scrip Not Firing

Hi All,

I’m a little stumped, I’ve created scrips before for other scenarios, but I created a simple global “On Create” scrip… and I can’t see in the logs that it’s even trying to use it when I create a ticket.

Can anyone point me in the right direction…?
Andy Speagle

“THE Student” - UCATS
Wichita State University
This e-mail message is intended only for the personal use of the recipient(s) named above. If you are not an intended recipient, you may not review, copy or distribute this message. If you have received this communication in error, please notify the Hearst Service Center (cadmin@hearstsc.com) immediately by email and delete the original message.

I ran into this the other day, too. The logs never showed my scrip
firing (not even in debug), but, if I put a print in the definition, I
could see my print statement in the logs…

For me, it turned out to be an error in the template that my scrip was
calling. Fixed the template, and all was well.
Try using a known good template for experimenting purposes?

Aye, I found that it was a simple error in my code. I am normally able
to debug things using $RT::Logger … and it finally dawned on me (I’m
kinda slow) that since I wasn’t even getting that, that something must
have been syntactically wrong with my code… to the point that Perl was
laughing at me at a fundamental level.

Sure enough… about that… I was painfully correct. I apologize for
the mailing list chatter.

Thanks!
Andy Speagle

“THE Student” - UCATS
Wichita State University

signature.asc (197 Bytes)