Gossamer Forum
Home : Products : Links 2.0 : Customization :

Dead links killer not working

Quote Reply
Dead links killer not working
Please see www.search.lk/links and click on the Report Dead links link in any page...I get the following error

@@@@@@
CGI ERROR
==========================================
Error Message : fatal error: Undefined subroutine &main::site_html_deadlink_mail called at /usr/www/users/enigma/links/killer.cgi line 96.

Script Location : /usr/www/users/enigma/links/killer.cgi
Perl Version : 5.00404

Form Variables
-------------------------------------------

Environment Variables
-------------------------------------------
DOCUMENT_ROOT : /usr/www/users/enigma
GATEWAY_INTERFACE : CGI/1.1
HTTP_ACCEPT : image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
HTTP_ACCEPT_CHARSET : iso-8859-1,*,utf-8
HTTP_ACCEPT_ENCODING: gzip
HTTP_ACCEPT_LANGUAGE: en
HTTP_CONNECTION : Keep-Alive
HTTP_HOST : search.lk
HTTP_REFERER : http://www.search.lk/links/international/
HTTP_USER_AGENT : Mozilla/4.7 [en] (Win95; I)
PATH : /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin
QUERY_STRING : 3583=delete&id=3583
REMOTE_ADDR : 203.115.5.229
REMOTE_HOST : 203.115.5.229
REMOTE_PORT : 1794
REQUEST_METHOD : GET
REQUEST_URI : /links/killer.cgi?3583=delete&id=3583
SCRIPT_FILENAME : /usr/www/users/enigma/links/killer.cgi
SCRIPT_NAME : /links/killer.cgi
SERVER_ADMIN : enigma@pair.com
SERVER_NAME : www.search.lk
SERVER_PORT : 80
SERVER_PROTOCOL : HTTP/1.0
SERVER_SIGNATURE :
SERVER_SOFTWARE : Apache/1.3.3
UNIQUE_ID : OhM1F9FEAZIAAF2ESRQ

@@@@@@@@

I can't find the original app files for it (originally called deadlinks2) anywhere in the forum and so am not sure what modifications I need to do to the templates .pl files.


Director Technical
ENigMA Inc.
Quote Reply
Re: Dead links killer not working In reply to
The error message means that you did not add the appropriate subroutine in the site_html_templates.pl file. Re-read the modification instructions and make sure that you copy ALL the codes.

Regards,

Eliot Lee
Quote Reply
Re: Dead links killer not working In reply to
Have read it but still don't know what to add to the .pl file

tks

Director Technical
ENigMA Inc.
Quote Reply
Re: Dead links killer not working In reply to
Ive not used this mod before but the error suggests that it is the MAIL page that is missing - you need to add a sub in site_html_templates called:
sub site_html_deadlink_mail

This will get rid of the error!

Try adding something like:

sub site_html_deadlink_mail {
# --------------------------------------------------------
# This routine displays the mail form.

&html_print_headers;
print &load_template ('deadlinkmail.html', {
%in,
%globals
});


...then create a template saying "Thanks - mail sent"...or something like that and put it into your templates directory - this may work - im not sure!

From Paul Wilson.
http://www.audio-grabber.com
On error resume next..
Quote Reply
Re: Dead links killer not working In reply to
Hi...this solved the problem but now I get an email as below

@@@@@@@@@@
The following link is reported to be dead:


ID number:
Site title:
Site URL:
Category:
Comment:


To check the link, please go to:
http://search.lk/links/jump.cgi?ID=


Or to delete the link please go to:
http://search.lk/links//usr/www/users/enigma/links/admin/admin.cgi?db=links&ID=&Title=&URL=&Date=&Category=---&Description=&Contact+Name=&Contact+Email=&Hits=&isNew=---&isPopular=---&Rating=&Votes=&ReceiveMail=---&Graphic=&Gwidth=&Gheight=&Priority=---&Password=&MonthHits=&isMonthPopular=---&DateAdded=&keyword=&mh=10&sb=---&so=ascend&delete_form=Search&delete=




Sincerely,


Visitor.

@@@@@@@@@

What can I do to get this to have all the correct input?

Can it send me the person who reported the deadlinks email addy and ip?

Tks,

Director Technical
ENigMA Inc.
Quote Reply
Re: Dead links killer not working In reply to
Add something like:

$ENV{'REMOTE_HOST'}
$ENV{'REFERRER'}

...to the email that is sent!

From Paul Wilson.
http://www.audio-grabber.com
On error resume next..
Quote Reply
Re: Dead links killer not working In reply to
Any idea why the email that comes now (copied in prev. post) does not have the link id or anything else?

I can't delete as the email is blank with no real info on what link is dead.

Thanks,

Director Technical
ENigMA Inc.
Quote Reply
Re: Dead links killer not working In reply to
You will have to ask someone like Anthrorules or someone who has used the mod before!

Sorry!

From Paul Wilson.
http://www.audio-grabber.com
On error resume next..