Title: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting &#039;)&#039;
Last modified: August 20, 2016

---

# Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')'

 *  [bellapietra1501](https://wordpress.org/support/users/bellapietra1501/)
 * (@bellapietra1501)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_constant_encapsed_string-expecting-1/)
 * hi,
 * i just created my website [http://www.peteryongra.com](http://www.peteryongra.com)
   and i somehow messed up the function.php
 * i cannot log in to [http://www.peteryongra.com/wp-admin](http://www.peteryongra.com/wp-admin)
   because of this error:
    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING,
   expecting ‘)’ in /home/namu/public_html/wp-content/themes/imbalance2/functions.
   php on line 169
 * i am expecting that the error is due to a missing ‘)’ but i do not know where
   to place it or how to log in as i am unable to due so.
 * i would sincerely appreciate any help and thank anyone for reading my post with
   any assistance provided.
 * kind regards,
    peter

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

 *  [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * (@vtxyzzy)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_constant_encapsed_string-expecting-1/#post-3387898)
 * If you can put the entire functions.php file into a [pastebin](http://pastebin.com),
   someone may be able to help.
 * Note that you must use ftp or a File Manager from your hosting service to access
   and correct functions.php.
 *  [Runtheball](https://wordpress.org/support/users/eisenbart/)
 * (@eisenbart)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_constant_encapsed_string-expecting-1/#post-3387944)
 * Kind of a late reply, but I was Googling this exact error and found the solution.
   Maybe this will help someone else….
 * The solution was to check the line **before** what is mentioned in the error 
   message (in your case, line 168) for errors. In my case, though I had the exact
   same error message referring to a missing “)”, all I needed was to add a comma
   at the end of the previous line. No “)” needed at all.
 * Weird, but true.

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

The topic ‘Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting')'’
is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [Runtheball](https://wordpress.org/support/users/eisenbart/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_constant_encapsed_string-expecting-1/#post-3387944)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
