[rt-users] Error when forwarding a message with an attachment
    John Chenny Lim 
    jc.lim at vicscouts.asn.au
       
    Wed Jul 14 03:20:37 EDT 2010
    
    
  
Hi all,
 
I am having problems forwarding messages with attachment. I am using RT
Request Tracker 3.6. Below are the error dumps:
System error
error: 
Can't call method "ContentAsMIME" on an undefined value at
/usr/local/rt3.6/lib/RT/Interface/Email.pm line 300.
context: 
... 
	
296: 
my $txn = shift;
297: 
my %args = ( To => '', Cc => '', Bcc => '', @_ );
298: 
	
299: 
my $main_content = $txn->ContentObj;
300: 
my $entity = $main_content->ContentAsMIME;
301: 
	
302: 
if ( $main_content->Parent ) {
303: 
# main content is not top most entity, we shouldn't loose
304: 
# From/To/Cc headers that are on a top part
... 
	
code stack: 
/usr/local/rt3.6/lib/RT/Interface/Email.pm:300
/usr/local/rt3.6/share/html/Ticket/Forward.html:121
/usr/local/rt3.6/share/html/autohandler:374
 
 
Raw error details:
 
Can't call method "ContentAsMIME" on an undefined value at
/usr/local/rt3.6/lib/RT/Interface/Email.pm line 300.
 
 
Trace begun at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Exceptions.pm line
129
HTML::Mason::Exceptions::rethrow_exception('Can\'t call method
"ContentAsMIME" on an undefined value at
/usr/local/rt3.6/lib/RT/Interface/Email.pm line 300.^J') called at
/usr/local/rt3.6/lib/RT/Interface/Email.pm line 300
RT::Interface::Email::ForwardTransaction('RT::Transaction=HASH(0x55555ad06e3
0)', 'Cc', '', 'ForwardAndReturn', 'Forward Message and Return', 'To',
'spam at support.trendmicro.com', 'id', 96322, 'QuoteTransaction', 1198169,
'Bcc', '') called at /usr/local/rt3.6/share/html/Ticket/Forward.html line
121
HTML::Mason::Commands::__ANON__('ForwardAndReturn', 'Forward Message and
Return', 'QuoteTransaction', 1198169, 'id', 96322, 'To',
'spam at support.trendmicro.com', 'Cc', '', 'Bcc', '') called at
/usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x555559
8c9120)', 'ForwardAndReturn', 'Forward Message and Return',
'QuoteTransaction', 1198169, 'id', 96322, 'To',
'spam at support.trendmicro.com', 'Cc', '', 'Bcc', '') called at
/usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1256
eval {...} at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1250
HTML::Mason::Request::comp(undef, undef, undef, 'ForwardAndReturn', 'Forward
Message and Return', 'QuoteTransaction', 1198169, 'id', 96322, 'To',
'spam at support.trendmicro.com', 'Cc', '', 'Bcc', '') called at
/usr/local/rt3.6/share/html/autohandler line 374
HTML::Mason::Commands::__ANON__('Cc', '', 'ForwardAndReturn', 'Forward
Message and Return', 'To', 'spam at support.trendmicro.com', 'id', 96322,
'QuoteTransaction', 1198169, 'Bcc', '') called at
/usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x555558
9f9a90)', 'Cc', '', 'ForwardAndReturn', 'Forward Message and Return', 'To',
'spam at support.trendmicro.com', 'id', 96322, 'QuoteTransaction', 1198169,
'Bcc', '') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm
line 1251
eval {...} at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1250
HTML::Mason::Request::comp(undef, undef, undef, 'Cc', '',
'ForwardAndReturn', 'Forward Message and Return', 'To',
'spam at support.trendmicro.com', 'id', 96322, 'QuoteTransaction', 1198169,
'Bcc', '') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm
line 460
eval {...} at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 460
eval {...} at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 412
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x55555
9f8c000)') called at
/usr/lib/perl5/site_perl/5.8.8/HTML/Mason/ApacheHandler.pm line 168
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandl
er=HASH(0x555559f8c000)') called at
/usr/lib/perl5/site_perl/5.8.8/HTML/Mason/ApacheHandler.pm line 826
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(
0x55555808bf50)', 'Apache2::RequestRec=SCALAR(0x55555ad154a0)') called at
/usr/local/rt3.6/bin/webmux.pl line 125
eval {...} at /usr/local/rt3.6/bin/webmux.pl line 125
RT::Mason::handler('Apache2::RequestRec=SCALAR(0x55555ad154a0)') called at
-e line 0
eval {...} at -e line 0
 
 
John Lim
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20100714/c5295429/attachment.htm>
    
    
More information about the rt-users
mailing list