[rt-users] StockAnswers for RT

Mathew Snyder theillien at yahoo.com
Thu Nov 9 02:02:39 EST 2006


Kris,

I discovered the reason that I still couldn't see it in my development
installation is that I had to chmod the directories.  Having done this I
now see StockAnswers under Tools.  However, I am now receiving an error:

System error
error:  	Error during compilation of
/usr/local/rt-3.6.1/local/html/Tools/StockAnswers/index.html:
Can't locate Date/Manip.pm in @INC (@INC contains:
/usr/local/rt-3.6.1/local/lib /usr/local/rt-3.6.1/lib
/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7
/usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5
/usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7
/usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5
/usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3
/usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi
/usr/lib/perl5/5.8.8 . /etc/httpd) at
/usr/local/rt-3.6.1/local/html/Tools/StockAnswers/index.html line 15.

Stack:
[/usr/local/rt-3.6.1/local/html/Tools/StockAnswers/index.html:15]
[Date/Manip.pm:15]
[/usr/lib/perl5/vendor_perl/5.8.7/HTML/Mason/Interp.pm:811]
[/usr/lib/perl5/vendor_perl/5.8.7/HTML/Mason/Interp.pm:441]
[/usr/lib/perl5/vendor_perl/5.8.7/HTML/Mason/Request.pm:238]
[/usr/lib/perl5/vendor_perl/5.8.7/HTML/Mason/Request.pm:204]
[/usr/lib/perl5/vendor_perl/5.8.7/HTML/Mason/ApacheHandler.pm:97]
[/usr/lib/perl5/vendor_perl/5.8.7/Class/Container.pm:275]
[/usr/lib/perl5/vendor_perl/5.8.7/Class/Container.pm:353]
[/usr/lib/perl5/vendor_perl/5.8.7/HTML/Mason/Interp.pm:348]
[/usr/lib/perl5/vendor_perl/5.8.7/HTML/Mason/ApacheHandler.pm:869]
[/usr/lib/perl5/vendor_perl/5.8.7/HTML/Mason/ApacheHandler.pm:823]
[/usr/local/rt-3.6.1/bin/webmux.pl:123]
[Date/Manip.pm:15]
BEGIN failed--compilation aborted at
/usr/local/rt-3.6.1/local/html/Tools/StockAnswers/index.html line 15.

Stack:
[/usr/local/rt-3.6.1/local/html/Tools/StockAnswers/index.html:15]
[/usr/lib/perl5/vendor_perl/5.8.7/HTML/Mason/Interp.pm:811]
[/usr/lib/perl5/vendor_perl/5.8.7/HTML/Mason/Interp.pm:441]
[/usr/lib/perl5/vendor_perl/5.8.7/HTML/Mason/Request.pm:238]
[/usr/lib/perl5/vendor_perl/5.8.7/HTML/Mason/Request.pm:204]
[/usr/lib/perl5/vendor_perl/5.8.7/HTML/Mason/ApacheHandler.pm:97]
[/usr/lib/perl5/vendor_perl/5.8.7/Class/Container.pm:275]
[/usr/lib/perl5/vendor_perl/5.8.7/Class/Container.pm:353]
[/usr/lib/perl5/vendor_perl/5.8.7/HTML/Mason/Interp.pm:348]
[/usr/lib/perl5/vendor_perl/5.8.7/HTML/Mason/ApacheHandler.pm:869]
[/usr/lib/perl5/vendor_perl/5.8.7/HTML/Mason/ApacheHandler.pm:823]
[/usr/local/rt-3.6.1/bin/webmux.pl:123]
[/usr/local/rt-3.6.1/local/html/Tools/StockAnswers/index.html:15]

context:  	
...  	
11:  	<h3>Unfortunately, you do not have access to edit templates.</h3>
12:  	% }
13:  	
14:  	<%INIT>
15:  	use Date::Manip;
16:  	use StockAnswers;
17:  	
18:  	# Determine username
19:  	my($user ) = $session{CurrentUser}->PrincipalObj;
...  	
code stack:  	/usr/lib/perl5/vendor_perl/5.8.7/HTML/Mason/Interp.pm:445
/usr/lib/perl5/vendor_perl/5.8.7/HTML/Mason/Request.pm:238
/usr/lib/perl5/vendor_perl/5.8.7/HTML/Mason/Request.pm:204
/usr/lib/perl5/vendor_perl/5.8.7/HTML/Mason/ApacheHandler.pm:97
/usr/lib/perl5/vendor_perl/5.8.7/Class/Container.pm:275
/usr/lib/perl5/vendor_perl/5.8.7/Class/Container.pm:353
/usr/lib/perl5/vendor_perl/5.8.7/HTML/Mason/Interp.pm:348
/usr/lib/perl5/vendor_perl/5.8.7/HTML/Mason/ApacheHandler.pm:869
/usr/lib/perl5/vendor_perl/5.8.7/HTML/Mason/ApacheHandler.pm:823
/usr/local/rt-3.6.1/bin/webmux.pl:123
-e:0

I did a find for Manip.pm but it would appear I don't have it.  Is there
a module I should install for this?

Mathew


Kris Merrill wrote:
> Excellent point - the ${RT_USER} is the user that runs the RT
> application.  For example, if you use Apache (without suexec), the files
> are owned by apache or whatever user that executes httpd.  The template
> directories and files need to be accessible (read + write) by the RT
> application user.
> 
> To further assist you, can you tell me which version of RT you are
> running, apache setup, etc...?  Was the mason cache cleaned out before
> restarting RT?  Were the files installed under the /local directory of
> your RT3 installation?
> 
> Regardless whether or not if the Callbacks are working, if StockAnswers
> is installed under /local, you should be able to access the editor
> under:  rt.web.url.com/Tools/StockAnswers/index.html and the
> StockAnswers configuration under:
> rt.web.url.com/Admin/Tools/StockAnswersConfiguration.html (if logged in
> as a SuperUser for the latter).
> 
> I've only been able to test StockAnswers on a fresh install of RT 3.6.1
> and a customized 3.4.2 version.  The Callbacks work for 3.6.1, but may
> need to be tweaked for earlier versions of RT?
> 
> I certainly appreciate the input and I'll revise the instructions so
> they read more clearly.
> 
> -Kris
> 



More information about the rt-users mailing list