Gossamer Forum
Quote Reply
Bad Link.cgi error
Here's the error that I get when using bad link. I verify that it has a valid ID# when executing the script.

A fatal error has occured:
Can't call method "param" on an undefined value at /home/Mottster/www/cgi-bin/links2/bad_link.cgi line 33.


Please enable debugging in setup for more details.

Here's the link that I was using to test with: http://www.weathertalk.net/.../bad_link.cgi?ID=200

Thanks,

Sean
Thanks,

Sean Mott
http://www.weatherdeck.net
Internet's best weather search engine
Quote Reply
Re: [SeanM] Bad Link.cgi error In reply to
In bad_link.cgi add:

Links::init('/path/to/admin');
Quote Reply
Re: [Paul] Bad Link.cgi error In reply to
I was wondering if you can help and tell what line or where to add

Links::init('/path/to/admin');

It would be a real big help.

Thank you.
Quote Reply
Re: [TRPN] Bad Link.cgi error In reply to
I don't use the Plugin but this may help.

# Load required modules.

# ---------------------------------------------------

use strict;

use lib '/path/to/admin'; ## you need to set this to your own local path!

use Links qw/$DB $IN $USER $CFG/;

Links::init('/path/to/admin'); ## you need to set this to your own local path!

Links::init_user();

use Links::SiteHTML;

use Links::Authenticate;

use Links::Plugins;

use vars qw/$BAD_LINK_CFG/;

# use GT::Plugins qw/STOP CONTINUE/;

# use GT::Mail;

# $|++;

Regards

minesite
Quote Reply
Re: [minesite] Bad Link.cgi error In reply to
minesite

Cool it did the trick!!!!

Thanks a lot for your help!

Vishal
-------------------------------------------------------
Quote Reply
Re: [TRPN] Bad Link.cgi error In reply to
I'm glad I could.

Regards

minesite