WordPress.org

Ready to get started?Download WordPress

Forums

Parse error on comments.php: unexpected T_ENDFOREACH (6 posts)

  1. elyonline
    Member
    Posted 9 years ago #

    Hi there,

    I am getting the error below on my comments form:

    Parse error: parse error, unexpected T_ENDFOREACH in /home/public_html/news/wp-content/themes/elyonline/comments.php on line 28

    I can't see any errors but I am sure someone will point out my error :)

    Here is a link to a text file of my comments page:
    http://www.elyonline.co.uk/comments.txt

    Many thanks

  2. moshu
    Member
    Posted 9 years ago #

    I've checked several comments.php files in different themes, and all of them have this line:
    <?php foreach ($comments as $comment) : ?>
    Yours has it like this:
    <?php foreach ($comments as $comment) { ?>
    I'm not a coder, but I'd give it a try...

  3. ColdForged
    Member
    Posted 9 years ago #

    Moshu called it.

  4. moshu
    Member
    Posted 9 years ago #

    :) actually I have no idea what the difference is... I just put my +2.5 glasses on, LOL

  5. elyonline
    Member
    Posted 9 years ago #

    Ha good stuff :)

    Very good eyesight indeed :)

    Thanks a lot

  6. elyonline
    Member
    Posted 9 years ago #

    ** fixed** thanks

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags