Twenty Eleven | Parse Error: Unexpected T_ENDIF (3 posts)

  1. Seeeee
    Posted 3 years ago #

    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

  2. Tara
    Volunteer Moderator
    Posted 3 years ago #

    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.

  3. Seeeee
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic