Support » Themes and Templates » Twenty Eleven | Parse Error: Unexpected T_ENDIF

  • Getting this Error on My Blog with the Twenty Eleven theme

    Parse error: syntax error, unexpected T_ENDIF in /home/dogarthr/public_html/blog/wp-content/themes/twentyeleven/functions.php on line 219

    I got this after messing with the functions.php file in the theme editor

    I’ve already tried replacing the functions.php file and the entire theme “twentyeleven” folder via FTP, still no luck.

    Any Help would be Great, thanks!

    – Steven

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator t-p

    (@t-p)

    A syntax error means that you have made a mistake while creating your PHP structure. You could, for example, be;

    ■ Missing a ; at the end of an individual line.
    ■ Using curly quotation marks.
    ■ Missing a curly bracket.

    When this error appears it will tell you which file the error appears in (functions.php) and approximately which line (on line 219, it may not always be the exact line so be sure to check just before and just after) in the code.

    Thanks for the reply; however, I cannot login to my wordpress site due to the error. Also, if fixing the error would have helped, than uploading the fresh functions.php file would have fixed the error. Sadly, it did not. I’m at a loss here.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Twenty Eleven | Parse Error: Unexpected T_ENDIF’ is closed to new replies.