[rt-users] Problem with attachments section after upgrade.

Spencer, Roger RSpencer at evare.com
Mon Aug 9 12:41:54 EDT 2004


Upgraded from 3.0.11 to 3.2.1.  I'm having a problem with displaying a
ticket.  It halts at the attachment section and gives the following
error:

error:   	Can't call method "Next" on an undefined value at
/usr/local/rt3/share/html/Ticket/Elements/ShowAttachments line 67.
context:  	
...  	
63:  	
64:  	<%INIT>
65:  	my %documents;
66:  	
67:  	while ( my $attach = $Attachments->Next() ) {
68:  	next unless ($attach->Filename());
69:  	unshift( @{ $documents{ $attach->Filename } }, $attach );
70:  	}
71:  	
...  	
code stack:
/usr/local/rt3/share/html/Ticket/Elements/ShowAttachments:67
/usr/local/rt3/share/html/Ticket/Elements/ShowSummary:68
/usr/local/rt3/share/html/Ticket/Display.html:35
/usr/local/rt3/share/html/autohandler:199
raw error

I've tracked $Attachments back to
rt3/share/html/Ticket/Elements/FindAttachments:
my $attachments = RT::Attachments->new( $session{'CurrentUser'} );

Got stuck trying to find what RT::Attachments is doing.

I'm guessing the DB modifications failed and the query that tries to
find the attachments is failing, but that's as far as I've been able to
get.

Any help would be appreciated. 

Roger Spencer
RSpencer at evare.com




More information about the rt-users mailing list