Gossamer Forum
Home : Products : DBMan : Installation :

cgi error

Quote Reply
cgi error
I have done the tutorial on your page and it worked very well but when I used the configurator to ceate the config and html files. this is what I get on my browser.
CGI ERROR
==========================================
Error Message : fatal error: Undefined subroutine &main::auth_cleanup called at db.cgi line 77.

Script Location : db.cgi
Perl Version : 5.00404
Setup File : default.cfg

Form Variables
-------------------------------------------

Environment Variables
-------------------------------------------
DOCUMENT_ROOT : /data1/hypermart.net
GATEWAY_INTERFACE : CGI/1.1
HTTP_ACCEPT : application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint, image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_ACCEPT_LANGUAGE: en-us
HTTP_CONNECTION : Keep-Alive
HTTP_HOST : alkal.hypermart.net
HTTP_USER_AGENT : Mozilla/4.0 (compatible; MSIE 5.01; Windows 98)
PATH : /usr/local/bin:/usr/bin:/bin
QUERY_STRING :
REMOTE_ADDR : 203.134.37.116
REMOTE_PORT : 1828
REQUEST_METHOD : GET
REQUEST_URI : /cgi-bin/dbman/db.cgi
SCRIPT_FILENAME : /data1/hypermart.net/alkal/cgi-bin/dbman/db.cgi
SCRIPT_NAME : /cgi-bin/dbman/db.cgi
SCRIPT_URI : http://alkal.hypermart.net/cgi-bin/dbman/db.cgi
SCRIPT_URL : /cgi-bin/dbman/db.cgi
SERVER_ADMIN : webmaster@hypermart.net
SERVER_NAME : alkal.hypermart.net
SERVER_PORT : 80
SERVER_PROTOCOL : HTTP/1.1
SERVER_SOFTWARE : Apache/1.3.6 (Unix)
Quote Reply
Re: cgi error In reply to
This has been discussed before...Make sure that you have &auth_cleanup in the elsif statements in the sub main routine in the db.cgi file.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------







Quote Reply
Re: cgi error In reply to
here are the three concerned files in text format please advise.
Please note that auth.pl is in the dbman directory
regards
Quote Reply
Re: cgi error In reply to
Sorry I forgot to give you the location of the txt files here it is http://alkal.hypermart.net/00text/
regards
Quote Reply
Re: cgi error In reply to
Okay...so you have the auth_cleanup reference in your db.cgi. The problem is related to not having your auth.pl probably defined in the default.cfg file or you do not have the auth.pl file in your DBMAN directory or on your server.

The sub auth_cleanup is located in your auth.pl script.

BTW: PLEASE do not post duplicate redundant Threads....just add Replies to your original Threads.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------







Quote Reply
Re: cgi error In reply to
Try setting the following variable to 1 for kicks:

Code:
$auth_no_authentication = 1;

BTW: You wouldn't happen to be using .htaccess to try to protect your DBMAN directory, are you?

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------







Quote Reply
Re: cgi error In reply to
I am using htaccess, but I have the option all settings on. what should I do?
ps I have made the proposed changes in the deffault.cfg file but the same error message keeps poping up.
Quote Reply
Re: cgi error In reply to
That is your problem! Do not use .htaccess in the DBMAN directory!

Then keep the authentication settings to 0, so that there is authentication!

Man, two other users experienced the same problem in the last week and the solution was posted in the Threads they wrote!

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------







Quote Reply
Re: cgi error In reply to
sorry eliot, I might have misled you when I said I have ht.access in my dbman directory it is though in the same directory as dbman which is the cgi_bin.
furthur more like I said before I am very new to this forum so I did not see the other threads but if you can remember who they were? i'll be happy to go and seek resoultion through them
thanks
Quote Reply
Re: cgi error In reply to
Take out the .htaccess file in your cgi-bin directory. See if that works...if not consult the Threads that discuss .htaccess.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------







Quote Reply
Re: cgi error In reply to
I have tried that but no good, I have changed to another server that does not have htaccess file and I tried the demo it works perfect, using the configurator I made the files and uploaded them to the server,
now I am gettingError Message
: fatal error: Undefined subroutine &main::html_home called at db.cgi line 104.

I have loaded the dd.cgi and deffault.cfg to
http://hammer.prohosting.com/~alkal/cgi-bin/db.txt
and
http://hammer.prohosting.com/~alkal/cgi-bin/default.txt
respectively please take a look.
regards
Quote Reply
Re: cgi error In reply to
I don't know what to tell you...Your db.cgi file does have the html_home sub-routine defined in the sub main routine. I checked through all your codes in the db.cgi and I could not see anything out of the ordinary that would cause the error you are coming across.

Sorry...Since this is probably one of the first cgi scripts you have installed and are having so many problems, I would suggest contacting one of the Installers in the Resource Center to help you!

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------