Gossamer Forum
Home : Products : DBMan : Installation :

:-( I am so in-need of help!!!

Quote Reply
:-( I am so in-need of help!!!
Could someone please help me.
I am not sure if the problem is with the html.pl or the db.cgi itself.
This is the error that I have been getting. Could someone drop me a line.

CGI ERROR
==========================================
Error Message : fatal error: Undefined subroutine &main::html_home called at c:/apache/htdocs/btia/cgi-bin/db.cgi line 105.

Script Location : c:/apache/htdocs/btia/cgi-bin/db.cgi
Perl Version : 5.00502
Setup File : default.cfg


These files might be able help you.

http://www.belizehome.com/belize/tas00/cgi/bd_cgi.txt

http://www.belizehome.com/belize/tas00/cgi/default_cfg.txt

http://www.belizehome.com/belize/tas00/cgi/html_pl.txt


Thanks in advance!

Quote Reply
Re: :-( I am so in-need of help!!! In reply to
Hello Tas, in your default.cfg file, you've duplicated a portion of the path.
$db_dir_url = "http://192.168.11.17:21/btia/cgi-bin"; << correct

$db_script_url = $db_dir_url . "http://192.168.11.17:21/btia/cgi-bin/db.cgi"; << wrong

In the path above, this portion:
$db_script_url = $db_dir_url . "http://192.168.11.17:21/btia/cgi-bin/db.cgi";

is already identified by the $db_dir_url (the first path listed)
$db_dir_url = "http://192.168.11.17:21/btia/cgi-bin";

This is the portion which identifies the $db_dir_url listed in the first path and attaches it with the file name:
$db_script_url = $db_dir_url . "/db.cgi";

try changing your file so the paths look like the one just above (okay, without the green <smile>)

Karen


Quote Reply
Re: :-( I am so in-need of help!!! In reply to
Thanks for the tip!

But apparently I am still getting the same errors.


Quote Reply
Re: :-( I am so in-need of help!!! In reply to
Hello Tas00, I am unable to access http://192.168.11.17/ at all. I'm not sure how you are trying to access the scripts. If you're trying to run the scripts on a personal server installed on your computer, you'll need to search thru this forum for installation tips.

I know I've seen posts indicating the paths need to be identified using the system settings.

c:/apache/htdocs/btia/cgi-bin/db.cgi
Came up in your error message. You might want to try modifying the paths to something like:

$db_dir_url = "c:/apache/htdocs/btia/cgi-bin";
$db_script_url = "c:/apache/htdocs/btia/cgi-bin/db.cgi";

Note that I've omitted the $db_dir_url . portion from $db_script_url and included the full path to the file.

Hope this helps you along.




Quote Reply
Re: :-( I am so in-need of help!!! In reply to
The full path is http://192.168.11.17:21/
I am not sure if you will be able to access it beacuse I am testing my CGI scripts from a personal webserver, on a corp network, behind a firewall.

But if you cannot access the server, the html.pl, db.cgi, and the default.cfg are in text format on my homepage as listed above.

I have also tried your tip, but STILL!

Someone, anyone, everyone, please help, for I am running out of coffee! :-)


Quote Reply
Re: :-( I am so in-need of help!!! In reply to
Ahhh, PWS Smile

There's been a heap of messages posted on this topic, try doing a search on "pws" or "windows", you might be able to get some ideas.

The most common fix is the $db_script_path variable in db.cgi, set this to the full path of DBMan on your system (eg: c:\inetpub\cgi-bin\dbman or whatever)

The $db_dir_url variable in default.cfg should generally point to the web address of DBMan. So if you access your site via http://192.168.11.17:21/, then that's probobly what should go in there.

Good luck!

- Mark


Astro-Boy!!
http://www.zip.com.au/~astroboy/
Quote Reply
Re: :-( I am so in-need of help!!! In reply to
Ok!
I am now officially out of coffee.
I made friend with this DBman script, and came to the conclusion that he does not like me.

I have fixed on problem, but another is in my face.
can someone PLEASE tell me why I would get this error.

And possible a fix for it.
**********************************************************
CGI ERROR

Error Message fatal error: Undefined subroutine &main::html_login_form called at c:/apache/htdocs/btia/cgi-bin/new/db.cgi line 118.
Script Location: c:/apache/htdocs/btia/cgi-bin/new/db.cgi
Perl Version: 5.00502
Setup File: default.cfg
**********************************************************

The script can be found at my homepage as text format.

http://www.belizehome.com/belize/tas00/cgi/bd_cgi.txt

http://www.belizehome.com/belize/tas00/cgi/default_cfg.txt

http://www.belizehome.com/belize/tas00/cgi/html_pl.txt


Thanks In Advance!

Quote Reply
Re: :-( I am so in-need of help!!! In reply to
Hi Tas00, try changing

$db_script_path = ".";

in db.cgi (near the top of the file) to the full path on your server. Hope this helps :-)

Quote Reply
Re: :-( I am so in-need of help!!! In reply to
Still no change :-(

Quote Reply
Re: :-( I am so in-need of help!!! In reply to
I dont know if you have updated your default_cfg.txt file to reflect your latest changes, but the current one has a few problems:

1) You have commented out $db_dir_url, set it to the web address of your DBMan directory and uncomment it

2) You have removed $db_dir_url from your $db_script_url variable.
It should read $db_script_url = $db_dir_url . "/db.cgi";

2) You have removed $db_script_path from all the other variables (from $db_file_name down to $auth_log_file).
They should also read $db_file_name = $db_script_path . "/btb.db"; and so on...

3) The line $require = "/html.pl"; is wrong.
Change it to require $db_script_path . "/html.pl"; (ie: it's not a variable)

Point 4 would be the one causing your current problem, but the others will cause problems in the future.

Hope you get things working,

- Mark


Astro-Boy!!
http://www.zip.com.au/~astroboy/
Quote Reply
Re: :-( I am so in-need of help!!! In reply to
One last thing...

If all else fails, try renaming db.cgi to db.pl

- Mark


Astro-Boy!!
http://www.zip.com.au/~astroboy/
Quote Reply
Re: :-( I am so in-need of help!!! In reply to
Thanks AstroBoy, silly me.

But
It seems like I am always running into problems.
This is the latest.

CGI ERROR
==========================================
Error Message : unable to open directory in auth_cleanup: C:Apachehtdocstiai-bin
ew/auth. Reason: No such file or directory
Script Location : c:/apache/htdocs/btia/cgi-bin/new/db.cgi
Perl Version : 5.00502
Setup File : default.cfg

the folder auth does exist, as well as the index.htm.
so what could be the problem?

Anyone?

Pleaseeeee :(

Quote Reply
Re: :-( I am so in-need of help!!! In reply to
Hello Tas
In Reply To:
the folder auth does exist, as well as the index.htm.
so what could be the problem?
Do you have a folder named auth in the same directory where your cgi files are located? This folder should have a index.htm file in the folder.

This folder is identified in the readme file included in the download file.

HTH

Tas, please correct the link to your profile image or remove it - it really slows down the page display when image links are broken. You have the link pointing to an html file instead of an image file.