PDA

View Full Version : cgi search script


bluebonnet
08-06-2005, 04:24 PM
I can not fig out what is going on with the cgi search script for searching the site (on the nav) for site, www.sstfloor.com... . I am trying to get it to work and can not... any thoughts? think issue with the script or where it is... ? I am taking over this site, so I appreciate any help to get this function to work properly.

tks.

FishMonger
08-06-2005, 06:58 PM
It's not possible to troubleshoot the script without seeing the script!!

I completely agree, the issue with the script or where it is... ?

bluebonnet
08-08-2005, 05:52 AM
i got the script from http://www.scriptarchive.com/

simple search script/

thought this would work... i know it worked before i had to change server hosts... but as far as i know the code has not changed and I just tried to alter where it was gettting the serch cgi script from.

any thoughts?

i seriously have no clue about this. i know that it is in the nav and is not fuctioning... tks so much for looking//

FishMonger
08-08-2005, 06:40 AM
Humm "simple search", well yes it's a simple script but poorly written and hasn't been updated for nearly 10 years ("Last Modified 12/16/95"). I wouldn't recommend using it, and I'm sure Matt, the author, doesn't use it either.

I'm done for the day (too many glasses of wine) but if you really want to use this script, I'll look at it tomarrow to see what needs to be done to fix it. It would help if you tell me what, if any, changes you made and what errors you're receiving.

bluebonnet
08-08-2005, 04:43 PM
hi.

it does not make a difference to me what i use. i will use something else, np. I just need it to fucntion properly. i did not make any changes to that script. The only change i made was on the http://sstfloor.com/search.htm page.. I changed where the script was pointing too, from the old server host to the new one. Then I madea cgi-bin folder and dropped it in.

The errors I get from the http://sstfloor.com/search.htm page are as follows :

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@sstfloor.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


-------------------------------------------------------------------

Any thoughts?

Tks again.
Cheers!

Megan

FishMonger
08-08-2005, 06:35 PM
Did the script work when it was pointing to the old server? If so, then you need to look at a) permission settings on the script and cgi-bin directory. b) httpd.conf file has a script alias pointing to your cgi-bin directory.

If the permissions and conf file are set correctly, lets see if we can get a more descriptive error message. Add this line to the beginning of the script.

use CGI::Carp qw(fatalsToBrowser);

You can also look at the apache error log to get more info.

bluebonnet
08-08-2005, 10:19 PM
i tried that to no avail.

the thing is that i was asked to take off the request page since it was not working and as i started to do so, i realized the search fucntionality on the search page and off the nav was not working... so i that is when i realized there was no cgi-bin search script on the new server... downloaded what i thought was the one the fellow may have used and put it up... so as you can see, i have no clue.