Title: Parse error: syntax error, unexpected &#8216;class&#8217; (T_CLASS)
Last modified: April 26, 2020

---

# Parse error: syntax error, unexpected ‘class’ (T_CLASS)

 *  [nadarajan10](https://wordpress.org/support/users/nadarajan10/)
 * (@nadarajan10)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-class-t_class-2/)
 * Hi,
 * I ve gone thru the forum. Please update my pluggin to a newer version.
    i cant
   access my site.
 * Parse error: syntax error, unexpected ‘class’ (T_CLASS), expecting identifier(
   T_STRING) or variable (T_VARIABLE) or ‘{‘ or ‘$’ in /home2/aarezae/public_html/
   wp-content/plugins/woocommerce/includes/traits/trait-wc-item-totals.php on line
   44
 * Thank you
    Nada
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fparse-error-syntax-error-unexpected-class-t_class-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [6 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-class-t_class-2/#post-12733734)
 * Via FTP or your hosting control panel’s file manager app, delete the directory
   wp-content/plugins/woocommerce.
 * Login to your site and reinstall WooCommerce. You should not have to change any
   settings, as they should be preserved in the database.
 * If the error persists, then I recommend asking at [https://wordpress.org/support/plugin/woocommerce/#new-post](https://wordpress.org/support/plugin/woocommerce/#new-post)
   so the plugin’s developers and support community can help you with this.

Viewing 1 replies (of 1 total)

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

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-class-t_class-2/#post-12733734)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
