Gossamer Forum
Home : Products : DBMan : Installation :

1st time running error

Quote Reply
1st time running error
downloaded and installed to /var/www/cgi-bin/dbman/
trying to run the default DB I get at 500 internal Server error

from a terminal :

[root@Dads dbman]# ./db.cgi
[Sun Dec 15 11:28:45 2002] db.cgi: Unrecognized escape \A in character class passed through in regex; marked by <-- HERE in m/^[\A <-- HERE -Za-z0-9]+\.\d+$/ at ./db.cgi line 73.
[Sun Dec 15 11:28:45 2002] db.cgi: Name "main::db_not_null" used only once: possible typo at ./db.cgi line 762.
[Sun Dec 15 11:28:45 2002] db.cgi: Name "main::db_max_hits" used only once: possible typo at ./db.cgi line 333.
[Sun Dec 15 11:28:45 2002] db.cgi: Name "main::db_script_link_url" used only once: possible typo at ./db.cgi line 54.
[Sun Dec 15 11:28:45 2002] db.cgi: Name "main::auth_view_own" used only once: possible typo at ./db.cgi line 339.
[Sun Dec 15 11:28:45 2002] db.cgi: Name "main::db_bold" used only once: possible typo at ./db.cgi line 492.
[Sun Dec 15 11:28:45 2002] db.cgi: Name "main::auth_no_authentication" used only once: possible typo at ./db.cgi line 47.
[Sun Dec 15 11:28:45 2002] db.cgi: Name "main::auth_signup_permissions" used only once: possible typo at ./db.cgi line 675.
[Sun Dec 15 11:28:45 2002] db.cgi: Use of uninitialized value in string eq at ./db.cgi line 1068.
[Sun Dec 15 11:28:45 2002] db.cgi: Use of uninitialized value in string eq at ./db.cgi line 1068.
Content-type: text/html
DBMan encountered an internal error. Please enable debugging to view.

the use only use I can ignore - what to do a out the others?[reply]
Quote Reply
Re: [pdc1234] 1st time running error In reply to
Are you running this on a unix or windows server?

Did you turn on debugging to see what errors it shows?

How are you calling the script? You need to include the name of the database in the url such as:

http://yourserver.com/cgi-bin/dbman/db.cgi?db=default&uid=default

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [LoisC] 1st time running error In reply to
OS = mandrake 9 (linux)

calling
http://127.0.0.1/cgi-bin/dbman/db.cgi?db=default&uid=default
browser output:
DBMan encountered an internal error. Please enable debugging to view.

gives this in the httpd error log
[Sun Dec 15 21:38:10 2002] db.cgi: Unrecognized escape \A in character class passed through in regex; marked by <-- HERE in m/^[\A <-- HERE -Za-z0-9]+\.\d+$/ at /var/www/cgi-bin/dbman/db.cgi line 73.
[Sun Dec 15 21:38:11 2002] db.cgi: Name "main::db_not_null" used only once: possible typo at /var/www/cgi-bin/dbman/db.cgi line 762.
[Sun Dec 15 21:38:11 2002] db.cgi: Name "main::db_max_hits" used only once: possible typo at /var/www/cgi-bin/dbman/db.cgi line 333.
[Sun Dec 15 21:38:11 2002] db.cgi: Name "main::db_script_link_url" used only once: possible typo at /var/www/cgi-bin/dbman/db.cgi line 54.
[Sun Dec 15 21:38:11 2002] db.cgi: Name "main::auth_view_own" used only once: possible typo at /var/www/cgi-bin/dbman/db.cgi line 339.
[Sun Dec 15 21:38:11 2002] db.cgi: Name "main::db_bold" used only once: possible typo at /var/www/cgi-bin/dbman/db.cgi line 492.
[Sun Dec 15 21:38:11 2002] db.cgi: Name "main::auth_no_authentication" used only once: possible typo at /var/www/cgi-bin/dbman/db.cgi line 47.
[Sun Dec 15 21:38:11 2002] db.cgi: Name "main::auth_signup_permissions" used only once: possible typo at /var/www/cgi-bin/dbman/db.cgi line 675.

im not bothereds about the 'use oniylonce' stuff.
Quote Reply
Re: [pdc1234] 1st time running error In reply to
The errors stated I don't think are the problem with the script not running. And I'm not sure if you tried turning on debugging within the .cfg file.

I would suggest you search the installation forum for "linux" and read the related threads. There is one that stated the 500 server error and how it worked with one version of Perl and not another. The problem in that case was with the server and not the script.

I hope with a little searching you are able to find a solution that works for you.

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [pdc1234] 1st time running error In reply to
The regex error was on line 103 for me but anyway....

Change:

Quote:
(-e "$auth_dir/$db_uid") and ($db_uid =~ /^[\A-Za-z0-9]+\.\d+$/)

...to....

Quote:
(-e "$auth_dir/$db_uid") and ($db_uid =~ /^[a-z0-9]+\.\d+$/i)

Last edited by:

Paul: Dec 18, 2002, 2:09 AM