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

Spencer, Roger RSpencer at evare.com
Mon Aug 9 14:39:05 EDT 2004


Well, I got it working.  

I installed to a new directory, pointed apache at it, and it works.

I think I made the mistake of not moving out the existing files before
the upgrade.

Roger Spencer
RSpencer at evare.com

-----Original Message-----
From: rt-users-bounces at lists.bestpractical.com
[mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Spencer,
Roger
Sent: Monday, August 09, 2004 12:42 PM
To: rt-users at lists.bestpractical.com
Subject: [rt-users] Problem with attachments section after upgrade.

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

_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Be sure to check out the RT wiki at http://wiki.bestpractical.com



More information about the rt-users mailing list