Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

Unmatched right bracket error

Quote Reply
Unmatched right bracket error
Hello. I was installing a few mods, and one of them seems to have caused an error in the nph-build.cgi file. In the error logs, I noticed:

Unmatched right bracket at nph-build.cgi line 725, at end of line
syntax error at nph-build.cgi line 725, near "}"
Execution of nph-build.cgi aborted due to compilation errors.

The line is:
print "\tLinks: " . (($#{$links{$cat}}+1) / ($#db_cols+1)) . "\n";

Before that line is:
print "\tSubcategories: " . ($#{$subcategories{$cat}} + 1) . "\n";

Quote Reply
Re: [joelmon] Unmatched right bracket error In reply to
Could you post the whole nph-build script as an attachment?

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [joelmon] Unmatched right bracket error In reply to
Those errors can fool you sometimes - the error might be a lot further up but perl won't spot it until it realises a bracket is missing - we'll need to see more of the code.

Or restore your original code and add the mod little by little.
Quote Reply
Re: [Paul] Unmatched right bracket error In reply to
What I have done, a bit tedious but effective, is print the code, then go through each sub that I changed, and match up opening and closing brackets using different color highlighters. No doubt there is an easier way...


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] Unmatched right bracket error In reply to
I have a Perl/PHP editor called PHPEd, which lets you press F2 to find the opening/closing brackets for something. Very nice when trying to find missing/extra brackets etc Smile If you post it here, I'm sure one of us will be able to find the problem ;)

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Unmatched right bracket error In reply to
EditPlus tabs your brackets automatically so you can just look to see which aren't aligned, then you know you are missing one :)

Last edited by:

Paul: Jan 1, 2003, 8:04 AM