Gossamer Forum
Home : Products : DBMan : Installation :

Undefined subroutine

Quote Reply
Undefined subroutine
After installation i'm getting this error-message:

Error Message : fatal error: Undefined subroutine &main::html_signup_form called at /homepages/18/d42205783/htdocs/cgi-bin/db.cgi line 112.

Script Location : /homepages/18/d42205783/htdocs/cgi-bin/db.cgi
Perl Version : 5.00502
Setup File : default.cfg

I think there is also an error in the config file (perhaps this is the start of all the errors). In my default.cfg i found this two lines:

# Full path and file name of the html routines.
require $db_script_path . "/html.pl";

I think there is missing the name of the variable and the "=" sign.

How can help me ????

Quote Reply
Re: [Milly] Undefined subroutine In reply to
This line is fine and as it should be:

require $db_script_path . "/html.pl";

The problem is the script can not find the sub for signing up. In your html.pl file: sub html_signup_form

How are you defining:

# URL of the directory dbman resides in. No Trailing Slash Please.

$db_dir_url = "http://path to your db files";

This would be a URL and not the path to the directory.

In your .cfg file move:

$db_debug = 0;

to above the section # File and URL's and it will catch more errors within the .cfg file.

If you still have problems please make a text copy of your .cfg file and post the url to where it can be viewed.

Also are you using the original DBMan script you downloaded?

Unoffical DBMan FAQ

Quote Reply
Re: [LoisC] Undefined subroutine In reply to
If the require line was wrong I *think* DBMAN would show an error about being unable to require html.pl

The error message being experienced suggests the file is being required but the routine doesn't exist in html.pl
Quote Reply
Re: [LoisC] Undefined subroutine In reply to
Now it works !!!!!!

Thanks a lot !!!