I pretty much had my dbman all set up the way I wanted it to (had some minor bugs - see my other post about Confirmation Screens), so I wanted to change the names of the files, from default, to match the people I was doing it for. Well, I went and changed the names, changed the .cfg lines to match, and now the thing won't even run. I have checked and rechecked until my eyes are gonna burn out looking at this monitor. So, here is what I am getting:
Error Message : Error loading required libraries.
Check that they exist, permissions are set correctly and that they compile.
Reason: Invalid config file name: hr_dept at /home/pcgov/cgi-bin/db.cgi line 50.
Script Location : /home/pcgov/cgi-bin/db.cgiPerl Version : 5.00502
Setup File : hr_dept.cfg
I went and looked at the db.cgi file at line 50 and this is what I see...
# --------------------------------------------------------
# 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
};
Line 50 is the one that starts "unless (....". So I looked at what the $db_setup reffered to, and saw these lines about 10 lines up from this segment, and it is this....
local(%in) = &parse_form;
$in{'db'} ? ($db_setup = $in{'db'}) : ($db_setup = 'default');
$in{'uid'} ? ($db_uid = $in{'uid'}): ($db_uid = '');
I didn't change a thing in this file, the first line (#!/usr/local/bin/perl) was already correct for my server, so I touched nadda.
Just to make sure nothing was wrong, I reuploaded the original demo version, set the .cfg file for that one to match dir's and such, and it works fine. But all I did was change the names of the files, chaned the corrosponding lines in the renamed .cfg file, and then ran the db.cgi file with the new ?db=hr_dept argument, just like the README file says, and the sky falls in on me.
Any help here is greatly appreciated, and the sooner the better too. Thanks!
Code:
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: hr_dept at /home/pcgov/cgi-bin/db.cgi line 50.
Script Location : /home/pcgov/cgi-bin/db.cgiPerl Version : 5.00502
Setup File : hr_dept.cfg
I went and looked at the db.cgi file at line 50 and this is what I see...
Code:
# 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
};
Line 50 is the one that starts "unless (....". So I looked at what the $db_setup reffered to, and saw these lines about 10 lines up from this segment, and it is this....
Code:
# Load the form information and set the config file and userid. local(%in) = &parse_form;
$in{'db'} ? ($db_setup = $in{'db'}) : ($db_setup = 'default');
$in{'uid'} ? ($db_uid = $in{'uid'}): ($db_uid = '');
I didn't change a thing in this file, the first line (#!/usr/local/bin/perl) was already correct for my server, so I touched nadda.
Just to make sure nothing was wrong, I reuploaded the original demo version, set the .cfg file for that one to match dir's and such, and it works fine. But all I did was change the names of the files, chaned the corrosponding lines in the renamed .cfg file, and then ran the db.cgi file with the new ?db=hr_dept argument, just like the README file says, and the sky falls in on me.
Any help here is greatly appreciated, and the sooner the better too. Thanks!