RTFM error

Hello,

I’m running RT 3.4.3 and just installed RTFM 2.2.0RC1. I’m getting the
following error:

error: Can’t locate object method “new” via package
"RT::FM::ArticleCollection" (perhaps you forgot to load
"RT::FM::ArticleCollection"?) at
/home/web/sites/rt.dce.harvard.edu/rt3/share/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:
/home/web/sites/rt.dce.harvard.edu/rt3/share/html/RTFM/Elements/NewestArticles:60
/home/web/sites/rt.dce.harvard.edu/rt3/share/html/RTFM/index.html:24
/home/web/sites/rt.dce.harvard.edu/rt3/share/html/autohandler:215

raw error

I deleted var/mason_data/* and restarted the webserver, but still get the
error. Also, the RTFM Admin page is blank.

Using RT 3.0.12 and RTFM 2.0.3 on Breezy installed from apt, trying to
get to /RTFM/index.html I get the following error:

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/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/html/RTFM/Elements/NewestArticles:60
/usr/share/request-tracker3/html/RTFM/index.html:24
/usr/share/request-tracker3/html/autohandler:200

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/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/html/RTFM/Elements/NewestArticles line 60.^J’) called at /usr/share/request-tracker3/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(0x995b944)’) 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/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(0x98ae44c)’) 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::ApacheHandler=HASH(0x987f2b4)’) called at /usr/share/request-tracker3/html/autohandler line 200
HTML::Mason::Commands::ANON at /usr/share/perl5/HTML/Mason/Component.pm line 134
HTML::Mason::Component::run(‘HTML::Mason::Component::FileBased=HASH(0x98ad348)’) called at /usr/share/perl5/HTML/Mason/Request.pm line 1227
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 458
eval {…} at /usr/share/perl5/HTML/Mason/Request.pm line 458
eval {…} at /usr/share/perl5/HTML/Mason/Request.pm line 410
HTML::Mason::Request::exec(‘HTML::Mason::Request::ApacheHandler=HASH(0x987f2b4)’) called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 160
HTML::Mason::Request::ApacheHandler::exec(‘HTML::Mason::Request::ApacheHandler=HASH(0x987f2b4)’) called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 810
HTML::Mason::ApacheHandler::handle_request(‘HTML::Mason::ApacheHandler=HASH(0x839baa8)’, ‘Apache=SCALAR(0x839bc4c)’) called at /usr/share/request-tracker3/libexec/webmux.pl line 139
eval {…} at /usr/share/request-tracker3/libexec/webmux.pl line 139
RT::Mason::handler(‘Apache=SCALAR(0x839bc4c)’) called at /dev/null line 0
eval {…} at /dev/null line 0

It seems I’m not the only one to have encountered this:
http://www.gossamer-threads.com/lists/rt/devel/38405

And probably also this guy here:
http://lists.fsck.com/pipermail/rt-users/2003-July/015156.html
http://lists.fsck.com/pipermail/rt-users/2003-July/015358.html

And for fear of invoking a link back to the Wiki’s How to as questions:

  1. “whether your problem is on a new installation, or a system which has
    been running properly in production.” : This is after doing an apt-get
    dist-upgrade

  2. “shell> uname-a - OS, Distribution” : "Linux rt
    2.6.8.1-tyan-mini-tower #1 Tue Oct 11 11:50:27 EDT 2005 i686 GNU/Linux"
    on Breezy Badger

  3. “RT, Perl, RTFM, DBIx::SearchBuilder, Apache, ModPerl, FastCGI,
    MySQL, PostgresSQL versions.”
    ||/ Name Version Description
    ii apache 1.3.33-8ubuntu versatile, high-performance HTTP server
    ii libapache-mod- 1.29.0.3-8ubun integration of perl with the Apache web serv
    ii libdbix-search 1.27-1 Encapsulate SQL queries and rows in simple p
    ii mysql-server 4.0.24-10ubunt mysql database server binaries
    ii perl 5.8.7-5ubuntu1 Larry Wall’s Practical Extraction and Report
    ii request-tracke 3.0.12-8 Extensible trouble-ticket tracking system
    ii rtfm 2.0.3-1 RT FAQ Manager

  4. “Don’t forget to attach errors, logs, think about debug log level.” - Output includes stack trace

  5. “In any case try to search in the archives of the RT mailing lists.” - Clearly I’ve searched

  6. “If you are not running the most recent stable version of RT/RTFM/RTIR then upgrade before asking your question.
    ” - No. :slight_smile:

Thanks!

-jag

Joshua Ginsberg jag@fsf.org
Free Software Foundation - Senior Systems Administrator

signature.asc (191 Bytes)

Any thoughts about where to look to solve this would be very much
appreciated. Thanks!

-jagOn Mon, 2006-04-03 at 18:07 -0400, Joshua Ginsberg wrote:

Using RT 3.0.12 and RTFM 2.0.3 on Breezy installed from apt, trying to
get to /RTFM/index.html I get the following error:

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/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/html/RTFM/Elements/NewestArticles:60
/usr/share/request-tracker3/html/RTFM/index.html:24
/usr/share/request-tracker3/html/autohandler:200

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/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/html/RTFM/Elements/NewestArticles line 60.^J’) called at /usr/share/request-tracker3/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(0x995b944)’) 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/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(0x98ae44c)’) 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::ApacheHandler=HASH(0x987f2b4)’) called at /usr/share/request-tracker3/html/autohandler line 200
HTML::Mason::Commands::ANON at /usr/share/perl5/HTML/Mason/Component.pm line 134
HTML::Mason::Component::run(‘HTML::Mason::Component::FileBased=HASH(0x98ad348)’) called at /usr/share/perl5/HTML/Mason/Request.pm line 1227
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 458
eval {…} at /usr/share/perl5/HTML/Mason/Request.pm line 458
eval {…} at /usr/share/perl5/HTML/Mason/Request.pm line 410
HTML::Mason::Request::exec(‘HTML::Mason::Request::ApacheHandler=HASH(0x987f2b4)’) called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 160
HTML::Mason::Request::ApacheHandler::exec(‘HTML::Mason::Request::ApacheHandler=HASH(0x987f2b4)’) called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 810
HTML::Mason::ApacheHandler::handle_request(‘HTML::Mason::ApacheHandler=HASH(0x839baa8)’, ‘Apache=SCALAR(0x839bc4c)’) called at /usr/share/request-tracker3/libexec/webmux.pl line 139
eval {…} at /usr/share/request-tracker3/libexec/webmux.pl line 139
RT::Mason::handler(‘Apache=SCALAR(0x839bc4c)’) called at /dev/null line 0
eval {…} at /dev/null line 0

It seems I’m not the only one to have encountered this:
http://www.gossamer-threads.com/lists/rt/devel/38405

And probably also this guy here:
http://lists.fsck.com/pipermail/rt-users/2003-July/015156.html
http://lists.fsck.com/pipermail/rt-users/2003-July/015358.html

And for fear of invoking a link back to the Wiki’s How to as questions:

  1. “whether your problem is on a new installation, or a system which has
    been running properly in production.” : This is after doing an apt-get
    dist-upgrade

  2. “shell> uname-a - OS, Distribution” : "Linux rt
    2.6.8.1-tyan-mini-tower #1 Tue Oct 11 11:50:27 EDT 2005 i686 GNU/Linux"
    on Breezy Badger

  3. “RT, Perl, RTFM, DBIx::SearchBuilder, Apache, ModPerl, FastCGI,
    MySQL, PostgresSQL versions.”
    ||/ Name Version Description
    ++±==============-==============-============================================
    ii apache 1.3.33-8ubuntu versatile, high-performance HTTP server
    ii libapache-mod- 1.29.0.3-8ubun integration of perl with the Apache web serv
    ii libdbix-search 1.27-1 Encapsulate SQL queries and rows in simple p
    ii mysql-server 4.0.24-10ubunt mysql database server binaries
    ii perl 5.8.7-5ubuntu1 Larry Wall’s Practical Extraction and Report
    ii request-tracke 3.0.12-8 Extensible trouble-ticket tracking system
    ii rtfm 2.0.3-1 RT FAQ Manager

  4. “Don’t forget to attach errors, logs, think about debug log level.” - Output includes stack trace

  5. “In any case try to search in the archives of the RT mailing lists.” - Clearly I’ve searched

  6. “If you are not running the most recent stable version of RT/RTFM/RTIR then upgrade before asking your question.
    ” - No. :slight_smile:

Thanks!

-jag


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
Joshua Ginsberg jag@fsf.org
Free Software Foundation - Senior Systems Administrator

signature.asc (191 Bytes)

Any thoughts about where to look to solve this would be very much

  • appreciated. Thanks!

You might want to start with newer versions of RT and RTFM. Those
are…so old that I don’t expect you’ll find many people able to help.

-rw-r–r-- 1 jesse releng 1073930 Sep 14 2004 rt-3.0.12.tar.gz
-rw-rwxr-- 1 jesse releng 81094 Mar 28 2004 RTFM-2.0.3.tar.gz