[rt-users] Can't locate object method "LimitToChildType"
Drew Barnes
barnesaw at ucrwcu.rwc.uc.edu
Fri Apr 8 13:56:54 EDT 2005
Sounds like something changed and your local customizations are probably
no longer in line with the API. Backup and move your local tree and
report back if the errors continue.
DB
Zbigniew wrote:
> Recently upgraded from 3.2 to 3.4.1 and I'm getting this on a lot of
> pages. Any suggestions?
>
> -Patrick
>
>
>
> Find groups whose
>
> *System error*
>
> *error:* Can't locate object method "LimitToChildType" via package
> "RT::CustomFields" at /opt/rt3/share/html/Elements/SelectGroups line 58.
> *context:*
> *...*
> *54:* <& /Elements/SelectMatch, Name=> 'GroupOp' &>
> *55:* <input size=8 name="GroupString">
> *56:* <%INIT>
> *57:* my $CFs = RT::CustomFields->new($session{'CurrentUser'});
> *58:* $CFs->LimitToChildType('RT::Group');
> *59:* $CFs->OrderBy( FIELD => 'Name' );
> *60:* </%INIT>
> *61:*
>
> *code stack:* /opt/rt3/share/html/Elements/SelectGroups:58
> /opt/rt3/share/html/Admin/Groups/index.html:72
> /opt/rt3/share/html/Admin/autohandler:47
> /opt/rt3/share/html/autohandler:215
>
> raw error <https://www.integrity-apps.com/rt/Admin/Groups/index.html#raw>
>
>Can't locate object method "LimitToChildType" via package "RT::CustomFields" at /opt/rt3/share/html/Elements/SelectGroups line 58.
>
>
>Trace begun at /usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/Exceptions.pm line 131
>HTML::Mason::Exceptions::rethrow_exception('Can\'t locate object method "LimitToChildType" via package "RT::CustomFields" at /opt/rt3/share/html/Elements/SelectGroups line 58.^J') called at /opt/rt3/share/html/Elements/SelectGroups line 58
>HTML::Mason::Commands::__ANON__ at /usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/Component.pm line 134
>HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xa29c158)') called at /usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/Request.pm line 1074
>eval {...} at /usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/Request.pm line 1068
>HTML::Mason::Request::comp(undef, undef) called at /opt/rt3/share/html/Admin/Groups/index.html line 72
>HTML::Mason::Commands::__ANON__ at /usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/Component.pm line 134
>HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xa27c344)') called at /usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/Request.pm line 1074
>eval {...} at /usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/Request.pm line 1068
>HTML::Mason::Request::comp(undef, undef) called at /usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/Request.pm line 760
>HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0xad3073c)') called at /opt/rt3/share/html/Admin/autohandler line 47
>HTML::Mason::Commands::__ANON__ at /usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/Component.pm line 134
>HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xa5de38c)') called at /usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/Request.pm line 1074
>eval {...} at /usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/Request.pm line 1068
>HTML::Mason::Request::comp(undef, undef) called at /usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/Request.pm line 760
>HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0xad3073c)') called at /opt/rt3/share/html/autohandler line 215
>HTML::Mason::Commands::__ANON__ at /usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/Component.pm line 134
>HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xa16a0b4)') called at /usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/Request.pm line 1069
>eval {...} at /usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/Request.pm line 1068
>HTML::Mason::Request::comp(undef, undef, undef) called at /usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/Request.pm line 338
>eval {...} at /usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/Request.pm line 338
>eval {...} at /usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/Request.pm line 297
>HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0xad3073c)') called at /usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/ApacheHandler.pm line 134
>eval {...} at /usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/ApacheHandler.pm line 134
>HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0xad3073c)') called at /usr/local/lib/perl5/site_perl/5.8.4/HTML/Mason/ApacheHandler.pm line 792
>HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x91d1e70)', 'Apache::RequestRec=SCALAR(0xa4c6bf4)') called at /opt/rt3/bin/webmux.pl line 105
>eval {...} at /opt/rt3/bin/webmux.pl line 105
>RT::Mason::handler('Apache::RequestRec=SCALAR(0xa4c6bf4)') called at -e line 0
>eval {...} at -e line 0
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
>RT Administrator and Developer training is coming to your town soon! (Boston, San Francisco, Austin, Sydney) Contact training at bestpractical.com for details.
>
>Be sure to check out the RT Wiki at http://wiki.bestpractical.com
>
More information about the rt-users
mailing list