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

---

# PHP Parse error: syntax error, unexpected T_ENDIF

 *  [milestonemedia](https://wordpress.org/support/users/milestonemedia/)
 * (@milestonemedia)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-t_endif/)
 * Hi guys can anyone help me out I installed a new template and I keep getting 
   the following error
 * PHP Parse error: syntax error, unexpected T_ENDIF in /var/www/vhosts/mysite.com/
   httpdocs/wp-content/themes/Gamenow/header.php on line 130
 * Can anyone tell me how to fix this.
 * Here is the header.php code.
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [milestonemedia](https://wordpress.org/support/users/milestonemedia/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-t_endif/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
