I don’t see anything wrong, but perhaps you might review here:
http://requesttracker.wikia.com/wiki/CustomizingWithCallbacks
maybe soemthing will jump out at you that I don’t see.
Also, just to check – I don’t think the default logging is at info level – gets a bit chatty. Is it possible you are not seeing it just because you are not logging that level?
IN your etc/RT_SIteConfig file you should have something like: ?
Logging
Set($LogToSyslog , ‘info’);
Set($LogToScreen , ‘info’);
Set($LogToFile , 1);
Set($LogDir, ‘var/log’);
Set($LogToFileNamed , “rt.log”); #log to rt.log
Set($LogStackTraces, ‘’);
Set(@LogToSyslogConf, ());
Set($StatementLog, ‘’);
End logging-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Jeff Blaine
Sent: Thursday, January 06, 2011 10:17 PM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Communicate a message to web UI from inside Scrip?
Pulling my hair out here. Why is this callback not being
tickled? I see nothing in my logs.
RT 3.8.7
Mason cache cleared and server restarted a million times.
The call to the callback in Ticket/Display.html is:
$m->callback(
CallbackName => 'BeforeDisplay',
TicketObj => \$TicketObj,
Tickets => \$Tickets,
Actions => \@Actions,
ARGSRef => \%ARGS,
);
And my setup is:
[root@rtdev1 Display.html]# pwd
/rt/local/html/Callbacks/MyCallbacks/Ticket/Display.html
[root@rtdev1 Display.html]# ls -l BeforeDisplay
-rw-r–r-- 1 rt root 689 Jan 6 22:06 BeforeDisplay
[root@rtdev1 Display.html]# cat BeforeDisplay
<%INIT>
$RT::Logger->info(“In Callback/Display.html/BeforeDisplay\n”);
return 1;
</%INIT>
<%ARGS>
$Actions => []
</%ARGS>
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.