Gossamer Forum
Home : Products : DBMan : Installation :

CGI Error

Quote Reply
CGI Error
I am receiving a strange string of errors they are:
Bareword found where operator expected at D:\servername\cgi-bin\db.pl line 51, near "unless ($db_setup =~ /^[A-Za-z0-9]+$/) { die "Invalid"
(Do you need to predeclare unless?)
syntax error at D:\servername\cgi-bin\db.pl line 51, near "unless ($db_setup =~ /^[A-Za-z0-9]+$/) { die "Invalid config "
String found where operator expected at D:\servername\cgi-bin\db.pl line 52, near "require ""
(Might be a runaway multi-line "" string starting on line 51)
(Missing semicolon on previous line?)
Bareword found where operator expected at D:\servername\cgi-bin\db.pl line 52, near "require "default"
(Do you need to predeclare require?)
String found where operator expected at D:\servername\cgi-bin\db.pl line 53, near "require ""
(Might be a runaway multi-line "" string startin

the IP address of the server is replaces by servername so I know that is ok. If anyone can help me out it is greatly appreciated


Quote Reply
Re: CGI Error In reply to
Hi, I am guessing from the file path names that you are installing dbman on an NT system. If so, please review an informative topic posted by AstroBoy on the dbman discussion forum (topic name = DBMan in a Windows environment - Checklist)



Quote Reply
Re: CGI Error In reply to
Thsnks for the reply, I went throught the checklist and am still having the problem, but I have a question, in the database where we put the fields there weren't any ' marks only around the field type so I put them in, could that cause a problem?

Quote Reply
Re: CGI Error In reply to
In Reply To:
in the database where we put the fields there weren't any ' marks only around the field type so I put them in, could that cause a problem
I doubt it, but DBMan will work fine without them.

It's probobly just a Syntax error in db.pl... would you be able to post it on a website somwehere where we could look at it?

- Mark


Astro-Boy!!
http://www.zip.com.au/~astroboy/
Quote Reply
Re: CGI Error In reply to
yeh sure! go here http://www.mcava.org/dbman/db.txt
I appreciate your help on this. Thanks

Dave

Quote Reply
Re: CGI Error In reply to
Ok, I see the problem:
$db_script_path = "d:\216.247.243.10\cgi-bin\";

The backslash is an escape charatcer, so in order to use it, you need to escape it first.
eg:$db_script_path = "d:\\216.247.243.10\\cgi-bin";

Or you can just use forward slashes:
eg:$db_script_path = "d:/216.247.243.10/cgi-bin";

Either way will work fine. Notice how I've omitted the last slash, you probobly don't need this as it is added in default.cfg

Maybe I should add this to my checklist Smile

- Mark


Astro-Boy!!
http://www.zip.com.au/~astroboy/