Title: Syntax Error Message &#8211; unexpected $end&#8230;
Last modified: August 21, 2016

---

# Syntax Error Message – unexpected $end…

 *  [RobHartshorn](https://wordpress.org/support/users/robhartshorn/)
 * (@robhartshorn)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-message-unexpected-end/)
 * Hi
 * My site was working fine and now I am getting the following error when I try 
   to do anything! Cannot login to admin console and if I try to access site I just
   get the same error.
 * Parse error: syntax error, unexpected $end in /home/content/42/11575542/html/
   wp-content/themes/customizr/functions.php on line 198
 * If I reinstall WP will I loose all my content? What if I just reinstall the theme?
 * Using Customizr theme on WP 3.7.1 (it was auto upgraded yesterday! but was working
   fine this morning.
 * Any suggestions much appreciated. Fairly new to WP!
 * Thanks
 * Rob

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

 *  [Borko](https://wordpress.org/support/users/media-x/)
 * (@media-x)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-message-unexpected-end/#post-4274799)
 * You should first rename your theme folder (via FTP) in order to regain access
   to your site.
 *  Thread Starter [RobHartshorn](https://wordpress.org/support/users/robhartshorn/)
 * (@robhartshorn)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-message-unexpected-end/#post-4274801)
 * Not sure I understand what you mean. What do I do once I’ve renamed it? Do I 
   reinstall just the theme? Do I need to save any files to save my content and 
   then reinstall these files? I use a backup plugin (to dropbox) but can’t remember
   the exact name (and can’t access this info!) Would I be better to try and reinstall
   somehow from a backup?
 * Thanks
 * Rob
 *  [Dave Naylor](https://wordpress.org/support/users/wpranger/)
 * (@wpranger)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-message-unexpected-end/#post-4274807)
 * Media X means you should FTP to your site to rename the folder. If you don’t 
   know what that is, [here’s some help](http://codex.wordpress.org/FTP_Clients).
 *  [Borko](https://wordpress.org/support/users/media-x/)
 * (@media-x)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-message-unexpected-end/#post-4274812)
 * When you rename you theme folder, it will switch to the default theme and you
   should be able to access your site. Afterwards you should check with your theme
   author(s) if the theme works with the latest version of WP. Did you add any code
   to your theme’s functions.php?
 *  Thread Starter [RobHartshorn](https://wordpress.org/support/users/robhartshorn/)
 * (@robhartshorn)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-message-unexpected-end/#post-4274815)
 * Ni Media x
    Thanks for help. I was trying to change the function.php with some
   basic code (as per WP support) to remove the web field that is displayed in the
   comments on a post (it didn’t work so I simply removed it again and updated the
   function.php file to go back to the original code). Have also tried to copy the
   code from the original function.php file (which is exactly the same) but I still
   get the same error. Haven’t altered any other files so not sure why this wouldn’t
   be OK?
 * Cheers
    Rob

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

The topic ‘Syntax Error Message – unexpected $end…’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [RobHartshorn](https://wordpress.org/support/users/robhartshorn/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-message-unexpected-end/#post-4274815)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
