Title: Parse error: syntax error, unexpected T_ENDIF
Last modified: August 19, 2016

---

# Parse error: syntax error, unexpected T_ENDIF

 *  [tattam](https://wordpress.org/support/users/tattam/)
 * (@tattam)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_endif/)
 * Ive come up with this error. can someone please help?
 * Parse error: syntax error, unexpected T_ENDIF in /home/sites/footballkitsonline.
   com/public_html/wp-content/themes/green/sidebar.php on line 9
 * Thanks

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

 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_endif/#post-853078)
 * not really, you edited the sidebar.php, and broke it– so put back an unedited
   one.
 *  [brittca](https://wordpress.org/support/users/brittca/)
 * (@brittca)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_endif/#post-853325)
 * I really need some help here…. I’m getting this error but I didn’t edit anything
   on this page… all I did was move the blog to another domain… and everything works
   fine, including the pages… but the blog posts will not show up and get this error–
   Parse error: syntax error, unexpected T_ENDIF in /home/britt9/public_html/latenightleos/
   wp-content/themes/convergence/single.php on line 97
 * can anyone help??
 *  [iridiax](https://wordpress.org/support/users/iridiax/)
 * (@iridiax)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_endif/#post-853326)
 * brittca: Redownload your theme from wherever you got it and replace your bad 
   single.php with the newly downloaded one. If your site is latenightleos.com, 
   you have misplaced Analytics code and garbage like **if; ?>** at the bottom of
   your source code. Delete _everything_ after `</html>`

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

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

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 4 participants
 * Last reply from: [iridiax](https://wordpress.org/support/users/iridiax/)
 * Last activity: [17 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_endif/#post-853326)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
