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

---

# Parse error: syntax error, unexpected '}'

 *  Resolved [P](https://wordpress.org/support/users/inkedkoi/)
 * (@inkedkoi)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-66/)
 * Today I wanted to change the custom post type names in my functions.php file,
   after I changed them very carefully, I updated my file and then came across this
   error:
 * Parse error: syntax error, unexpected ‘}’ in /home/sstwppqn/public_html/wp-content/
   themes/template_theme/functions.php on line 1
 * I went back into Text Wrangler and changed it back to my original copy and re-
   uploaded it. The message is still there. So, I took off the theme and the re 
   uploaded it, error is still showing.
 * I haven’t any clue on how to fix it so I can at least see my WP dashboard..
 * Can anyone please help!
 * Thank you

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

 *  [Riversatile](https://wordpress.org/support/users/riversatile/)
 * (@riversatile)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-66/#post-3238194)
 * Hi,
 * Can you paste the code from your function.php here ?
    If code is to important,
   use the pastebin ([http://pastebin.com/](http://pastebin.com/))
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-66/#post-3238195)
 * Where did you download this theme from?
 *  Thread Starter [P](https://wordpress.org/support/users/inkedkoi/)
 * (@inkedkoi)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-66/#post-3238198)
 * This my own theme I developed, everything was working (*edit) great up until 
   20 minutes ago.
 * Here’s the php:
 * Large code excerpt removed by moderator per [forum rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use [the pastebin](http://wordpress.pastebin.com/) for all large code 
   excerpts. It works better anyway. [http://pastebin.com/3nQitcYt](http://pastebin.com/3nQitcYt)
 *  [Riversatile](https://wordpress.org/support/users/riversatile/)
 * (@riversatile)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-66/#post-3238201)
 * If the theme comes from [http://wordpress.org/extend/plugins/](http://wordpress.org/extend/plugins/),
   it should be compliant. Otherwise not.
 *  Thread Starter [P](https://wordpress.org/support/users/inkedkoi/)
 * (@inkedkoi)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-66/#post-3238212)
 * @ riversatile : I don’t understand, my theme was working fine up I changed the
   names in the custom post field. It was compliant until then….
 *  [Riversatile](https://wordpress.org/support/users/riversatile/)
 * (@riversatile)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-66/#post-3238213)
 * Whaw ! This is a huge Functions.php file !
    Also, this theme not comes from [http://wordpress.org/extend/plugins/](http://wordpress.org/extend/plugins/).
 * I do not see any error regarding ‘{‘ or ‘}’…
 *  [Riversatile](https://wordpress.org/support/users/riversatile/)
 * (@riversatile)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-66/#post-3238217)
 * And if you move back to a default theme like **Twentyeleven** ? What’s going 
   on ?
 *  Thread Starter [P](https://wordpress.org/support/users/inkedkoi/)
 * (@inkedkoi)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-66/#post-3238219)
 * I took out my theme and activated the TwentyEleven theme, that theme works ok.
 *  Thread Starter [P](https://wordpress.org/support/users/inkedkoi/)
 * (@inkedkoi)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-66/#post-3238222)
 * I deleted the theme and compressed the files, then uploaded it through the Install
   Theme method. Its back to normal. Now I’ll have to figure out where the heck 
   the problem is in the functions.php code.
 * Thank you for your help. 🙂

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

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

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 3 participants
 * Last reply from: [P](https://wordpress.org/support/users/inkedkoi/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-66/#post-3238222)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
