Title: Parse error: syntax error, unexpected T_ENDWHILE
Last modified: August 20, 2016

---

# Parse error: syntax error, unexpected T_ENDWHILE

 *  [unruly333](https://wordpress.org/support/users/unruly333/)
 * (@unruly333)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_endwhile-8/)
 * Hi there,
 * I just messed up a page template… and am getting the below message when I open
   a page using the template:
 * Parse error: syntax error, unexpected T_ENDWHILE in /home/unruly/public_html/
   wp-content/themes/project9v2/single-other.php on line 237
 * Here’s an example of a page that’s producing the error [http://un-ruly.com/3-solutions-for-dry-winter-hair/](http://un-ruly.com/3-solutions-for-dry-winter-hair/)
 * I’ve pasted the code here: [http://pastebin.com/LeDDfudV](http://pastebin.com/LeDDfudV).
   Your help is much much much appreciated.

Viewing 1 replies (of 1 total)

 *  Thread Starter [unruly333](https://wordpress.org/support/users/unruly333/)
 * (@unruly333)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_endwhile-8/#post-3490618)
 * A friend just helped me fix this. I was missing an endif after lines 50 and 52.

Viewing 1 replies (of 1 total)

The topic ‘Parse error: syntax error, unexpected T_ENDWHILE’ is closed to new replies.

## Tags

 * [parse-error](https://wordpress.org/support/topic-tag/parse-error/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [unruly333](https://wordpress.org/support/users/unruly333/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_endwhile-8/#post-3490618)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
