Gossamer Forum
Quote Reply
GT::Config
Hi,

I had to add a 'require GT::Config;' to the upgrade from 2.1.2 to 2.2.0 sub to get the new version to install.

Laura.
Quote Reply
Re: [afinlr] GT::Config In reply to
Frown Whole site stopped working after upgrading.

I think this is going to be a long night!
Quote Reply
Re: [afinlr] GT::Config In reply to
I *think* I've narrowed it down to the globals not accepting variables being fed into them. I think I'll just have to comment these globals out of my templates until a fix can be found.
Quote Reply
Re: [afinlr] GT::Config In reply to
Thanks for the heads up - I've updated the download file.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [afinlr] GT::Config In reply to
Where are the globals being used?

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] GT::Config In reply to
Luckily for me I had moved the majority of my globals into a pm file. I just had a few that were being used on most pages - which made it look like my whole site had stopped working - quite scary!

I think I've managed to fix it on my site by setting the variables in the template before the global is called and then using the $tags variable in the global to get hold of the variable. Some people may be more affected by this though.
Quote Reply
Re: [afinlr] GT::Config In reply to
I'm not sure I understand what isn't working here - can you point me to a specific example where globals aren't working?

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] GT::Config In reply to
Something like this:

<%globalname($ID)%>

sub {
my $id = shift;
}

returns an error.
Quote Reply
Re: [afinlr] GT::Config In reply to
Uh oh Frown

See here for a fix: http://www.gossamer-threads.com/...i?post=266249#266249

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com