Gossamer Forum
Home : Products : DBMan : Installation :

error line 171

Quote Reply
error line 171
Hi,
I keep getting the following error when trying to run the script.

CGI ERROR
==========================================
Error Message : Error loading required libraries.
Check that they exist, permissions are set correctly and that they compile.
Reason: Unmatched right bracket at /data1/hypermart.net/bidderz/scs/cgi/db/default.cfg line 171, at end of line
syntax error at /data1/hypermart.net/bidderz/scs/cgi/db/default.cfg line 171, near "_}"

Pleas Help!
Quote Reply
Re: error line 171 In reply to
This sort of problem required searching through the script to find the error. Not fun, but there's no other way around it.

Start with line 171 and go up. The line number is not necessarily (and usually not, in my experience) the line where the problem is.

One way to look for missing brackets is to make sure you indent things within brackets:

Code:
if (condition) {
action;
}
else {
action;
}

It does make them easier to find.


------------------
JPD