Title: Parse Error: Unexpected &#8216;}&#8217;
Last modified: September 12, 2017

---

# Parse Error: Unexpected ‘}’

 *  Resolved [alittlemk2](https://wordpress.org/support/users/alittlemk2/)
 * (@alittlemk2)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/parse-error-unexpected-4/)
 * I copied and pasted a function into my function.php editor (bad idea). I was 
   attempting to follow a tutorial on customizing the Jetpack ‘Related Posts’ plugin,
   but received this error:
    Parse error: syntax error, unexpected ‘}’ … on line
   281
 * I deleted the function, but still received the error despite there being an equal
   number of { and }. I opened up the .zip of my downloaded blog theme and directly
   copied and pasted the original function.php file but am still receiving the error.
 * Any ideas?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fparse-error-unexpected-4%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [8 years, 9 months ago](https://wordpress.org/support/topic/parse-error-unexpected-4/#post-9489678)
 * Sounds like a bad tutorial.
 * > I opened up the .zip of my downloaded blog theme and directly copied and pasted
   > the original function.php file but am still receiving the error.
 * Did you do that through FTP? If not, how?
 *  Thread Starter [alittlemk2](https://wordpress.org/support/users/alittlemk2/)
 * (@alittlemk2)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/parse-error-unexpected-4/#post-9490799)
 * Sorry, I’m a little slow on the lingo, but my theme I purchased included all 
   the separate documents in a file. So I opened the function.php on TextEditor 
   and copied and pasted it into the function.php in Editor on WordPress.
 * Should I have done something different?
 *  Thread Starter [alittlemk2](https://wordpress.org/support/users/alittlemk2/)
 * (@alittlemk2)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/parse-error-unexpected-4/#post-9490907)
 * Hey, Andrew – thank you for your help! I researched FTP and managed to fix the
   site. Definitely won’t be trying to edit that any time soon…
    -  This reply was modified 8 years, 9 months ago by [alittlemk2](https://wordpress.org/support/users/alittlemk2/).

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

The topic ‘Parse Error: Unexpected ‘}’’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [alittlemk2](https://wordpress.org/support/users/alittlemk2/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/parse-error-unexpected-4/#post-9490907)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
