Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Jul 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

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

    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.
    Attached Files Attached Files

  • #2
    Senior Coder
    Join Date
    Sep 2010
    Posts
    1,916
    Thanks
    15
    Thanked 227 Times in 227 Posts
    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.

  • #3
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,642
    Thanks
    2
    Thanked 405 Times in 397 Posts
    Are you sure that's the correct file? There isn't a syntax error showing up in my IDE.

  • #4
    Regular Coder
    Join Date
    Jul 2012
    Location
    London
    Posts
    473
    Thanks
    4
    Thanked 86 Times in 86 Posts
    Try the following.
    Attached Files Attached Files

  • #5
    Senior Coder
    Join Date
    Apr 2011
    Location
    London, England
    Posts
    2,120
    Thanks
    15
    Thanked 354 Times in 353 Posts
    This code, towards the very end,

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

    Line 475 (in my editor):

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

    PHP Code:
    <?php echo comment_ID(); ?>
    Is comment_ID a function or an attribute..
    "I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
    Validate your HTML and CSS


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •