Gossamer Forum
Home : Products : Others : Gossamer Community :

Can't use string ("1") as a HASH ref while "strict refs" in use

Quote Reply
Can't use string ("1") as a HASH ref while "strict refs" in use
Hi folks....

I'm just installing a fresh copy of Gossamer Community ....

When I login and logoff as admin, I have no issues ... created my first login, validated myself etc. and everything seems fine until I logout:

"Can't use string ("1") as a HASH ref while "strict refs" in use at /var/private/community/lib/GT/Template.pm line 866"

Does anyone have a clue where I can begin investigating this? I did some searching around but came up empty.... the only application "linked" to Community so far is Gmail....

Thanks,

Paul
Quote Reply
Re: [pauls] Can't use string ("1") as a HASH ref while "strict refs" in use In reply to
Hi,

So no custom globals or templates / pluigns ?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Can't use string ("1") as a HASH ref while "strict refs" in use In reply to
Thanks Andy... you are quick on these forums! ;)

No, stock install - haven't messed with anything really ... replaced the logo, updated the footers etc. but I haven't done anything "custom" per say....

The only plugins running on webmail and community are the "community plugin"....

The only other thing to mention is that this is a 64bit CentOS 5.1 installation if that matters (I'm thinking perl module versions or something?)

Everything seems to work so far though - I'm just doing testing at this phase and Gmail functions perfectly as does Community so far.... it only happens on logging off....

Thanks,

Paul


Andy wrote:
Hi,

So no custom globals or templates / pluigns ?

Cheers
Quote Reply
Re: [pauls] Can't use string ("1") as a HASH ref while "strict refs" in use In reply to
Hi,

Mm.. the only time I've ever had a problem like this - is when you try and return a hash, that isn't defined as a hash.

For example (GLinks, but the reason is the same);

Code:
sub {
my $link = $DB->table('Links')->select( { ID => "1234567878" } )->fetchrow_hashref;
return %$link;
}

..and if the Link ID 12345678 doesn't exist, then the $link hashref will just be blank - thus can't be returned as a hash.

Other than that, I can't really think of a reason this would ever occur - especially in a bog standard install :/

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!