Title: Parse error: syntax error, unexpected &#039;endif&#039; (T_ENDIF)
Last modified: August 24, 2016

---

# Parse error: syntax error, unexpected 'endif' (T_ENDIF)

 *  Resolved [steenh](https://wordpress.org/support/users/steenh/)
 * (@steenh)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-endif-t_endif/)
 * I now get the message on my page
 * Parse error: syntax error, unexpected ‘endif’ (T_ENDIF) in /customers/3/9/f/ms2s.
   dk/httpd.www/wp-content/themes/hope/sidebar.php on line 20
 * not quite sure how to fix

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

 *  [Patrick Garman](https://wordpress.org/support/users/patrickgarman/)
 * (@patrickgarman)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-endif-t_endif/#post-6062912)
 * This sounds like an issue with your theme, to confirm this you can switch to 
   a different theme such as Twenty Fifteen. The issue is that in your sidebar there
   is an endif; that should likely be removed or moved but without reviewing the
   code I couldn’t tell you for sure what the issue is.
 *  Thread Starter [steenh](https://wordpress.org/support/users/steenh/)
 * (@steenh)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-endif-t_endif/#post-6062914)
 * Hi
 * Cheers that worked – not sure how the endif got there with the upgrade but it
   is now removed and site works without error
 * Thanks
    Steen H

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

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [steenh](https://wordpress.org/support/users/steenh/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-endif-t_endif/#post-6062914)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
