Gossamer Forum
Quote Reply
ClaimLink Plugin Error
Hi,

I just installed the claimlink plugin and it went fine. However, when I try to claim a link by going here mysite.com/cgi-bin/modify.cgi?ID=39;do=claim I get the following error.

A fatal error has occured:
Undefined subroutine &Links::Build::build called at (eval 44) line 1.
Please enable debugging in setup for more details.

Stack Trace
======================================
Links (32328): Links::environment called at /home/httpd/mysite.com/cgi-bin/admin/Links.pm line 431 with no arguments.
Links (32328): Links::fatal called at (eval 44) line 1 with arguments
(Undefined subroutine &Links::Build::build called at (eval 44) line 1.
).
Links (32328): Links::__ANON__ called at GT::Template::_call_func line 764 with arguments
(39).

Plus a lot more but I didn't feel I should post it all. Can anyone tell from this what my Problem could be? I uninstalled once and deleted the colomn and templates and the reinstalled but received the same error.

Thanks,

Craven
Quote Reply
Re: [craven32] ClaimLink Plugin Error In reply to
I'm not sure what happened but ever since installing and uninstalling the claimlink plugin my users cannot modify links! They get the same error as when the plugin was installed.

This is the error. Please help me out!

___________________________________________________________________

A fatal error has occured:
Undefined subroutine &Links::Build::build called at (eval 38) line 1.
Please enable debugging in setup for more details.
Stack Trace
======================================
Links (9871): Links::environment called at /home/httpd/mypath/mysite.com/cgi-bin/admin/Links.pm line 431 with no arguments.
Links (9871): Links::fatal called at (eval 38) line 1 with arguments
(Undefined subroutine &Links::Build::build called at (eval 38) line 1.
).
Links (9871): Links::__ANON__ called at GT::Template::_call_func line 764 with arguments
(2877).
Links (9871): GT::Template::_call_func called at /home/httpd/mypath/mysite.com/cgi-bin/admin/templates/av/compiled/link.html.compiled line 526 with arguments
(GT::Template=HASH(0x8551b24), get_link_cats, 2877).
Links (9871): GT::Template::parsed_template called at /home/httpd/mypath/mysite.com/cgi-bin/admin/GT/Template.pm line 600 with arguments
(GT::Template=HASH(0x8551b24)).
Links (9871): GT::Template::_parse called at /home/httpd/mypath/mysite.com/cgi-bin/admin/GT/Template.pm line 101 with arguments
(GT::Template=HASH(0x8551b24), link.html, HASH(0x852e86c)).
Links (9871): GT::Template::parse called at /home/httpd/mypath/mysite.com/cgi-bin/admin/Links.pm line 292 with arguments
(GT::Template, link.html, ARRAY(0x856423c), HASH(0x852e86c)).
Links (9871): Links::user_page called at /home/httpd/mypath/mysite.com/cgi-bin/admin/Links/SiteHTML.pm line 71 with arguments
(link.html, HASH(0x85293e4), HASH(0x852e86c)).
Links (9871): Links::SiteHTML::site_html_link called at /home/httpd/mypath/mysite.com/cgi-bin/admin/GT/Plugins.pm line 108 with arguments
(HASH(0x85293e4), [undef]).
Links (9871): GT::Plugins::dispatch called at /home/httpd/mypath/mysite.com/cgi-bin/admin/Links/SiteHTML.pm line 28 with arguments
(GT::Plugins, /home/httpd/mypath/mysite.com/cgi-bin/admin/Plugins, site_html_link, *Links::SiteHTML::site_html_link, HASH(0x85293e4), [undef]).
Links (9871): Links::SiteHTML::display called at /home/httpd/mypath/mysite.com/cgi-bin/admin/Links/Utils.pm line 100 with arguments
(link, HASH(0x85293e4)).
Links (9871): Links::Utils::load_link called at GT::Template::_call_func line 764 with no arguments.
Links (9871): GT::Template::_call_func called at /home/httpd/mypath/mysite.com/cgi-bin/admin/templates/av/compiled/modify_select.html.compiled line 262 with arguments
(GT::Template=HASH(0x84e2348), Links::Utils::load_link).
Links (9871): GT::Template::parsed_template called at /home/httpd/mypath/mysite.com/cgi-bin/admin/GT/Template.pm line 600 with arguments
(GT::Template=HASH(0x84e2348)).
Links (9871): GT::Template::_parse called at /home/httpd/mypath/mysite.com/cgi-bin/admin/GT/Template.pm line 101 with arguments
(GT::Template=HASH(0x84e2348), modify_select.html, HASH(0x84df0b0)).
Links (9871): GT::Template::parse called at /home/httpd/mypath/mysite.com/cgi-bin/admin/Links.pm line 292 with arguments
(GT::Template, modify_select.html, ARRAY(0x84df0e0), HASH(0x84df0b0)).
Links (9871): Links::user_page called at (eval 13) line 1 with arguments
(modify_select.html, HASH(0x849e48c), HASH(0x84df0b0)).
Links (9871): Links::SiteHTML::site_html_modify_select called at /home/httpd/mypath/mysite.com/cgi-bin/admin/GT/Plugins.pm line 108 with arguments
(HASH(0x849e48c), [undef]).
Links (9871): GT::Plugins::dispatch called at /home/httpd/mypath/mysite.com/cgi-bin/admin/Links/SiteHTML.pm line 28 with arguments
(GT::Plugins, /home/httpd/mypath/mysite.com/cgi-bin/admin/Plugins, site_html_modify_select, *Links::SiteHTML::site_html_modify_select, HASH(0x849e48c), [undef]).
Links (9871): Links::SiteHTML::display called at /home/httpd/mypath/mysite.com/cgi-bin/admin/Links/User/Modify.pm line 112 with arguments
(modify_select, HASH(0x849e48c)).
Links (9871): Links::User::Modify::_list_owned_links called at /home/httpd/mypath/mysite.com/cgi-bin/admin/Links/User/Modify.pm line 34 with no arguments.
Links (9871): Links::User::Modify::handle called at /home/httpd/mypath/mysite.com/cgi-bin/admin/GT/Plugins.pm line 108 with no arguments.
Links (9871): GT::Plugins::dispatch called at modify.cgi line 25 with arguments
(GT::Plugins, /home/httpd/mypath/mysite.com/cgi-bin/admin/Plugins, handle_modify, CODE(0x8238668)).

System Information
======================================
Perl Version: 5.006
Links SQL Version: 2.1.2
DBI.pm Version: 1.18
Persistant Env: mod_perl (0) SpeedyCGI (0)
@INC =
/home/httpd/mypath/mysite.com/cgi-bin/admin
/usr/lib/perl5/5.6.0/i386-linux
/usr/lib/perl5/5.6.0
/usr/lib/perl5/site_perl/5.6.0/i386-linux
/usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl
.
CGI INPUT
======================================
ID => 2479
d => 1

CGI Cookies
======================================
IDList => 4401 7220 7395 8162
editor_cols => 75
editor_rows => 15
s => 19734017da8e0936bb91393e000a9a1b

ENVIRONMENT
======================================
DOCUMENT_ROOT => /home/httpd/mypath/mysite.com/html
GATEWAY_INTERFACE => CGI/1.1
GT_TMPDIR => /home/httpd/mypath/mysite.com/cgi-bin/admin/tmp
HTTP_ACCEPT => image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
HTTP_ACCEPT_LANGUAGE => en-us
HTTP_CACHE_CONTROL => no-cache
HTTP_CONNECTION => Keep-Alive
HTTP_COOKIE => editor_cols=75; editor_rows=15; IDList=4401%207220%207395%208162%20; s=19734017da8e0936bb91393e000a9a1b
HTTP_HOST => www.mysite.com
HTTP_USER_AGENT => Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
HTTP________ => ~~~~:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HTTP________________ => ~~~~~ ~~~~~~~
PATH => /usr/local/bin:/usr/bin:/bin
QUERY_STRING => ID=2479;d=1
REMOTE_ADDR => 64.33.129.319
REMOTE_PORT => 3813
REQUEST_METHOD => GET
REQUEST_URI => /cgi-bin/modify.cgi?ID=2479;d=1
SCRIPT_FILENAME => /home/httpd/mypath/mysite.com/cgi-bin/modify.cgi
SCRIPT_NAME => /cgi-bin/modify.cgi
SERVER_ADDR => 216.131.75.240
SERVER_ADMIN => mymail
SERVER_NAME => mysite.com
SERVER_PORT => 50
SERVER_PROTOCOL => HTTP/1.1
SERVER_SOFTWARE => Apache/1.3.22 (Unix) PHP/4.2.2
Quote Reply
Re: [craven32] ClaimLink Plugin Error In reply to
I even tried importng a Backup from yesterday and still get the error!
Quote Reply
Re: [craven32] ClaimLink Plugin Error In reply to
This may help. Not sure but read it anyway. Might be something in there.

http://www.gossamer-threads.com/...?post=250665;#250665
Quote Reply
Re: [Gypsypup] ClaimLink Plugin Error In reply to
I actually read that post right before installing. I used the update lsql_Links set link_claimable="1" where LinkOwner = "Admin"; to set all the admin owner links to claimable.

The problem is the error occurs even before you try to claim the link. When I send the e-mail to invite someone to claim a link they click on the url and then login. Right after login they get the error message.

I don't even have the plugin installed now but my modify.cgi page is now throwing the error. I have no idea what is going on.
Quote Reply
Re: [craven32] ClaimLink Plugin Error In reply to
After hours of trying everything I could think of I found it! I had created the global get_link_cats and used it on link.html. For some reason it just doesn't work on the modify.cgi page. Who knows!

I guess that maybe this could have been the whole problem and I did't realize it since I just added that global yesterday. Guess I'll try adding claimlink again!

Craven
Quote Reply
Re: [craven32] ClaimLink Plugin Error In reply to
PM me your email address and I will send you ver 1.1 - the one I use.
That what you have is ver1.2 I think. So no idea of whats going on.
It is not one of the best writen plugins I am afraid.
Quote Reply
Re: [Gypsypup] ClaimLink Plugin Error In reply to
Thanks for the offer but I finally got it to work.

I still could not get the plugin to Set the "link_claimable" field to "No" when a link has been claimed. but I solved this by using

<%if LinkOwner eq 'admin'%><a href="<%db_cgi_url%>/modify.cgi?do=claim;ID=<%ID%>">Claim this Link</a><%else%><%endif%>

and this seems to work!

Thanks for the help,

Craven
Quote Reply
Re: [craven32] ClaimLink Plugin Error In reply to
pleased to hear good news. Try claimin a link and see what happens in that does the 'claim this link' tag still stay there. That was a major headache.
Quote Reply
Re: [Gypsypup] ClaimLink Plugin Error In reply to
I tried claiming about 10 links and all the "Claim This Link" tags are removed afterwards. It works great.
Quote Reply
Re: [craven32] ClaimLink Plugin Error In reply to
Good stuff - congrats.