...

View Full Version : Parse error: syntax error, unexpected '}' on line 796



ivterz
07-28-2012, 11:11 PM
Hi, I'm trying to figure out why I'm getting the error:

Parse error: syntax error, unexpected '}' on line 796

But I can't figure it out. Any ideas?

Here is my code att.

DrDOS
07-29-2012, 12:22 AM
First, get a text highlighting editor, if you plan to do any coding at all. And get an editor which displays the line #. Then you will always be able to fix a problem like this yourself. We could try to help you but we might tell you to remove the wrong } so it might be worse than it is.

You can download Scite editor, it has versions for almost any operating system and will do all those things.

Inigoesdr
07-29-2012, 07:20 PM
Are you sure that's the correct file? There isn't a syntax error showing up in my IDE.

tempz
07-29-2012, 08:37 PM
Try the following.

AndrewGSW
07-29-2012, 09:18 PM
This code, towards the very end,


function bp_dtheme_remove_nojs_body_class()
}
?>
has a closing, but no opening, bracket.

Line 475 (in my editor):


<li <?php comment_class() ?> id="comment-<?php comment_ID() ?>">
It's malformed if the li is not within a list, and probably requires


<?php echo comment_ID(); ?>

Is comment_ID a function or an attribute..



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum