Title: Parse error: syntax error, unexpected &#8230;themes/infoway/comments.php
Last modified: August 20, 2016

---

# Parse error: syntax error, unexpected …themes/infoway/comments.php

 *  [heathcates](https://wordpress.org/support/users/heathcates/)
 * (@heathcates)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-themesinfowaycommentsphp/)
 * After the content on my pages and post since making the change to 1.1.1 theme.
   I’ve tried the old and new version of comments.php and I get the same thing with
   both. If I go back to v.1 of the complete theme it goes away but the other issue
   comes back.
 * Parse error: syntax error, unexpected ‘{‘ in X/wp-content/themes/infoway/comments.
   php on line 1
 * BTW, love the theme so far.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [heathcates](https://wordpress.org/support/users/heathcates/)
 * (@heathcates)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-themesinfowaycommentsphp/#post-3485274)
 * FYI, I removed the bit in comments.php with the error (The first bit before <!–
   You can start editing here. –> and I am working fine for now. I don’t usually
   have a need to password protect a post so it may be fixed for me but I wanted
   to point it out regardless.
 *  [nyunyu](https://wordpress.org/support/users/nyunyu/)
 * (@nyunyu)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-themesinfowaycommentsphp/#post-3485546)
 * Other than have to resort removing this part:
 * [code]
    <?phpif (post_password_required()) { ?> <p class="nocomments"><?php _e('
   This post is password protected. Enter the password to view comments.', 'infoway');?
   ></p> <?php return; } ?> [/code]
 * Is there any alternative way? I have the same problem.
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-themesinfowaycommentsphp/#post-3485547)
 * [@nyunyu](https://wordpress.org/support/users/nyunyu/), you can discuss that 
   [in your own thread](http://wordpress.org/support/forum/themes-and-templates#postform).
 *  [nyunyu](https://wordpress.org/support/users/nyunyu/)
 * (@nyunyu)
 * [13 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-themesinfowaycommentsphp/#post-3485575)
 * [@andrew](https://wordpress.org/support/users/andrew/), I have the same issues
   as TS, have yet to see any solution apart from the obvious.
 *  [Andrei Olsen](https://wordpress.org/support/users/nebulus/)
 * (@nebulus)
 * [13 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-themesinfowaycommentsphp/#post-3485576)
 * Replace the code before `<!-- You can start editing here. -->` with
 *     ```
       <?php if ( post_password_required() ) : ?>
           <p class="nocomments"><?php _e( 'This post is password protected. Enter the password to view comments.', 'infoway' ); ?></p>
       <?php endif; ?>
       ```
   

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Parse error: syntax error, unexpected …themes/infoway/comments.php’ is
closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/infoway/1.2.6/screenshot.png)
 * InfoWay
 * [Support Threads](https://wordpress.org/support/theme/infoway/)
 * [Active Topics](https://wordpress.org/support/theme/infoway/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/infoway/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/infoway/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [Andrei Olsen](https://wordpress.org/support/users/nebulus/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-themesinfowaycommentsphp/#post-3485576)
 * Status: not resolved