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

---

# Parse error: syntax error, unexpected '}'

 *  [harmonyw](https://wordpress.org/support/users/harmonyw/)
 * (@harmonyw)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-45/)
 * I deleted some of the code under function.php but saved the original. After deleting
   the code, I got this message:
 * Parse error: syntax error, unexpected ‘}’ in /home/harmonyw/public_html/index/
   wp-content/themes/womack-819848552/functions.php on line 40
 * The message still appeared even after I put the original code back in. Please
   help me fix!
 * Here’s the code:
    Large code excerpts: [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.]

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

 *  [Christine Rondeau](https://wordpress.org/support/users/crondeau/)
 * (@crondeau)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-45/#post-2718482)
 * Change this line:
 * ‘;
 * to :
 * ‘;
 *  [lellobot](https://wordpress.org/support/users/lellobot/)
 * (@lellobot)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-45/#post-2718919)
 * For me, I got this error because I had only carriage returns (i.e. /r) in my 
   file, instead of having carriage returns and new lines (i.e. /r/n).
 * Hopefully this helps someone who comes across this post in the future.

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

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

## Tags

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

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

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
