Gossamer Forum
Home : Products : Links 2.0 : Customization :

Add_Spider - Prototype mismatch problem

Quote Reply
Add_Spider - Prototype mismatch problem
I just installed the Add_Spider.cgi mod and am having a problem

I always get the 'Unreachable host' message

I checked my log files for an error and found -

Prototype mismatch: sub main::head vs ($) at /usr/local/etc/httpd/htdocs/partyplanimalscom/links/add_spider.cgi line 46

Any
Quote Reply
Re: [jackson4] Add_Spider - Prototype mismatch problem In reply to
What version of LWP do you have?
Quote Reply
Re: [Paul] Add_Spider - Prototype mismatch problem In reply to
I think that is my problem - I don't know if I have LWP

My hosts tech info makes no mention of 'LWP'

Can I download it from somewhere and install it myself ?

Thanks for your help




PS - the host uses Perl 5

'This is libwww-perl-5.41:'


Last edited by:

jackson4: Apr 8, 2002, 9:06 AM
Quote Reply
Re: [jackson4] Add_Spider - Prototype mismatch problem In reply to
Hi!

as this mode is very simple .. i don't know why do i get internal server when i click on add_spider.cgi (Add Site)
Chmod is ok ... sitehtmltemplate was corrected manually and also added needed line in add.html ...

any idea

Gregor
Quote Reply
Re: [Vs_Greg] Add_Spider - Prototype mismatch problem In reply to
1) Check your Perl error log file.
2) Check the syntax of the .cgi file:

Quote:

perl -c addspider.cgi


3) Check to make sure that you have LWP installed.
========================================
Buh Bye!

Cheers,
Me
Quote Reply
Re: [Heckler] Add_Spider - Prototype mismatch problem In reply to
thanx i'll do that



bye

Gregor
Quote Reply
Re: [Vs_Greg] Add_Spider - Prototype mismatch problem In reply to
hi!

i checked error log but there is no internal error written in it ... also can u please tell me which other mod uses or better , require LWP so i know do i have it installed ...

Gregor
Quote Reply
Re: [Vs_Greg] Add_Spider - Prototype mismatch problem In reply to
Search the Links 2.0 for modules.cgi and there is a script posted that will check your server to see what Perl modules and library files are loaded.
========================================
Buh Bye!

Cheers,
Me
Quote Reply
Re: [Heckler] Add_Spider - Prototype mismatch problem In reply to
yep here it is ..

scripts::top::Modules::LWP::Simple


i'm gonna do third instalation .. who knows .. maybe i made mistake twice Unsure

Gregor
Quote Reply
Re: [Vs_Greg] Add_Spider - Prototype mismatch problem In reply to
his .. just found one thing i'm not sure about ... i use nonenglish modification and in sub_add_form there should be

Code:
$category ?
($category = qq~$category <input type=hidden name="Category" value="$category">~) :
($category = &build_select_field ("Category", "$in{'Category'}"));

but nonenglish requires

Code:
$category ?
($category = qq~$kategorie <input type=hidden name="Category" value="$category">~) :
($category = &build_select_field ("Category", "$in{'Category'}"));

does categorie or kategorie has to any with internal server error ..

thanx

Gregor
Quote Reply
Re: [Vs_Greg] Add_Spider - Prototype mismatch problem In reply to
i'm at dead end .. i have made basic (clean) instalation to test directory with no mods at all .. and copied necesary (original from zip) files .. still internal server error ... how did u guys managed to get it work ???

Gregor
Quote Reply
Re: [Vs_Greg] Add_Spider - Prototype mismatch problem In reply to
i asked my provider to install lwp ... and he wrote me back with snippet from documentation ..




The LWP-attic distribution contains old and depreciated modules from
the libwww-perl distribution. These modules are provided for old code
that happens to depend on them somehow.


LWP::Socket
LWP::SecureSocket

The LWP protocol modules have been rewritten and is now based on the
IO::Socket::INET modules in the standard perl distribution.



any idea?

thanx

Gregor