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

Delete Link Pluggin - Internal Server Error

Quote Reply
Delete Link Pluggin - Internal Server Error
I am trying to get the delete plugin to work so users can delete there own links.

Below is the code I added to the link template:

<%if isLinkOwner%><a href="<%config.db_cgi_url%>/del_link.cgi?do=delete&link_id=<%ID%>">Delete Ad</a>
<%endif%>

I keep getting an "Internal Server Error" when I try to delete the link. Any ideas what can be causing this? Or a better way to enable users to delete links.
Quote Reply
Re: [Soren] Delete Link Pluggin - Internal Server Error In reply to
Hi Soren,

It probably causes by:

1) File permission is not '755'

or

2) path to perl, the very first line on the script or path to admin.

Hope that helps

Cheers,

Dat

Programming and creating plugins and templates
Blog
Quote Reply
Re: [tandat] Delete Link Pluggin - Internal Server Error In reply to
Thanks for the advice. I changed the permission, yet still not working. What should the plugin directory permission be set to? I installed another plugin that is working fine.

Where would I check the path in the plugin script. On the main Links and other plugin everything is working great.

I did notice it is calling on file del_link.cgi
(del_link.cgi?do=delete&link_id=13;d=1)

This file does not exist in the main directory (using FileMan)

Thanks!

Last edited by:

Soren: Jun 7, 2007, 2:25 PM
Quote Reply
Re: [Soren] Delete Link Pluggin - Internal Server Error In reply to
Hi,

What do the following lines look like:

Code:
use lib '....';

..and:

Code:
Links::init('...');

Do you have your "path to admin" bit where the ...'s are?

They should look something like:


Code:
use lib '/home/user/path/cgi-bin/admin';

..and:

Code:
Links::init('/home/user/path/cgi-bin/admin');

Hope that helps.

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] Delete Link Pluggin - Internal Server Error In reply to
In the delete.pm in the plugin folder I am seeing

Quote:
use strict;
use GT::Base;
use GT::Plugins qw/STOP CONTINUE/;
use Links qw/$CFG $IN $DB/;


Also, I am using this delete plugin
http://www.webster.de/links-sql-plugins/

Last edited by:

Soren: Jun 11, 2007, 2:35 PM