Error in 3.0.9

Recently upgraded from 3.0.8 to 3.0.9 on our dev box, including perl
upgrade and now seeing this error.
error: Can’t locate object method “Columns” via package
“RT::Attachments” at /opt/rt3/share/html/Ticket/Elements/ShowAttachments
line 66.
context:

62:
my %documents;
63:
my $transactions =
$Ticket->Transactions();
64:
while (my $trans =
$transactions->Next()) {
65:
my $attachments =
$trans->Attachments();
66:
$attachments->Columns( qw( Id
Filename ContentType Headers Subject
Parent ContentEncoding ContentType
TransactionId) );
67:
$attachments->Limit(FIELD =>
‘Filename’, OPERATOR => ‘IS NOT’,
VALUE => ‘NULL’, QUOTEVALUE => 0,
ENTRYAGGREGATOR => ‘AND’);
68:
$attachments->Limit(FIELD =>
‘Filename’, OPERATOR => ‘!=’, VALUE
=> ‘’, ENTRYAGGREGATOR => ‘AND’);
69:
while (my $attach =
$attachments->Next()) {
70:
next unless ($attach->Filename());

code stack: /opt/rt3/share/html/Ticket/Elements/ShowAttachments:66
/opt/rt3/share/html/Ticket/Elements/ShowSummary:68
/opt/rt3/share/html/Ticket/Display.html:33
/opt/rt3/share/html/autohandler:195

Anyone any ideas where to look. ShowAttachments is the default
unmoderated file from the distro.

Rick Ellis Richard.Ellis@Sun.COM

Upgrade DBIx::SearchBuilder.

-ToddOn Mon, Mar 08, 2004 at 01:42:08PM +0000, Rick Ellis wrote:

Recently upgraded from 3.0.8 to 3.0.9 on our dev box, including perl
upgrade and now seeing this error.
error: Can’t locate object method “Columns” via package
“RT::Attachments” at /opt/rt3/share/html/Ticket/Elements/ShowAttachments
line 66.
context:

62:
my %documents;
63:
my $transactions =
$Ticket->Transactions();
64:
while (my $trans =
$transactions->Next()) {
65:
my $attachments =
$trans->Attachments();
66:
$attachments->Columns( qw( Id
Filename ContentType Headers Subject
Parent ContentEncoding ContentType
TransactionId) );
67:
$attachments->Limit(FIELD =>
‘Filename’, OPERATOR => ‘IS NOT’,
VALUE => ‘NULL’, QUOTEVALUE => 0,
ENTRYAGGREGATOR => ‘AND’);
68:
$attachments->Limit(FIELD =>
‘Filename’, OPERATOR => ‘!=’, VALUE
=> ‘’, ENTRYAGGREGATOR => ‘AND’);
69:
while (my $attach =
$attachments->Next()) {
70:
next unless ($attach->Filename());

code stack: /opt/rt3/share/html/Ticket/Elements/ShowAttachments:66
/opt/rt3/share/html/Ticket/Elements/ShowSummary:68
/opt/rt3/share/html/Ticket/Display.html:33
/opt/rt3/share/html/autohandler:195

Anyone any ideas where to look. ShowAttachments is the default
unmoderated file from the distro.


Rick Ellis Richard.Ellis@Sun.COM


rt-users mailing list
rt-users@lists.bestpractical.com
The rt-users Archives

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

I have updated to rt-3.0.9 and have perl 5.8.3 and have updated
DBIx::SearchBuilder and still get

error: Can’t locate object method “Columns” via package “RT::Attachments”
at /opt/rt3/share/html/Ticket/Elements/ShowAttachments line 66.

context: …
62: my %documents;
63: my $transactions = $Ticket->Transactions();
64: while (my $trans = $transactions->Next()) {
65: my $attachments = $trans->Attachments();
66: $attachments->Columns( qw( Id Filename ContentType Headers Subject
Parent ContentEncoding ContentType TransactionId) );
67: $attachments->Limit(FIELD => ‘Filename’, OPERATOR => ‘IS NOT’, VALUE =>
‘NULL’, QUOTEVALUE => 0, ENTRYAGGREGATOR => ‘AND’);
68: $attachments->Limit(FIELD => ‘Filename’, OPERATOR => ‘!=’, VALUE => ‘’,
ENTRYAGGREGATOR => ‘AND’);
69: while (my $attach = $attachments->Next()) {
70: next unless ($attach->Filename());

code stack: /opt/rt3/share/html/Ticket/Elements/ShowAttachments:66
/opt/rt3/share/html/Ticket/Elements/ShowSummary:68
/opt/rt3/share/html/Ticket/Display.html:33
/opt/rt3/share/html/autohandler:195

cpan> install DBIx::SearchBuilder
DBIx::SearchBuilder is up to date.

And have also tried updating from the tar.gz from cpan.org… Still no go .

Any help please?From: Todd Chapman [mailto:rt@chaka.net]
Sent: Tuesday, March 09, 2004 12:53 AM
To: Rick Ellis
Cc: rt list
Subject: Re: [rt-users] Error in 3.0.9

Upgrade DBIx::SearchBuilder.

-Todd

Rabbie Zalaf wrote:

error: Can’t locate object method “Columns” via package “RT::Attachments”
at /opt/rt3/share/html/Ticket/Elements/ShowAttachments line 66.

cpan> install DBIx::SearchBuilder
DBIx::SearchBuilder is up to date.

And have also tried updating from the tar.gz from cpan.org… Still no go .

Maybe your CPAN mirror is lagging? What version do you have?
Does “make testdeps” shed any light?
�|� Request Tracker... So much more than a help desk — Best Practical Solutions – Trouble Ticketing. Free.