Perlfect Solutions
 

[Perlfect-search] Invalid Argument error in search.cgi 3.20

will@perlcontractor.com will@perlcontractor.com
Thu, 29 Nov 2001 22:13:37 -0000
>> Where is the invalid argument there?

> What does it do when you call it from command line, just for testing? You
> can also try to insert return characters to split the command, so you'll
> see more exactly where the problem is.

>Regards
>Daniel

> --
> http://www.danielnaber.de

thanks daniel for your reply. i tried what you suggested:

                [wboyd@ts1 search]$ perl -w search.cgi q=practice

and it worked! the script found 170 matches. see the output it produced
below. i also tried breaking the line up across multiple lines like this:

-----------------------------------------------------
tie
%inv_index_db,
$db_package,
$INV_INDEX_DB_FILE,
O_RDONLY,
0755
or die "Cannot open $INV_INDEX_DB_FILE: $!";
-----------------------------------------------------

with "tie" being on line 65. and when i try to call the script from the html
page it still produces the same error:

-----------------------------------------------------
Cannot open
/home/std1/wboyd/www.javafreelancer.com/cgi-bin/perlfect/search/data/inv_ind
ex: Invalid argument at
/home/std1/wboyd/www.javafreelancer.com/cgi-bin/perlfect/search/search.cgi
line 65.
-----------------------------------------------------

i first installed v 3.20. i got the above message. i thought that maybe the
version of DB_File  (1.64) was too old for perlfect 3.20 so i removed 3.20
and installed 3.09. but 3.09  produces the same error.

at various points in my debugging i also printed out $db_package and
$INV_INDEX_DB_FILE to see what was inside them. they were always as they
should be. i've played around a little with file permissions both in the
script and from the shell. didn't make a difference. i'm now trying to talk
the sysadmin of my isp to install the latest version of DB_File to see if
that does anything.

thanks again for any help anyone can offer.

cheers,
will



output from running search.cgi from the command line on a linux redhat 6.6
box
----------------------------------------------------------------------------
--------------------------------------
[wboyd@ts1 search]$ perl -w search.cgi q=practice
[Thu Nov 29 16:39:28 2001] search.cgi: Name "main::VERSION" used only once:
poss
ible typo at search.cgi line 180.
[Thu Nov 29 16:39:28 2001] search.cgi: Name "main::BASE_URL" used only once:
pos
sible typo at search.cgi line 199.
[Thu Nov 29 16:39:28 2001] search.cgi: Name "main::SPECIAL_CHARACTERS" used
only
 once: possible typo at search.cgi line 248.
[Thu Nov 29 16:39:28 2001] search.cgi: Name "main::INDEX_NUMBERS" used only
once
: possible typo at search.cgi line 256.
[Thu Nov 29 16:39:28 2001] search.cgi: Name "main::DEFAULT_LANG" used only
once:
 possible typo at search.cgi line 176.
Content-Type: text/html

  


  

Your search for practice resulted in 170 matches:

1. Introducing BuyIT at Computer Weekly >> Home  | e-procurement   | Computer&nb sp;Weekly  | Guidance  | Members >> Introducing B uy IT at Compu ter Weekly Commending best practice in the IT industry
URL: http://www.javafreelan cer.com/clients/www.buyitnet.org/computer_weekly/introduction/index.html   Score: 8.25

2. BuyIT best practice guidelines, 1996</ A>
>> Home  | e-procurement  | Computer&nbs p;Weekly   | Guidance  | Members >> Best practice guid elines  | Smaller firms  | Knowledge management  | Guid ance for e�Procurement >> Bibliography Bibliography Publish ed Sources of Information
URL: http://www.javafreelan cer.com/clients/www.buyitnet.org/guidance/guidelines/bibliography/index.html   Score: 7.50

3. BuyIT Best Practice: Knowledge management
Harnessing Corporate Knowledge for Competitive Advantage : The IT Director's Agenda  Introduction  | Defining Corporate&nb sp;Knowledge  | Key capabilities  | The challenge  | Ma nagement culture  | Practical steps  | Warning signs Kn owledge Management is
URL: http://www.javafreelan cer.com/clients/www.buyitnet.org/guidance/km/printer.html   Score : 7.50

4. BuyIT best practice guidelines, 1996
>> Home  | e-procurement  | Computer&nbs p;Weekly   | Guidance  | Members >> Best practice guid elines  | Smaller firms  | Knowledge management  | Guid ance for e�Procurement >> Introduction Realising the&n bsp;business benefits  | Agenda for action  | Checklist  of key issues
URL: http://www.javafreelan cer.com/clients/www.buyitnet.org/guidance/guidelines/intro/agenda.html &n bsp; Score: 6.75

5. BuyIT Best Practice Knowledge management index
>> Home  | e-procurement  | Computer&nbs p;Weekly   | Guidance  | Members >> Best practice guid elines  | Smaller firms   | Knowledge management  | Gui dance for e�Procurement >> Harnessing Corporate Knowledge I ntroduction  |
URL: http://www.javafreelan cer.com/clients/www.buyitnet.org/guidance/km/index.html   Score:< /B> 6.75

[ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 7 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 3 3 34 ] Next
Search again:
Page 1 of 34 Perlfect Search 3.09 (c) Perlfect Solutions 1998-2000