Gossamer Forum
Home : Products : DBMan : Installation :

After Creating an Account...

Quote Reply
After Creating an Account...
After Creating a new account (db.cgi?signup_form=1)
i get this error:

CGI ERROR
==========================================
Error Message : Error loading required libraries.
Check that they exist, permissions are set correctly and that they compile.
Reason: Invalid config file name: db_setup" at db.cgi line 50.

Script Location : db.cgi
Perl Version : 5.00404
Setup File : db_setup".cfg
Session ID : db_uid"

Can anyone help? Thanks!

-=Owner=-
Quote Reply
Re: After Creating an Account... In reply to
How have you set-up your configuration and library paths? Please copy lines 40 - 60 in your db.cgi file.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: After Creating an Account... In reply to
Here are the lines:

local(%in) = &parse_form;
$in{'db'} ? ($db_setup = $in{'db'}) : ($db_setup = 'default');
$in{'uid'} ? ($db_uid = $in{'uid'}): ($db_uid = '');

# Required Librariers
# --------------------------------------------------------
# Make sure we are using perl 5.003, load the config file, and load the auth file.
eval {
unshift (@INC, $db_script_path);
require 5.003; # We need at least Perl 5.003
unless ($db_setup =~ /^[A-Za-z0-9]+$/) { die "Invalid config file name: $db_setup"; }
require "$db_setup.cfg"; # Database Definition File
require "auth.pl"; # Authorization Routines
};
if ($@) { &cgierr ("Error loading required libraries.\nCheck that they exist, permissions are set correctly and that they compile.\nReason: $@"); }

# If we are using benchmarking, then we start a timer and stop it around &main. Then we print the difference.
if ($db_benchmark) { $t0 = new Benchmark; }

eval { &main; }; # Trap any fatal errors so the program hopefully
if ($@) { &cgierr("fatal error: $@"); } # never produces that nasty 500 server error page.
Quote Reply
Re: After Creating an Account... In reply to
Any ideas?
Quote Reply
Re: After Creating an Account... In reply to
Eliot? JPDeni?
Quote Reply
Re: After Creating an Account... In reply to
What is the name of your configuration file? If it is something else than default, then you need to change 'default' to the name of your configuration file name.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: After Creating an Account... In reply to
I left the name 'default'. I didn't change any of the filenames
Quote Reply
Re: After Creating an Account... In reply to
At this point...please save the following files as text files:

default.cfg
html.pl
db.cgi

(like default.txt, html.txt, and db.txt)

And then upload the files to a readable directory in your web server. Then post the URL to the files, so that we can view them.

Thanks.

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: After Creating an Account... In reply to
ok, the url is
http://home.maine.rr.com/tfcescape/

I just removed all other files and directories. Thanks for all your help!
Quote Reply
Re: After Creating an Account... In reply to
Okay Owner,

I think I may know the problem.

Try setting the $db_script_path in db.cgi to the full ABSOLUTE physical path to your DBMAN cgi-bin files, like the following:

/path/to/tfcescape/cgi-bin/fox5

(Change path/to/ to the appropriate home directories that are before your root of tfcescape.)

Do not include the trailing slash.

Also make sure that the Perl path in the first line of db.cgi is correct.

Your other files seem to be configured correctly.

Hope this helps.

Smile

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: After Creating an Account... In reply to
I changed it to the full path to the dbman directory. I also checked the Perl path and it is correct. Any other ideas? Thank you very much for your help!
Quote Reply
Re: After Creating an Account... In reply to
I tried to access your database by going to http://home.maine.rr.com/tfcescape/cgi-bin/fox5/db.cgi but I got a File Not Found error.

I found your problem, though. It's in the html.pl file, sub html_signup_form.

You have

Code:
<input type=hidden name="db" value=$"db_setup">
<input type=hidden name="uid" value=$"db_uid">

You need to have

Code:
<input type=hidden name="db" value="$db_setup">
<input type=hidden name="uid" value="$db_uid">



------------------
JPD