Gossamer Forum
Quote Reply
GT::Plugins
Hi..I'm just working on the Add_Category plugin, but I'm having a problem with accessing the sub routines from within the pm file. The code in add-cat.cgi I am using is;


GT::Plugins->dispatch ($CFG->{admin_root_path} . '/Plugins', 'user_add_cat', \&Plugins::Add_Category::add);

I'm getting the error;

A fatal error has occured:

Undefined subroutine &Plugins::Add_Category::add called at /home/.vaccaro/aceinst/ace-host.com/cgi/admin/GT/Plugins.pm line 91.

Please enable debugging in setup for more details.


Any ideas?

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] GT::Plugins In reply to
Seems like either you don't have add() in your module or you ain't got:

use Plugins::Add_Category;

....in your cgi script.

*Debug Debug Debug*

Last edited by:

Paul: Sep 30, 2002, 4:28 AM
Quote Reply
Re: [Paul] GT::Plugins In reply to
Cheers...worked a charm Tongue

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!