WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Blah!!! the unexpected $end error is driving me crazy (3 posts)

  1. cscott5288
    Member
    Posted 3 years ago #

    So I added a few if statements to my page.php and ran into a parse error/syntax error:

    "Parse error: syntax error, unexpected $end in /file/location/page.php on line 61"

    I can't figure out for the death of me what it might be. I've examined and re-examined the code ... the syntax is all right. What could it possibly be? What is $end? Please help! I've been working on this problem for a few days now.

    Here is the code:
    http://pastebin.com/prLAFDh3

  2. DigitalSquid
    Member
    Posted 3 years ago #

    The else: statement that starts on line 54 isn't closed off.

    You need to add an endif; statement at about line 59.

  3. cscott5288
    Member
    Posted 3 years ago #

    Thanks so much dude!!!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.