[rt-users] RT::Attribute::Name Unimplemented (RT 3.4.4)

Jesse Vincent jesse at bestpractical.com
Mon Oct 10 12:54:30 EDT 2005




On Sun, Oct 09, 2005 at 11:17:00PM +0100, Raed El - Hames wrote:
> Sorry about earlier posting not sure what happened there:
> 
> The below error from un-customised rt with populated database:
>       error:  RT::Attribute::Name Unimplemented in RT::Attributes.
> (/opt/rt3/lib/RT/Attributes_Overlay.pm line 81)

Just before that line (        push @{$self->{'attr'}->{$attr->Name}}, $attr; ), 

insert the following debugging lines:

$RT::Logger->crit("Loading an attribute - ".ref($attr) .' - '.  $attr->_Value('Name'));
$RT::Logger->crit("It can name" ) if $attr->can('Name');

Then see what you get in the logs just before this error.

> 
>       context:  ...
>             492:  else {
>             493:  my ( $package, $filename, $line );
>             494:  ( $package, $filename, $line ) = caller;
>             495:
>             496:  die "$AUTOLOAD Unimplemented in $package. ($filename line
> $line) \n";
>             497:  }
>             498:
>             499:  }
>             500:
>             ...
> 
>       code stack:
> /usr/lib/perl5/vendor_perl/5.8.7/DBIx/SearchBuilder/Record.pm:496
>       /opt/rt3/lib/RT/Attributes_Overlay.pm:81
>       /opt/rt3/lib/RT/Attributes_Overlay.pm:73
>       /opt/rt3/lib/RT/Attributes_Overlay.pm:88
>       /opt/rt3/lib/RT/Attributes_Overlay.pm:119
>       /opt/rt3/share/html/Search/Elements/SelectSearchesForObjects:58
>       /opt/rt3/share/html/Search/Elements/EditSearches:75
>       /opt/rt3/share/html/Search/Build.html:99
>       /opt/rt3/share/html/autohandler:215
> 
> 
> I can't be 100% sure but it seems to me this error only occur if running
> with ssl??
> 
> Roy
> 
> >
> >
> > > >Can you make it happen without a locally modififed autohanlder and
> > > >Search/Build.html?
> > > >
> > > >
> > > This is a bit too clever for me but if you mean if I can replicate the
> > > error on raw rt-3.4.4 install without any customisation then yes I can
> ..
> > > using the populated database.
> >
> > Right. What's that stack trace look like?
> >
> > > The error first appear when you load a saved search, then it appears
> > > every other request to build.html (from Tabs,adding column, apply saved
> > > search)
> > > the system is on apache2, mod_perl v2.000001, DBIx::SearchBuilder v1.33;
> > > HTML::Mason v1.3101; mysql 4.14 on remote host and mod_ssl
> > >
> > > Roy
> > >
> > >
> > > >
> > > >
> > > >
> > > >>Roy
> > > >>
> > > >>Roy El-Hames wrote:
> > > >>
> > > >>
> > > >>
> > > >>>Ruslan and Co:
> > > >>>Well I am not geting the Name object error anymore so maybe just
> maybe
> > > >>>the below change helped me, but now I am having the error in
> > > >>>RT::Attribute::Description
> > > >>>
> > > >>>stack :
> > > >>>
> > > >>>/usr/lib/perl5/vendor_perl/5.8.7/DBIx/SearchBuilder/Record.pm:496
> > > >>>/opt/rt3/share/html/Search/Elements/SelectSearchesForObjects:63
> > > >>>/opt/rt3/share/html/Search/Elements/EditSearches:75
> > > >>>/opt/rt3/local/html/Search/Build.html:130
> > > >>>/opt/rt3/local/html/autohandler:203
> > > >>>
> > > >>>I changed
> > > >>>return $self->{'Attribute'}->Description();
> > > >>>to:  return $self->{'Attribute'}->__Value('Description');
> > > >>>in savedsearch.pm that does not fix it , and this is as far as my
> poor
> > > >>>perl can help me ... so anything else I should try??
> > > >>>
> > > >>>Roy
> > > >>>
> > > >>>
> > > >>>
> > > >>>Ruslan Zakirov wrote:
> > > >>>
> > > >>>
> > > >>>
> > > >>>>On 10/6/05, Roy El-Hames <rfh at pipex.net> wrote:
> > > >>>>
> > > >>>>
> > > >>>>
> > > >>>>
> > > >>>>>I wonder if this would help:
> > > >>>>>http://lists.fsck.com/pipermail/rt-users/2004-July/024348.html
> > > >>>>>
> > > >>>>>I changed
> > > >>>>>push @{$self->{'attr'}->{$attr->Name}}, $attr;
> > > >>>>>to:
> > > >>>>>push @{$self->{'attr'}->{$attr->__Value('Name')}}, $attr
> > > >>>>>
> > > >>>>>Now trying hard to replicate the error .
> > > >>>>>
> > > >>>>>
> > > >>>>>
> > > >>>>I didn't try reproduce error yet.
> > > >>>>
> > > >>>>This change of couse will hide error, but it's a workaround because
> > > >>>>AUTOLOAD sub MUST execute $attr->__Value('Name') finally when
> > > >>>>$attr->Name is called, but AUTOLOAD also checks if field 'Name'
> exists
> > > >>>>in $attr class. You see error this means check sometime fails for
> your
> > > >>>>setups and/or special test cases.
> > > >>>>
> > > >>>>Roy and other, if this bug bite you too often you could use this
> > > >>>>change to workaround problem.
> > > >>>>
> > > >>>>
> > > >>>>
> > > >>>>
> > > >>>>
> > > >>>>>Roy
> > > >>>>>
> > > >>>>>Joby Walker wrote:
> > > >>>>>
> > > >>>>>
> > > >>>>>
> > > >>>>>
> > > >>>>>
> > > >>>>>>-----BEGIN PGP SIGNED MESSAGE-----
> > > >>>>>>Hash: SHA1
> > > >>>>>>
> > > >>>>>>I have no idea how this could impact things but...
> > > >>>>>>
> > > >>>>>>I just installed the RT-OnlineDocs and to support it added
> > > >>>>>>Pod::Simple::HTML (and it's dependency -- Pod::Escapes).  This
> caused
> > > >>>>>>the exact same issues as Jim and Roy.  When I backed out those two
> > > >>>>>>packages, everything seems fine.
> > > >>>>>>
> > > >>>>>>Joby Walker
> > > >>>>>>ITI SSG, University of Washington
> > > >>>>>>- --
> > > >>>>>>PGP key: https://staff.washington.edu/joby/joby-u-pub.asc
> > > >>>>>>
> > > >>>>>>
> > > >>>>>>Roy El-Hames wrote:
> > > >>>>>>
> > > >>>>>>
> > > >>>>>>
> > > >>>>>>
> > > >>>>>>
> > > >>>>>>
> > > >>>>>>>Glad to see Ruslan as helpful a ever ..
> > > >>>>>>>I get the same error in Querybuilder, not neccessary loading a
> saved
> > > >>>>>>>search but when I when applying  advanced search or adding a
> > > >>>>>>>column to
> > > >>>>>>>results , sometimes it correct it and other user just have to
> kill
> > > >>>>>>>the
> > > >>>>>>>browser and start again ..it happens with both IE and firefox ..
> > > >>>>>>>The system is RT-3.4.4 , remost host mysql
> > > >>>>>>>4.1.14,apache2,mod_perl2,mason1.31, ssl enabled, dbix 1.33
> > > >>>>>>>
> > > >>>>>>>I mentioned it twice before and just thought I'll mention it
> again
> > > >>>>>>>, is
> > > >>>>>>>rt-3.4.4 that bad or ist my experience .. 3-2-3 was running very
> > > >>>>>>>smoothly, now we having to restart mysql twice to 3 times a day
> ..
> > > >>>>>>>
> > > >>>>>>>Roy
> > > >>>>>>>
> > > >>>>>>>Ruslan Zakirov wrote:
> > > >>>>>>>
> > > >>>>>>>
> > > >>>>>>>
> > > >>>>>>>
> > > >>>>>>>
> > > >>>>>>>
> > > >>>>>>>
> > > >>>>>>>>On 10/3/05, Jim Rice <jim at bydesignpublishing.com> wrote:
> > > >>>>>>>>
> > > >>>>>>>>
> > > >>>>>>>>
> > > >>>>>>>>
> > > >>>>>>>>
> > > >>>>>>>>
> > > >>>>>>>>
> > > >>>>>>>>
> > > >>>>>>>>>On Mon, 2005-10-03 at 22:44 +0400, Ruslan Zakirov wrote:
> > > >>>>>>>>>
> > > >>>>>>>>>
> > > >>>>>>>>>
> > > >>>>>>>>>
> > > >>>>>>>>>
> > > >>>>>>>>>
> > > >>>>>>>>>
> > > >>>>>>>>>
> > > >>>>>>>>>>On 10/3/05, Jim Rice <jim at bydesignpublishing.com> wrote:
> > > >>>>>>>>>>
> > > >>>>>>>>>>
> > > >>>>>>>>>>
> > > >>>>>>>>>>
> > > >>>>>>>>>>
> > > >>>>>>>>>>
> > > >>>>>>>>>>
> > > >>>>>>>>>>
> > > >>>>>>>>>>>I've seen similar postings in the archives, but no solution.
> > > >>>>>>>>>>>
> > > >>>>>>>>>>>New installation, nothing custom (yet), only one saved
> search.
> > > >>>>>>>>>>>
> > > >>>>>>>>>>>
> > > >>>>>>>>>>>
> > > >>>>>>>>>>>
> > > >>>>>>>>>>>
> > > >>>>>>>>>>>
> > > >>>>>>>>>>SavedSearch is the reason of error.
> > > >>>>>>>>>>
> > > >>>>>>>>>>
> > > >>>>>>>>>>
> > > >>>>>>>>>>
> > > >>>>>>>>>>
> > > >>>>>>>>>>
> > > >>>>>>>>>>
> > > >>>>>>>>>>
> > > >>>>>>>>>>>>From Home page, click on Tickets and get:
> > > >>>>>>>>>>>
> > > >>>>>>>>>>>
> > > >>>>>>>>>>>
> > > >>>>>>>>>>>
> > > >>>>>>>>>>>
> > > >>>>>>>>>>>>
> > > >>>>>>>>>>>>
> > > >>>>>>>>>>>>
> > > >>>>>>>>>>>error:  RT::Attribute::Name Unimplemented in RT::Attributes.
> > > >>>>>>>>>>>(/usr/local/rt3/lib/RT/Attributes_Overlay.pm line 81)
> > > >>>>>>>>>>>
> > > >>>>>>>>>>>context:
> > > >>>>>>>>>>>...
> > > >>>>>>>>>>>492:    else {
> > > >>>>>>>>>>>493:    my ( $package, $filename, $line );
> > > >>>>>>>>>>>494:    ( $package, $filename, $line ) = caller;
> > > >>>>>>>>>>>495:
> > > >>>>>>>>>>>496:    die "$AUTOLOAD Unimplemented in $package. ($filename
> line
> > > >>>>>>>>>>>$line)
> > > >>>>>>>>>>>\n";
> > > >>>>>>>>>>>497:    }
> > > >>>>>>>>>>>
> > > >>>>>>>>>>>
> > > >>>>>>>>>>>
> > > >>>>>>>>>>>
> > > >>>>>>>>>>>
> > > >>>>>>>>>>>
> > > >>>>>>>>><snip>
> > > >>>>>>>>>
> > > >>>>>>>>>I thought it might be, but would you care to elaborate?
> > > >>>>>>>>>
> > > >>>>>>>>>Is it a bug?  Is there a fix?  Was it something I said?
> > > >>>>>>>>>
> > > >>>>>>>>>
> > > >>>>>>>>>
> > > >>>>>>>>>
> > > >>>>>>>>>
> > > >>>>>>>>>
> > > >>>>>>>>As far as I understand you use
> > > >>>>>>>>http://wiki.bestpractical.com/index.cgi?HomePageSavedSearches
> > > >>>>>>>>that is external contribution, if you read that page you'll see
> your
> > > >>>>>>>>error there.
> > > >>>>>>>>
> > > >>>>>>>>I think Stephen may know about error more, Stephen?
> > > >>>>>>>>
> > > >>>>>>>>
> > > >>>>>>>>
> > > >>>>>>>>
> > > >>>>>>>>
> > > >>>>>>>>
> > > >>>>>>>>
> > > >>>>>>>>
> > > >>>>>>>>
> > > >>>>>>>>>Thanks!
> > > >>>>>>>>>
> > > >>>>>>>>>-- 
> > > >>>>>>>>>Jim Rice
> > > >>>>>>>>>by Design Publishing
> > > >>>>>>>>>11626 N. Tracey Road
> > > >>>>>>>>>Hayden, Idaho  83835
> > > >>>>>>>>>
> > > >>>>>>>>>
> > > >>>>>>>>>
> > > >>>>>>>>>
> > > >>>>>>>>>
> > > >>>>>>>>>
> > > >>>>>>>>>
> > > >>>>>>>>-- 
> > > >>>>>>>>Best regards, Ruslan.
> > > >>>>>>>>_______________________________________________
> > > >>>>>>>>http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> > > >>>>>>>>
> > > >>>>>>>>Be sure to check out the RT Wiki at
> http://wiki.bestpractical.com
> > > >>>>>>>>
> > > >>>>>>>>Buy your copy of our new book, RT Essentials, today!
> > > >>>>>>>>Download a free sample chapter from
> http://rtbook.bestpractical.com
> > > >>>>>>>>
> > > >>>>>>>>
> > > >>>>>>>>
> > > >>>>>>>>
> > > >>>>>>>>
> > > >>>>>>>>
> > > >>>>>>>>
> > > >>>>>>>>
> > > >>>>>>>_______________________________________________
> > > >>>>>>>http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> > > >>>>>>>
> > > >>>>>>>Be sure to check out the RT Wiki at http://wiki.bestpractical.com
> > > >>>>>>>
> > > >>>>>>>Buy your copy of our new book, RT Essentials, today!
> > > >>>>>>>Download a free sample chapter from
> http://rtbook.bestpractical.com
> > > >>>>>>>
> > > >>>>>>>
> > > >>>>>>>
> > > >>>>>>>
> > > >>>>>>>
> > > >>>>>>-----BEGIN PGP SIGNATURE-----
> > > >>>>>>Version: GnuPG v1.4.1 (GNU/Linux)
> > > >>>>>>Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
> > > >>>>>>
> > > >>>>>>iD8DBQFDQyaxgA0gpghkf88RAtOLAJ4swReTYrVYvl5rjwm5vR4em91LRgCgqBID
> > > >>>>>>+epbV4/9fifww/OOi74hLbk=
> > > >>>>>>=Egn3
> > > >>>>>>-----END PGP SIGNATURE-----
> > > >>>>>>
> > > >>>>>>
> > > >>>>>>
> > > >>>>>>
> > > >>>>>>
> > > >>>>>>
> > > >>>>>
> > > >>>>>
> > > >>>>>
> > > >>>>
> > > >>>>-- 
> > > >>>>Best regards, Ruslan.
> > > >>>>
> > > >>>>
> > > >>>>
> > > >>>>
> > > >>>>
> > > >>>_______________________________________________
> > > >>>http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> > > >>>
> > > >>>Be sure to check out the RT Wiki at http://wiki.bestpractical.com
> > > >>>
> > > >>>Buy your copy of our new book, RT Essentials, today!
> > > >>>Download a free sample chapter from http://rtbook.bestpractical.com
> > > >>>
> > > >>>
> > > >>>
> > > >>_______________________________________________
> > > >>http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> > > >>
> > > >>Be sure to check out the RT Wiki at http://wiki.bestpractical.com
> > > >>
> > > >>Buy your copy of our new book, RT Essentials, today!
> > > >>
> > > >>Download a free sample chapter from http://rtbook.bestpractical.com
> > > >>
> > > >>
> > > >>
> > > >
> > > >
> > > >
> > >
> >
> > -- 
> > _______________________________________________
> > http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> >
> > Be sure to check out the RT Wiki at http://wiki.bestpractical.com
> >
> > Buy your copy of our new book, RT Essentials, today!
> >
> > Download a free sample chapter from http://rtbook.bestpractical.com
> 

-- 



More information about the rt-users mailing list