Title: Parse error: syntax error, unexpected T_CLASS in
Last modified: August 20, 2016

---

# Parse error: syntax error, unexpected T_CLASS in

 *  [tombuckers](https://wordpress.org/support/users/tombuckers/)
 * (@tombuckers)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_class-in/)
 * I get this message and my site is gone:
    Parse error: syntax error, unexpected
   T_CLASS in /home/tom/public_html/homemade-solar-panel.org/wp-content/themes/my-
   theme-with-grass-and-dew/functions.php on line 75
 * I am worried as I have NO IDEA what to do and I just got some links to this site,
   what can I do to get my site back ASAP?

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

 *  Thread Starter [tombuckers](https://wordpress.org/support/users/tombuckers/)
 * (@tombuckers)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_class-in/#post-2260720)
 * I forgot to say I cant even log in, what should I do?
 *  [Lisa Sabin-Wilson](https://wordpress.org/support/users/lisasabinwilson/)
 * (@lisasabinwilson)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_class-in/#post-2260850)
 * Sounds like a problem with the code found in the functions.php file of the theme
   you are currently using.
 * Fastest and easiest way to deal with it is to connect to your site via FTP and
   rename your active theme folder:
 * /wp-content/themes/my-theme-with-grass-and-dew
 * Rename it to:
    /wp-content/themes/**ERROR**-my-theme-with-grass-and-dew
 * This will cause WordPress to de-activate your active theme and the error message
   will be gone. You should then be able to login to your Dashboard by going to 
   [http://yourdomain.com/wp-login.php](http://yourdomain.com/wp-login.php)
 * Then activate a different theme (like the Twenty Ten or the Twenty Eleven theme)–
   which will give you a chance to resolve the issues in the functions.php file 
   of the theme you were using.
 * Once you’ve resolved the issues in your old theme, you can rename the theme folder
   back to what it was originally and try re-activating it again.
 * Hope that helps.

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

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

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [Lisa Sabin-Wilson](https://wordpress.org/support/users/lisasabinwilson/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_class-in/#post-2260850)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
