Installing RTFM

Hi All,

I have successfully installed RT 3.4.2 on Ubuntu 5.10, using the debian
package. After some tweaking it all worked fine, so I got adventurous and
tried installing RTFM. To cut a long story short, installing RTFM via apt
get also installs an older version of RT, and I had to do a lot of
cleaning to get it all back again.

Anyway, downloaded the RTFM-2.2.0RC2.tar.gz from the Best Practical site,
and followed the instructions. Everything seemed to be fine except that
"make initdb" failed, grumbling about the mysql password and I had to hack
where it was looking for rt-setup-database via a symbolic link, but I
found that the previous install had done the mysql code anyway.

So having reloaded apache, no RTFM link in the main RT interface, and when
I navigate to /rt/RTFM/index.html I get the errors shown below.

I don’t know if the two problems are related, so any help would be
appreciated. The only place I can find a "use RT::FM::ArticleCollection"
line of code is in subdirectory called “Callbacks”.

Regards,

Marco

error: Can’t locate object method “new” via package
"RT::FM::ArticleCollection" (perhaps you forgot to load
"RT::FM::ArticleCollection"?) at
/usr/share/request-tracker3.4/html/RTFM/Elements/NewestArticles line 60.
context:

56: <%INIT>
57: my $rows = 10;
58: my $i;
59: my $MyArticles;
60: $MyArticles = new RT::FM::ArticleCollection
($session{‘CurrentUser’}); 61: $MyArticles->UnLimit;
62: $MyArticles->RowsPerPage($rows);
63: $MyArticles->OrderBy(FIELD => ‘LastUpdated’, ORDER => ‘DESC’); 64:

code stack:
/usr/share/request-tracker3.4/html/RTFM/Elements/NewestArticles:60
/usr/share/request-tracker3.4/html/RTFM/index.html:24
/usr/share/request-tracker3.4/html/autohandler:215

raw error:

Can’t locate object method “new” via package “RT::FM::ArticleCollection”
(perhaps you forgot to load “RT::FM::ArticleCollection”?) at
/usr/share/request-tracker3.4/html/RTFM/Elements/NewestArticles line 60.

Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 128
HTML::Mason::Exceptions::rethrow_exception(‘Can’t locate object method
"new" via package “RT::FM::ArticleCollection” (perhaps you forgot to
load “RT::FM::ArticleCollection”?) at
/usr/share/request-tracker3.4/html/RTFM/Elements/NewestArticles line
60.^J’) called at
/usr/share/request-tracker3.4/html/RTFM/Elements/NewestArticles line 60
HTML::Mason::Commands::ANON at
/usr/share/perl5/HTML/Mason/Component.pm line 134
HTML::Mason::Component::run(‘HTML::Mason::Component::FileBased=HASH(0x2aaaac2971a0)’)
called at /usr/share/perl5/HTML/Mason/Request.pm line 1232 eval {…} at
/usr/share/perl5/HTML/Mason/Request.pm line 1226
HTML::Mason::Request::comp(undef, undef) called at
/usr/share/request-tracker3.4/html/RTFM/index.html line 24
HTML::Mason::Commands::ANON at
/usr/share/perl5/HTML/Mason/Component.pm line 134
HTML::Mason::Component::run(‘HTML::Mason::Component::FileBased=HASH(0x2ec4db0)’)
called at /usr/share/perl5/HTML/Mason/Request.pm line 1232 eval {…} at
/usr/share/perl5/HTML/Mason/Request.pm line 1226
HTML::Mason::Request::comp(undef, undef) called at
/usr/share/perl5/HTML/Mason/Request.pm line 898
HTML::Mason::Request::call_next(‘HTML::Mason::Request::CGI=HASH(0x3422640)’)
called at /usr/share/request-tracker3.4/html/autohandler line 215
HTML::Mason::Commands::ANON at
/usr/share/perl5/HTML/Mason/Component.pm line 134
HTML::Mason::Component::run(‘HTML::Mason::Component::FileBased=HASH(0x2d3bfc0)’)
called at /usr/share/perl5/HTML/Mason/Request.pm line 1232 eval {…} at
/usr/share/perl5/HTML/Mason/Request.pm line 1226
HTML::Mason::Request::comp(undef, undef, undef) called at
/usr/share/perl5/HTML/Mason/Request.pm line 460 eval {…} at
/usr/share/perl5/HTML/Mason/Request.pm line 460
eval {…} at /usr/share/perl5/HTML/Mason/Request.pm line 410
HTML::Mason::Request::exec(‘HTML::Mason::Request::CGI=HASH(0x3422640)’)
called at /usr/share/perl5/HTML/Mason/Interp.pm line 322
HTML::Mason::Interp::exec(undef, undef) called at
/usr/share/perl5/HTML/Mason/CGIHandler.pm line 89 eval {…} at
/usr/share/perl5/HTML/Mason/CGIHandler.pm line 89
HTML::Mason::CGIHandler::_handler(‘HTML::Mason::CGIHandler=HASH(0x289fa60)’,
‘HASH(0x2aaaac2a1990)’) called at
/usr/share/perl5/HTML/Mason/CGIHandler.pm line 72
HTML::Mason::CGIHandler::handle_cgi_object(‘HTML::Mason::CGIHandler=HASH(0x289fa60)’,
‘CGI::Fast=HASH(0x3422ac0)’) called at
/usr/share/request-tracker3.4/libexec/mason_handler.fcgi line 76 eval
{…} at /usr/share/request-tracker3.4/libexec/mason_handler.fcgi line
76

Marco van Beek
Supporting Role Ltd.

I just installed RTFM 2.2rc2 on 3.6 and had some trouble with where the
installer sent the files.

Your rt3/lib/ area where you should have all the RT perl modules should
have some new pieces in it (FM, etc). Depending on how you configured RT
for installation this may be in different places, however, if you can find
your RT.pm module, that’s where there should be an RT/ directory with an
FM/ subdir, and within that all the pms for RTFM. If the packages for
RTFM aren’t there, then try installing again, and check the prefix option
on the rtfm configure command when you are installing. Perhaps you need
to tell the RTFM installer where to put things via the prefix (and other
options on configure)

Sorry I can’t be more help.

Travis

Travis C. Brooks
SPIRES Scientific Databases Manager
Stanford Linear Accelerator Center
http://www.slac.stanford.edu/spiresOn Tue, 25 Jul 2006, Marco van Beek wrote:

Hi All,

I have successfully installed RT 3.4.2 on Ubuntu 5.10, using the debian
package. After some tweaking it all worked fine, so I got adventurous and
tried installing RTFM. To cut a long story short, installing RTFM via apt
get also installs an older version of RT, and I had to do a lot of
cleaning to get it all back again.

Anyway, downloaded the RTFM-2.2.0RC2.tar.gz from the Best Practical site,
and followed the instructions. Everything seemed to be fine except that
"make initdb" failed, grumbling about the mysql password and I had to hack
where it was looking for rt-setup-database via a symbolic link, but I
found that the previous install had done the mysql code anyway.

So having reloaded apache, no RTFM link in the main RT interface, and when
I navigate to /rt/RTFM/index.html I get the errors shown below.

I don’t know if the two problems are related, so any help would be
appreciated. The only place I can find a "use RT::FM::ArticleCollection"
line of code is in subdirectory called “Callbacks”.

Regards,

Marco

===========================================================

error: Can’t locate object method “new” via package
"RT::FM::ArticleCollection" (perhaps you forgot to load
"RT::FM::ArticleCollection"?) at
/usr/share/request-tracker3.4/html/RTFM/Elements/NewestArticles line 60.
context:

56: <%INIT>
57: my $rows = 10;
58: my $i;
59: my $MyArticles;
60: $MyArticles = new RT::FM::ArticleCollection
($session{‘CurrentUser’}); 61: $MyArticles->UnLimit;
62: $MyArticles->RowsPerPage($rows);
63: $MyArticles->OrderBy(FIELD => ‘LastUpdated’, ORDER => ‘DESC’); 64:

code stack:
/usr/share/request-tracker3.4/html/RTFM/Elements/NewestArticles:60
/usr/share/request-tracker3.4/html/RTFM/index.html:24
/usr/share/request-tracker3.4/html/autohandler:215

===========================================================
raw error:

Can’t locate object method “new” via package “RT::FM::ArticleCollection”
(perhaps you forgot to load “RT::FM::ArticleCollection”?) at
/usr/share/request-tracker3.4/html/RTFM/Elements/NewestArticles line 60.

Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 128
HTML::Mason::Exceptions::rethrow_exception(‘Can’t locate object method
"new" via package “RT::FM::ArticleCollection” (perhaps you forgot to
load “RT::FM::ArticleCollection”?) at
/usr/share/request-tracker3.4/html/RTFM/Elements/NewestArticles line
60.^J’) called at
/usr/share/request-tracker3.4/html/RTFM/Elements/NewestArticles line 60
HTML::Mason::Commands::ANON at
/usr/share/perl5/HTML/Mason/Component.pm line 134
HTML::Mason::Component::run(‘HTML::Mason::Component::FileBased=HASH(0x2aaaac2971a0)’)
called at /usr/share/perl5/HTML/Mason/Request.pm line 1232 eval {…} at
/usr/share/perl5/HTML/Mason/Request.pm line 1226
HTML::Mason::Request::comp(undef, undef) called at
/usr/share/request-tracker3.4/html/RTFM/index.html line 24
HTML::Mason::Commands::ANON at
/usr/share/perl5/HTML/Mason/Component.pm line 134
HTML::Mason::Component::run(‘HTML::Mason::Component::FileBased=HASH(0x2ec4db0)’)
called at /usr/share/perl5/HTML/Mason/Request.pm line 1232 eval {…} at
/usr/share/perl5/HTML/Mason/Request.pm line 1226
HTML::Mason::Request::comp(undef, undef) called at
/usr/share/perl5/HTML/Mason/Request.pm line 898
HTML::Mason::Request::call_next(‘HTML::Mason::Request::CGI=HASH(0x3422640)’)
called at /usr/share/request-tracker3.4/html/autohandler line 215
HTML::Mason::Commands::ANON at
/usr/share/perl5/HTML/Mason/Component.pm line 134
HTML::Mason::Component::run(‘HTML::Mason::Component::FileBased=HASH(0x2d3bfc0)’)
called at /usr/share/perl5/HTML/Mason/Request.pm line 1232 eval {…} at
/usr/share/perl5/HTML/Mason/Request.pm line 1226
HTML::Mason::Request::comp(undef, undef, undef) called at
/usr/share/perl5/HTML/Mason/Request.pm line 460 eval {…} at
/usr/share/perl5/HTML/Mason/Request.pm line 460
eval {…} at /usr/share/perl5/HTML/Mason/Request.pm line 410
HTML::Mason::Request::exec(‘HTML::Mason::Request::CGI=HASH(0x3422640)’)
called at /usr/share/perl5/HTML/Mason/Interp.pm line 322
HTML::Mason::Interp::exec(undef, undef) called at
/usr/share/perl5/HTML/Mason/CGIHandler.pm line 89 eval {…} at
/usr/share/perl5/HTML/Mason/CGIHandler.pm line 89
HTML::Mason::CGIHandler::_handler(‘HTML::Mason::CGIHandler=HASH(0x289fa60)’,
‘HASH(0x2aaaac2a1990)’) called at
/usr/share/perl5/HTML/Mason/CGIHandler.pm line 72
HTML::Mason::CGIHandler::handle_cgi_object(‘HTML::Mason::CGIHandler=HASH(0x289fa60)’,
‘CGI::Fast=HASH(0x3422ac0)’) called at
/usr/share/request-tracker3.4/libexec/mason_handler.fcgi line 76 eval
{…} at /usr/share/request-tracker3.4/libexec/mason_handler.fcgi line
76

Marco van Beek
Supporting Role Ltd.


http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

We’re hiring! Come hack Perl for Best Practical: http://bestpractical.com/about/jobs.html

Hi,

I tried this and it still seems to have the same problems. It definitely
seems to have problems finding the RT::FM Modules, even though they are
in the same directory structure as the other RT Modules. Permissions
seem fine, so I am not sure what to try next.

Any suggestions anyone?

Brooks, Travis C. wrote:

Hi All,

I have got a little further with this after realising that mason was
caching the files. If I insert a line with
"use RT::RM::ArticleCollection" in the /html/RTFM/Elements/NewestArticle
file, it all starts to work, so what is happening is that the file with
this information in is not getting loaded.

Now, the only files I have with this line in it are:

grep -Rn “use RT::FM::ArticleCollection” ./*

./bin/notify:39:use RT::FM::ArticleCollection;
./html/Callbacks/RTFM/autohandler/Default:21:use RT::FM::ArticleCollection;
./html/Callbacks/RTFM/Ticket/Update.html/BeforeMessageBox:47:use RT::FM::ArticleCollection;
./lib/RT/FM/ArticleCollection.pm:15: use RT::FM::ArticleCollection
./lib/RT/FM/Article_Overlay.pm:26:use RT::FM::ArticleCollection;
./lib/RT/FM/Class_Overlay.pm:27:use RT::FM::ArticleCollection;

So what I now need to know is which file is supposed to load this
library? I would guess it is supposed to be
./html/Callbacks/RTFM/autohandler/Default

But I can’t see where this is being called from.

Any help appreciated.

Ta,

Marco

Marco van Beek wrote:

I have got a little further with this after realising that mason was
caching the files. If I insert a line with
"use RT::RM::ArticleCollection" in the /html/RTFM/Elements/NewestArticle
file, it all starts to work, so what is happening is that the file with
this information in is not getting loaded.

Now, the only files I have with this line in it are:

grep -Rn “use RT::FM::ArticleCollection” ./*

I have installed RT-3.6.0 + RTFM-2.2.0rc2 multiple times and seem to
remember I had the same problem. What did help in my case was to use the
latest svn version of RTFM.

Joop

Joop van de Wege JoopvandeWege@mococo.nl