Title: Getting syntax error
Last modified: August 22, 2016

---

# Getting syntax error

 *  Resolved [mwelch](https://wordpress.org/support/users/mwelch/)
 * (@mwelch)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/getting-syntax-error/)
 * Hello,
 * I am using the Twenty Twelve theme. I recently tried to add a code to my functions.
   php file and got this error message:
 * Parse error: syntax error, unexpected end of file in …/public_html/mcdonaldsmarket/
   wp-content/themes/twentytwelve/functions.php on line 516
 * Not sure what happened. Here’s what I tried to do to fix it thus far:
    1. Copy
   the original code back from a text document 2. Copy the code for theme Twenty
   Twelve from a different site
 * Neither worked. Can someone help me here? 🙁

Viewing 1 replies (of 1 total)

 *  Thread Starter [mwelch](https://wordpress.org/support/users/mwelch/)
 * (@mwelch)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/getting-syntax-error/#post-5561674)
 * Figured it out. I downloaded a fresh version of the theme and uploaded the functions.
   php file to my file manager to replace the old one … in case anyone wanted to
   know. 😉

Viewing 1 replies (of 1 total)

The topic ‘Getting syntax error’ is closed to new replies.

## Tags

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

 * 1 reply
 * 1 participant
 * Last reply from: [mwelch](https://wordpress.org/support/users/mwelch/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/getting-syntax-error/#post-5561674)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
