Title: Parse error: syntax error
Last modified: August 19, 2016

---

# Parse error: syntax error

 *  [nlhink](https://wordpress.org/support/users/nlhink/)
 * (@nlhink)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-22/)
 * Can anyone PLEASE help me…..I was in the process of trying to get rid of the 
   post date in the twenty ten theme in the theme functions.php file and I must 
   have made a mistake and it gave me this error:
 * Parse error: syntax error, unexpected T_ENDIF in /home/nlhink/public_html/wp-
   content/themes/twentyten/functions.php on line 484
 * I can’t get to the admin or dashboard page and that is all the comes up when 
   I go to my page.
 * If anyone can help me I would really appreciate it!

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

 *  [Eric Mann](https://wordpress.org/support/users/ericmann/)
 * (@ericmann)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-22/#post-1801981)
 * Firstly, you should never, _never_, **never** make edits to a live theme in a
   production environment for this very reason. Typos and errors can break your 
   site!
 * To fix it, you’ll need to log in to your site via FTP. Then rename the theme 
   folder (`/wp-content/themes/twentyten/`) to something else (maybe “twentyten-
   2”). Then try to visit your site again.
 * Renaming the folder will automatically disable the theme and throw a very minimal
   default theme on your site. But this means it won’t be broken any more.
 * Now, either un-do whatever changes you made and rename the folder again, or download
   a fresh copy of Twenty Ten and place it on your site.
 *  Thread Starter [nlhink](https://wordpress.org/support/users/nlhink/)
 * (@nlhink)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-22/#post-1801985)
 * Thank you so much for your reply. I know this is a dumb question, but how do 
   I log in to my site via FTP?
 * I promise I will not monkey around with this again!
 *  [rachaely](https://wordpress.org/support/users/rachaely/)
 * (@rachaely)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-22/#post-1801991)
 * There are many ways you can log into your site via FTP. You should have access
   already if you’re hosting your own site.
 * Do you know how you connect to your server?
 * [http://filezilla-project.org/](http://filezilla-project.org/) is a useful FTP
   client you can use to connect to your server.
 * Good luck!
 *  Thread Starter [nlhink](https://wordpress.org/support/users/nlhink/)
 * (@nlhink)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-22/#post-1802006)
 * Thanks everyone. I contacted my hosting company and they changed the theme for
   me and that seemed to work. Thanks!!!
 *  [rachaely](https://wordpress.org/support/users/rachaely/)
 * (@rachaely)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-22/#post-1802010)
 * Glad you got it sorted! 🙂
 *  [jennie_ledger](https://wordpress.org/support/users/jennie_ledger/)
 * (@jennie_ledger)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-22/#post-1802470)
 * Thanks for these responses [@rachaely](https://wordpress.org/support/users/rachaely/)
   and [@eric](https://wordpress.org/support/users/eric/) Mann: you’ve well and 
   truly saved my arse as well!

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

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 4 participants
 * Last reply from: [jennie_ledger](https://wordpress.org/support/users/jennie_ledger/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-22/#post-1802470)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
