Gossamer Forum
Home : Products : DBMan : Installation :

CGI ERROR

Quote Reply
CGI ERROR
After trying to customize with file upload getting error:
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:


Unmatched right bracket at D:\Inetpub\wwwroot\st\cgi-bin\db\db.pl line 1276, at end of line
syntax error at D:\Inetpub\wwwroot\st\cgi-bin\db\db.pl line 1276, near
Execution of D:\Inetpub\wwwroot\st\cgi-bin\db\db.pl aborted due to compilation errors.

In db.pl it looks:

}
else {
print "Please enable debugging to view.";
}
exit -1;
} <----- line 1276. What's wrong with that?

Any ideas?

P.S.
After installing demo everything works fine
Server running on WINNT4, IIS


Quote Reply
Re: CGI ERROR In reply to
Bracket have to be matched:

} # closing bracket
else { # opening bracket
print "Please enable debugging to view.";
}# closing bracket
exit -1;
} # extra closing bracket ???

Keep in mind though that brackets can be nested, meaning your extra closing bracket (in blue) may have a corresponding opening bracket somewhere above... But you obviously have a pair of unmatched brackets - somewhere.

The format is usually something like
subroutine {
---------------

a bunch of code and brackets {
}


}

Start matching brackets and soon you'll find your problem.

Good Luck! (really!)