Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Showing Links on Forum pages

Quote Reply
Showing Links on Forum pages
I wasn't sure where to post this but it seems to be a problem with Links so I've chosen here.

I've had an annoying error message for months and having decided to investigate it properly I think I can replicate it now. I have a Forum application that pulls data from Links. I have a global in Forum:

sub {
my $cat_db = GT::SQL->new('/path/to/links/admin/defs')->table('Category');
}


- obviously the global is more complicated than this but I've identified that this is the line causing the problem.

The problem only occurs the first time that the page is viewed after mod_perl is restarted.

This is the error:

A fatal error has occurred:
Can't call method "table" on an undefined value at /path/to/links/admin/Links/Table/Category.pm line 39.

Please enable debugging in setup for more details.

This is code that is only run for the first time a Category table object is created which is why it only happens after mod_perl is restarted. Is it a bug? Or should I be coding it differently?
Subject Author Views Date
Thread Showing Links on Forum pages afinlr 4854 Mar 26, 2007, 5:03 PM
Thread Re: [afinlr] Showing Links on Forum pages
Andy 4757 Mar 27, 2007, 1:32 AM
Post Re: [Andy] Showing Links on Forum pages
afinlr 4707 Mar 27, 2007, 11:30 AM
Thread Re: [Andy] Showing Links on Forum pages
afinlr 4734 Mar 27, 2007, 11:36 AM
Post Re: [afinlr] Showing Links on Forum pages
Andy 4723 Mar 28, 2007, 1:09 AM
Thread Re: [afinlr] Showing Links on Forum pages
brewt 4730 Mar 28, 2007, 1:47 AM
Post Re: [brewt] Showing Links on Forum pages
afinlr 4696 Mar 28, 2007, 2:16 AM