[rt-users] Can't use string ("") as a HASH ref while "strict refs" in use at /opt/rt3/share/html/Elements/MyRT line 50, <DATA> line 1662

Jesse Vincent jesse at bestpractical.com
Fri Jul 6 08:52:14 EDT 2007


On Jul 6, 2007, at 6:08 AM, Richard Ellis wrote:

> Hi Jessie,
>
> Thanks, the error changes but it still doesn't work properly. Don't  
> even know where to begin to look for this error:
> System error
>
> error: 	Can't use string ("") as a HASH ref while "strict refs" in  
> use at /opt/rt3/share/html/Elements/MyRT line 74.
> context: 	
> ... 	
> 70: 	 HomepageSettings => $default_portlets? $default_portlets- 
> >Content: {},
> 71: 	 );
> 72: 	}
> 73: 	
> 74: 	my ($body, $summary) = @{$session{'my_rt_portlets'}}{qw(body  
> summary)};
> 75: 	unless( $body && @$body ) {
> 76: 	 $body = $summary || [];
> 77: 	 $summary = undef;
> 78: 	}
> ... 	
> code stack: 	 /opt/rt3/share/html/Elements/MyRT:74
> /opt/rt3/share/html/index.html:81
> /opt/rt3/share/html/autohandler:291
> raw error
>  Can't use string ("") as a HASH ref while "strict refs" in use at / 
> opt/rt3/share/html/Elements/MyRT line 74.

just before that line of code, can you Dumper $session{my_rt_portlets}?

Does this only happen for a particular user?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20070706/92a633f6/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20070706/92a633f6/attachment.sig>


More information about the rt-users mailing list