Gossamer Forum
Home : Products : DBMan : Installation :

DBMan encountered an internal error. Please enable

Quote Reply
DBMan encountered an internal error. Please enable
When i try to browse the db.cgi on my server, i only can get this message:
DBMan encountered an internal error. Please enable debugging to view.
can u tell me what is this message meaning and how to solve it?!!
thanks

Quote Reply
Re: DBMan encountered an internal error. Please enable In reply to
Enable de-bugging...

$db_debug = 1; in the default.cfg file.

Then post the EXACT error message you receive.

If you still receive an Internal Server Error, then you need to make sure that the db.cgi is chmod 755 and read the README file to make sure that the other files/folders are set to the proper permission.

Regards,

Eliot Lee
Quote Reply
Re: DBMan encountered an internal error. Please enable In reply to
right now the main menu can come out, and also come out this error information:

DBMan encountered an internal error.

CGI ERROR
==========================================
Error Message : Debug Information
Script Location : C:\Inetpub\wwwroot\dbman\db.cgi
Perl Version : 5.006
Setup File : default.cfg
User ID : default

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

Environment Variables
-------------------------------------------
ALLUSERSPROFILE : C:\Documents and Settings\All Users
CI_HOLOS_CLI : C:\Program Files\Seagate Software\Open OLAP
CLASSPATH : C:\Oracle\Ora812000\orb\classes\yoj.jar;C:\Oracle\Ora812000\orb\classes\share.zip
COMMONPROGRAMFILES : C:\Program Files\Common Files
COMPUTERNAME : PETER
COMSPEC : C:\WINNT\system32\cmd.exe
CONTENT_LENGTH : 0
GATEWAY_INTERFACE : CGI/1.1
HTTPS : off
HTTP_ACCEPT : */*
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_ACCEPT_LANGUAGE: en-us
HTTP_CONNECTION : Keep-Alive
HTTP_HOST : 127.0.0.1
HTTP_USER_AGENT : Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
INSTANCE_ID : 1
LOCAL_ADDR : 127.0.0.1
NUMBER_OF_PROCESSORS: 1
OS : Windows_NT
OS2LIBPATH : C:\WINNT\system32\os2\dll;
PATH : C:\Oracle\Ora812000\bin;C:\Program Files\Oracle\jre\1.1.7\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Oracle\Ora812000\orb\bin;
PATHEXT : .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PATH_INFO : /dbman/db.cgi
PATH_TRANSLATED : C:\Inetpub\wwwroot\dbman\db.cgi
PROCESSOR_ARCHITECTURE: x86
PROCESSOR_IDENTIFIER: x86 Family 6 Model 8 Stepping 3, GenuineIntel
PROCESSOR_LEVEL : 6
PROCESSOR_REVISION : 0803
PROGRAMFILES : C:\Program Files
REMOTE_ADDR : 127.0.0.1
REMOTE_HOST : 127.0.0.1
REQUEST_METHOD : GET
SCRIPT_NAME : /dbman/db.cgi
SERVER_NAME : 127.0.0.1
SERVER_PORT : 80
SERVER_PORT_SECURE : 0
SERVER_PROTOCOL : HTTP/1.1
SERVER_SOFTWARE : Microsoft-IIS/5.0
SYSTEMDRIVE : C:
SYSTEMROOT : C:\WINNT
TEMP : C:\WINNT\TEMP
TMP : C:\WINNT\TEMP
USERPROFILE : C:\Documents and Settings\NetShowServices
WINDIR : C:\WINNT



Quote Reply
Re: DBMan encountered an internal error. Please enable In reply to
Okay...seems like it was a permission error...I would continue to test DBMAN and when you feel it is working properly, disable de-debugging....

Code:

$db_debug = 0;


De-bugging should only be turned on during the initial testing phase -AND- when you add modifications or customize DBMAN.

Regards,

Eliot Lee
Quote Reply
Re: DBMan encountered an internal error. Please enable In reply to
thank you very much.....

Quote Reply
Re: DBMan encountered an internal error. Please enable In reply to
You're welcome.

Regards,

Eliot Lee
Quote Reply
Re: DBMan encountered an internal error. Please en In reply to
Hi,
I am a new user of this forum and DBMan. I have managed to install everything in our server but I get a cgi error. I also visited the configurator site and uploaded the new .cfg and html.pl files.

Please visit the live DBMan at:
http://www.ftf-tokyo.com/cgi-bin/dbman/db.cgi?db=default

Quote Reply
Re: DBMan encountered an internal error. Please en In reply to
You have one of the paths incorrectly routed in the default.cfg file.

Reason: Can't locate /web/u79/www15203/cgi-bin/dbman/db.cgi/html.pl ... at default.cfg line 49.

Your script shouldn't be calling the html.pl file as an addition to the db.cgi file. If you could save your default.cfg file as a text file (rename it default.txt) and upload it to an area on your server that can be viewed from the web, we could take a look at the file after you post the URL.




Quote Reply
Re: DBMan encountered an internal error. Please en In reply to
Hi Karen,

Here it is, to save you time:

# File and URL's
# --------------------------------------------------------
# URL of the directory dbman resides in. No Trailing Slash Please.
$db_dir_url = "http://www.ftf-tokyo.com/cgi-bin/dbman";
# URL of dbman.
$db_script_url = $db_dir_url . "/db.cgi";
# Full Path and File name of the database file.
$db_file_name = $db_script_path . "/default.db";
# Full path and file name of the counter file.
$db_id_file_name = $db_script_path . "/default.count";
# Full path and file name of the authorization directory.
$auth_dir = $db_script_path . "/auth";
# Full path and file name of the password file.
$auth_pw_file = $db_script_path . "/default.pass";
# Full path and file name of the log file.
$auth_log_file = $db_script_path . "/default.log";
# Full path and file name of the html routines.
require $db_script_path . "/html.pl";

# Database Definition
# --------------------------------------------------------
# Definition of your database. Format is
# field_name => ['position', 'field_type', 'form-length', 'maxlength', 'not_null', 'default', 'valid_expr']

%db_def = (
'UserID' => [ 0, 'alpha', 20, 255, 1, '', ''],
'Company Name' => [ 1, 'alpha', 20, 255, 1, '', ''],
'City' => [ 2, 'alpha', 20, 255, 1, '', ''],
'Country' => [ 3, 'alpha', 20, 255, 1, '', ''],
'Address' => [ 4, 'alpha', 20, 255, 1, '', ''],
'Phone for Reservations'=> [ 5, 'alpha', 20, 255, 1, '', ''],
'Fax for Reservations'=> [ 6, 'alpha', 20, 255, 1, '', ''],
'Networks' => [ 7, 'alpha', 20, 255, 0, '', ''],
'Contact E-mail' => [ 8, 'alpha', 20, 255, 1, '', '.+@.+..+'],
'Equipment and protocol'=> [ 9, 'alpha', 20, 255, 1, '', ''],
'Data speed' => [10, 'alpha', 20, 255, 1, '', ''],
'No. of lines' => [11, 'alpha', 20, 255, 1, '', '']
);

# The column name for the database key. Can be any column, but it must be unique!
# You can't have two records with the same key value!
$db_key = 'UserID';
# Track the key? Should DBMan keep a counter of the next key to use? This isn't
# neccessary if you can guarantee that your entry in the key field will be unique
# (i.e. a userid).
$db_key_track = 0;
# Database delimeter.
$db_delim = '|';
# Use file locking (1 = Yes, 0 = No). Should be used, but won't work on Win95.
$db_use_flock = 1;
# Auto generate the html forms (1 = Yes, 0 = No).
$db_auto_generate = 0;
# Display Benchmarking Information (1 = Yes, 0 = No).
# use Benchmark; # Uncomment this line if benchmarking is used.
$db_benchmark = 0;
# Display Debugging Information (1 = Yes, 0 = No).
$db_debug = 0;

# Select fields. Field name => 'comma seperated list of drop down options'.
%db_select_fields = (

);

# Radio fields. Field name => comma seperated list of radio buttons.
%db_radio_fields = (

);

# Checkbox fields. Field name => Checkbox value.
%db_checkbox_fields = (

);

# Default maximum number of hits returned in a search.
$db_max_hits = 10;
# Bold search results (1 = Yes, 0 = No).
$db_bold = 1;
# Regular and title fonts used in auto_generation and html.pl.
$font = 'font face="verdana,arial,helvetica" size="2"';
$font_title = 'font face="verdana,arial,helvetica" size="4"';

# Authorization Options
# --------------------------------------------------------
# No Authentication? (1 = "there is no authentication", 0 = "there is authentication")
# If you choose no authentication, then set the permissions of what
# people can do with: @auth_default_permissions below.
$auth_no_authentication = 0;

# The amount of time in seconds that user files are kept in the
# auth directory before the program removes them. 2-6 hours is
# probably a good value.
$auth_time = 21600; # 6 hours (in seconds)

# Enable (1) or disable (0) logging.
$auth_logging = 1;

# Allow a default user? This means you can specify a user via the URL
# and skip the logon process. Use this to allow people to search without
# logging on, but require log in if they want to add/modify/remove etc.
# (1 = "yes", 0 = "no")
$auth_allow_default = 1;

# Default permissions used if there is no authentication, or for a default
# user. (View, Add, Delete, Modify, Admin), 1 = enable, 0 = disable.
@auth_default_permissions = (1,1,0,0,0);

# Allow people to sign up for their own userid/passwords? They will
# recieve default permissions.
$auth_signup = 1;

# Permissions a new signup should get.
@auth_signup_permissions = (1,1,1,1,0);
# Registered users: can modify/delete _only_ own records. For this to make
# sense you should set default off or to 1,0,0,0.
$auth_modify_own = 1;

# Registered users: can view _only_ own records. For this to make sense
# you should turn off default permissions.
$auth_view_own = 0;

# Auth user field. This is the field position in the database used for storing
# the userid who owns the record. Set to -1 if not used.
$auth_user_field = 0;

# URL to send user if they chose log off. Leave blank and the script will return to
# the logon prompt (although this only makes sense if you are using authentication).
$auth_logoff = "http://www.ftf-tokyo.com";


# ===========================================================================
# Build up some variables from your definitions. Internal use only.
foreach (sort { $db_def{$a}[0] <=> $db_def{$b}[0] } keys %db_def) {
push (@db_cols, $_);
$db_sort{$_} = $db_def{$_}[1];
$db_form_len{$_} = $db_def{$_}[2];
$db_lengths{$_} = $db_def{$_}[3];
$db_not_null{$_} = $db_def{$_}[4];
$db_defaults{$_} = $db_def{$_}[5];
$db_valid_types{$_} = $db_def{$_}[6];
($_ eq $db_key) and $db_key_pos = $db_def{$_}[0];
}
1;


Quote Reply
Re: DBMan encountered an internal error. Please en In reply to
CGI ERROR
==========================================
Error Message : fatal error: Undefined subroutine &main::auth_check_password called at db.cgi line 78.

------------------
Triple check your file permissions (read, write, execute) and make sure that all of your files were uploaded (that you didn't miss any) and that they were uploaded in ASCII format ('binary' or 'autodetect' often doesn't work).

Also do a search on 'undefined subroutine' and use 'all posts' as part of your criteria, you'll find a bunch of posts and get some ideas as to what the problem could be. I'd put my money on it being a permissions issue...

Quote Reply
Re: DBMan encountered an internal error. Please en In reply to
I'm posting this in the same thread because I got the same error as the subject line, but after looking at the debug report, it's different. I also used the Configurater at JPDeni's great site and copy and pasted the code.

Here are links to copies of the default.cfg and html.pl files:

http://www.cleft.barrysworld.net/default_cfg.txt
http://www.cleft.barrysworld.net/html_pl.txt

I have a copy of the debug report here:

http://www.cleft.barrysworld.net/debug_report.txt

I should warn you that I'm a newbie at perl (only have installed one script successfully), so go easy on me... I was surprised that I was able to get a debug report :).

Appreciate any help!

Kim

http://calvero.cjb.net
Quote Reply
Re: DBMan encountered an internal error. Please en In reply to
DBMan encountered an internal error.

CGI ERROR
==========================================
Error Message : Error loading required libraries.
Check that they exist, permissions are set correctly and that they compile.
Reason: Unmatched right curly bracket at ./html.pl line 84, at end of line
syntax error at ./html.pl line 84, near "}"

Compilation failed in require at default.cfg line 51.
Compilation failed in require at /websites/hosted/cleft/cgi-bin/dbman/db.cgi line 51.
-----------------------------------

For some reason you have a bunch of "closing" brackets that don't correspond with an opening bracket see your code below:

print qq|
<TR><TD ALIGN="Right" VALIGN="TOP" WIDTH="20%"><$font_color>Location (if in US/Canada):</FONT></TD>
<TD WIDTH="80%"> <$font>$rec{'Location (if in US/Canada)'}</Font></TD></TR>
|;
}
print qq|
<TR><TD ALIGN="Right" VALIGN="TOP" WIDTH="20%"><$font_color>Location (if outside of US/Canada):</FONT></TD>
<TD WIDTH="80%"> <$font>$rec{'Location (if outside of US/Canada)'}</Font></TD></TR>
|;
}
print qq|
<TR><TD ALIGN="Right" VALIGN="TOP" WIDTH="20%"><$font_color>Email:</FONT></TD>
<TD WIDTH="80%"> <$font><a href="mailto:$url{'Email'}">$rec{'Email'}</a>
|;
}
---------------------------------------------

Think of the html.pl this way.... it is made up of "subroutines" like this:

sub your_routine {
your text or actions go here,
or even refer to another subroutine,

{
and can include other bits of more stuff
}
and then finally
}

Notice how the brackets are structured? For every opening bracket you have to have a closing bracket.

Several suggestions...

Change only *one thing* at a time (this keeps you from making a total mess of things).

Use a text editor (like TextPad) where you can turn on "line numbering" (this will make it easier to find where line 84 is - sometimes the error is just above/below the line referenced).

Spend $25 on "Perl for Dummies", it is easy to read and explains a lot of things.

Hope this helps somewhat... - Mike.

Quote Reply
Re: DBMan encountered an internal error. Please en In reply to
Thanks Mike for taking the time to find what was wrong :). I'll be looking at it later and see what I can do with it.

I enjoy the Dummies line of books, and hadn't thought about getting one for perl until you mentioned it.

Thanks again!

http://calvero.cjb.net