View Full Version : Parse error: syntax error, unexpected '}' on line 796
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.
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.
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.
07-29-2012, 08:37 PM
Try the following.
07-29-2012, 09:18 PM
This code, towards the very end,
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..
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.