Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Error after implementing mod_perl

Quote Reply
Error after implementing mod_perl
Greetings!

After updating to mod_perl everything seems to be working really well except when I try to update the tables in GLinks 3.04 from admin. I get the following error:-

Code:
A fatal error has occured:

GT::SQL::Editor (17379): Unknown method '_column_sql' called at GT::SQL::Editor::alter_col line 238.

I am aware of some previous discussions in this thread:-

http://www.gossamer-threads.com/...orum.cgi?post=279471

My startup.pl file contains the following:-

Code:
use strict;

use Apache::Registry ( );
use LWP::UserAgent ( );
use Apache::DBI ( );
use DBI ( );

use CGI ( );
CGI->compile(':all');

use lib '/path/to/links/admin',
'/path/to/gforum/admin';

use Links::mod_perl;
use GForum::mod_perl;
1;

From looking at the previous thread it would seem that the GT modules may be the cause of the problem. Would an easy solution be to edit the GForum mod_perl.pm file and comment out the pre-loading of the GT modules OR is there a better way?


Regards,


Clint.
--------------------------
http://AffiliatesDirectory.com
The Affiliate Programs Directory
Quote Reply
Re: [Clint] Error after implementing mod_perl In reply to
I'm not 100% sure on this but try moving:

use GForum::mod_perl;

...above:

use Links::mod_perl;

It sounds like Links SQL has newer modules that GForum and so they would need to be loaded afterwards.
Quote Reply
Re: [Hargreaves] Error after implementing mod_perl In reply to
Thanks for that ...

Cured the problem. Perhaps the post I referred to above from GT should be amended to reflect how this can make a difference.


Regards,


Clint.
--------------------------
http://AffiliatesDirectory.com
The Affiliate Programs Directory
Quote Reply
Re: [Hargreaves] Error after implementing mod_perl In reply to
Oops!

Spoke to soon. Fixed one problem and created another - all my plugins disappeared (and stopped functioning). Removed Gforum loading from startup.pl and everything worked again.

I wonder whether a solution may be to just copy the GT libraries from links into the Gforum folder?


Regards,


Clint.
--------------------------
http://AffiliatesDirectory.com
The Affiliate Programs Directory
Quote Reply
Re: [Clint] Error after implementing mod_perl In reply to
Maybe this could help?

http://www.gossamer-threads.com/...i?post=263164#263164

Cheers,
Boris

Facebook, Twitter and Google+ Auth for GLinks and GCommunity | reCAPTCHA for GLinks | Free GLinks Plugins

Last edited by:

eupos: Oct 31, 2005, 5:26 AM
Quote Reply
Re: [eupos] Error after implementing mod_perl In reply to
Hi Boris:

Followed those instructions and the order in that posting actually seems to be wrong. Following the advise of that posting it places /gforum/ as the first directory in the path AND appears to load all the libraries from Gforum rather than Links.

In any event, I just copied the Links GT Libraries into GForum (overwrote all Forum ones) and both programs 'seem' to be working correctly now. I know its been talked about previously but the sooner a 'central' Library is established for all GT applications the easier it will be for everyone.


Thanks,


Clint.
--------------------------
http://AffiliatesDirectory.com
The Affiliate Programs Directory
Quote Reply
Re: [Clint] Error after implementing mod_perl In reply to
Ehm Frown

The tricky part is in use lib statement. I don't have GLinks, on our site we use GForum and GComm and with these instruction
definitely work Wink

But anyway. The important is, that everything works fine for you now Smile





Cheers,
Boris

Facebook, Twitter and Google+ Auth for GLinks and GCommunity | reCAPTCHA for GLinks | Free GLinks Plugins