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:
…
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:
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:
And for fear of invoking a link back to the Wiki’s How to as questions:
“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
“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
“Don’t forget to attach errors, logs, think about debug log level.” - Output includes stack trace
“In any case try to search in the archives of the RT mailing lists.” - Clearly I’ve searched
"If you are not running the most recent stable version of RT/RTFM/RTIR then upgrade before asking your question.
" - No.
Thanks!
-jag
Joshua Ginsberg jag@fsf.org
Free Software Foundation - Senior Systems Administrator
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:
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
And for fear of invoking a link back to the Wiki’s How to as questions:
“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
“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
“Don’t forget to attach errors, logs, think about debug log level.” - Output includes stack trace
“In any case try to search in the archives of the RT mailing lists.” - Clearly I’ve searched
"If you are not running the most recent stable version of RT/RTFM/RTIR then upgrade before asking your question.
" - No.