<div>Ok bare with the long email!</div>
<div> </div>
<div>Yes, I have a literal ... It's quite amazing how far you can get with an RT setup based on wiki pages and rt-users listserv history without actually knowing ANY Perl what so ever :D I have ExternalAuth and RT-FM setup as other plugins... and all I did with those was follow step by step on the wiki pages/READMEs.  For both, I copied and pasted the "Set" line for the RT_SiteConfig.pm directly from there.  So being 100% honest, I never thought of what it is or how it's works, just that the README or wiki told me it was required.</div>

<div> </div>
<div>Once Ruslan pointed to that line being a potential problem, I realized RTFM wasn't ACTUALLY working... only the RTFM data was there, the functionality wasn't working. I attempted to search for more information on what that line is actually doing, but all I found was the wiki page mentioned in the previous email. Which on that page specifically states you can't have 2 @Plugin sets... that's why RTFM wasn't working...</div>

<div> </div>
<div>Now with that knowledge, I understand my config line should read</div>
<div> </div>
<div>Set(@Plugins,qw(</div>
<div>          RT::Authen::ExternalAuth</div>
<div>          RT:Extension::ExtractCustomFieldValues</div>
<div>));</div>
<div> </div>
<div> </div>
<div>The original information from Ruslan makes more sense now. I have corrected that, and the new error is back to the Can't locate the .pm in @INC.</div>
<div> </div>
<div>So now, what I believe that error is telling me is</div>
<div> </div>
<div> ...RT:Extension::ExtractCustomFieldValues </div>
<div> </div>
<div>is an abstractual definition of where the ExtractCustomFieldValues.pm is located within one of the paths of the @INC variable.</div>
<div> </div>
<div>Taking the working ExternalAuth plugin string, which is 'RT::Authen::ExternalAuth', I understand that  RT::Authen equates to RT/Authen and ExternalAuth is the .pm</div>
<div> </div>
<div>That means, as long as @INC has the path before RT/Authen/ExternalAuth.pm  we're good!</div>
<div> </div>
<div>What I don't understand now is how @INC gets /opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib</div>
<div> </div>
<div>I could do a hack, and get it to work with the knowledge I have built now, but I'm looking for the RIGHT way to do it.</div>
<div> </div>
<div>How do I tell get /opt/rt3/local/plugins/ExtractCustomFieldValues in @INC? </div>
<div> </div>
<div>And providing I can do the above, the way the tgz file untar's, the .pm file is in that directory, so my Set @Plugins line would look like </div>
<div> </div>
<div>Set(@Plugins,qw(CustomFieldValues RT:Authen:ExternalAuth));</div>
<div> </div>
<div> </div>
<div>Sorry for the long email, but I wanted to ensure my assumptions are correct all the way through the troubleshooting logic I've used.</div>
<div> </div>
<div> </div>
<div>Thanks!</div>
<div>Mike.</div>
<div> </div>
<div class="gmail_quote">On Wed, Apr 20, 2011 at 11:38 AM, Kevin Falcone <span dir="ltr"><<a href="mailto:falcone@bestpractical.com">falcone@bestpractical.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="im">On Wed, Apr 20, 2011 at 08:45:44AM -0400, Mike Johnson wrote:<br>> The Set(@Plugins line was the problem... I had a spelling mistake.<br>><br>> Now I'm seeing a different error<br>><br>> [Wed Apr 20 08:20:25 2011] [error] Can't call method "require" without a<br>
> package or object reference at /opt/rt3/bin/../lib/RT.pm line<br>> 670.\nCompilation failed in require at (eval 2) line 1.\n<br>> [Wed Apr 20 08:20:25 2011] [error] Can't load Perl file: /opt/rt3/bin/<br>> <a href="http://webmux.pl/" target="_blank">webmux.pl</a> for server <a href="http://myserver.mydomain.com:0/" target="_blank">myserver.mydomain.com:0</a>, exiting...<br>
<br></div>This implies you have some junk in your @Plugins, what else are you<br>loading?<br>
<div class="im"><br>> Set(@Plugins,qw(... RT::Extension::ExtractCustomFieldValues));<br><br></div>Do you have a literal ... in there?<br><br>Also, normally I recommend the README in an extension over something<br>in the wiki which may be unfortunately out of date (since engineers<br>
tend to update the closest docs)<br><br>When installing, did you run all the steps?  Install and initdb (but<br>only once).<br><font color="#888888"><br>-kevin<br></font>
<div>
<div></div>
<div class="h5"><br>> By looking at the code in RT.pm, and my very limited Perl knowledge... it<br>> seems when it's reading through trying to find all the Plugins defined in<br>> the RT_SiteConfig.pm it hiccups on the newly corrected Set(@Plugins...);<br>
> line for ExtractCustomFieldValues.<br>><br>> My Set line is as follows:<br>><br>> Set(@Plugins,qw(... RT::Extension::ExtractCustomFieldValues));<br>><br>> As indicated on the wiki page for ExtractCustomFieldValues.<br>
><br>> I'm trying to figure out exactly what the Set(@Plugins line means(till now,<br>> I've simply used what was posted on the wiki, without understanding what<br>> each piece of the config line actually means...) but I'm having a hard time<br>
> googling/searching wiki or rt-users for that information.<br>><br>> This page <a href="http://requesttracker.wikia.com/wiki/SiteConfig" target="_blank">http://requesttracker.wikia.com/wiki/SiteConfig</a> tells you a little<br>
> bit of the Plugins line, but doesn't define what it means.  I'm assuming I'd<br>> inherently know this if I knew more about Perl itself...<br>><br>><br>><br>> On Wed, Apr 20, 2011 at 1:17 AM, Ruslan Zakirov <<a href="mailto:ruz@bestpractical.com">ruz@bestpractical.com</a>>wrote:<br>
><br>> > On Tue, Apr 19, 2011 at 9:29 PM, Mike Johnson <<a href="mailto:mike.johnson@nosm.ca">mike.johnson@nosm.ca</a>><br>> > wrote:<br>> > > When the apache error_log shows an error stating it can't locate a given<br>
> > .pm<br>> > > file in @INC what are my steps to resolve this?<br>> > ><br>> > > Specifically, when I insert the line<br>> > ><br>> > > Set(@Plugins,qw(... RT::Extension::ExtractCustomFieldValues));<br>
> > ><br>> > > into my site config, apache won't start up and complains it cannot find<br>> > the<br>> > > ExtractCustomFieldValues.pm<br>> > ><br>> > > I searched the lists, and some have said the path to the pm is not in the<br>
> > > @INC environment variable and to move the .pm to a place that is.  In the<br>> > > error it lists the @INC variable, and /opt/rt3/local/lib or /opt/rt3/lib<br>> > > exist in it<br>> ><br>
> > In 3.8 @INC should be<br>> ><br>> > rt3/local/lib<br>> > rt3/local/plugins/X/lib<br>> > rt3/local/plugins/Y/lib<br>> > rt3/local/plugins/Z/lib<br>> > rt3/lib<br>> ><br>> > If you have set @Plugins to (X Y Z) in the config, but ...<br>
> ><br>> > * ..., but only some plugins' paths are in the @INC - check config for<br>> > double Set(@Plugins, ...)<br>> > * ..., but only some plugins' paths are in the @INC - check above and<br>
> > check permissions on dirs<br>> > * ..., but none of rt3/local/plugins/.../lib is in the @INC - check<br>> > above, may be you have earlier 3.8.x release with a bug, upgrade to<br>> > the latest<br>
> ><br>> > > , so I attempted to move the .pm in question to one of those<br>> > > areas with no luck...<br>> > > Strikes me as odd that I'd have to move this considering I've installed 2<br>
> > > other extensions prior to this one that fired up with out any issues...<br>> ><br>> > 100% there is no need in moving files around. Pretty good chances to<br>> > break things further or complicate future upgrades.<br>
> ><br>> > > Anyone give me a few steps to troubleshoot or try out?<br>> > ><br>> > > Thanks!<br>> > > Mike.<br>> ><br>> > --<br>> > Best regards, Ruslan.<br>> ><br>
><br>><br>><br>> --<br>> Mike Johnson<br>> Datatel Programmer/Analyst<br>> Northern Ontario School of Medicine<br>> 955 Oliver Road<br>> Thunder Bay, ON   P7B 5E1<br>> Phone: (807) 766-7331<br>
> Email: <a href="mailto:mike.johnson@nosm.ca">mike.johnson@nosm.ca</a><br><br></div></div></blockquote></div><br><br clear="all"><br>-- <br>Mike Johnson<br>Datatel Programmer/Analyst<br>Northern Ontario School of Medicine<br>
955 Oliver Road<br>Thunder Bay, ON   P7B 5E1<br>Phone: (807) 766-7331<br>Email: <a href="mailto:mike.johnson@nosm.ca">mike.johnson@nosm.ca</a><br>