Title: syntax error, unexpected $end, expecting T_VARIABLE
Last modified: August 18, 2016

---

# syntax error, unexpected $end, expecting T_VARIABLE

 *  Resolved [dhavaljani](https://wordpress.org/support/users/dhavaljani/)
 * (@dhavaljani)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-end-expecting-t_variable/)
 * Hi,
    After setting up database connection and uploading the site, i am getting
   the following error
 * Parse error: syntax error, unexpected $end, expecting T_VARIABLE or ‘$’ in /home/
   media/public_html/wordpress/wp-includes/functions-post.php on line 686
 * If you need I can post the file somewhere… i checked the file doesnt look like
   there is “$” extra or missing or nething like that… still not a php programmer…
   could be wrong… please help this is my first try on this

Viewing 1 replies (of 1 total)

 *  Thread Starter [dhavaljani](https://wordpress.org/support/users/dhavaljani/)
 * (@dhavaljani)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-end-expecting-t_variable/#post-438747)
 * Got it thanks… just brought “{” in next line… n it works… thanks

Viewing 1 replies (of 1 total)

The topic ‘syntax error, unexpected $end, expecting T_VARIABLE’ is closed to new
replies.

## Tags

 * [end](https://wordpress.org/support/topic-tag/end/)
 * [expecting](https://wordpress.org/support/topic-tag/expecting/)
 * [Unexpected](https://wordpress.org/support/topic-tag/unexpected/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 1 reply
 * 1 participant
 * Last reply from: [dhavaljani](https://wordpress.org/support/users/dhavaljani/)
 * Last activity: [19 years, 9 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-end-expecting-t_variable/#post-438747)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
