Title: unexpected T_STRING error
Last modified: August 24, 2016

---

# unexpected T_STRING error

 *  [donseckler](https://wordpress.org/support/users/donseckler/)
 * (@donseckler)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/unexpected-t_string-error-2/)
 * I just downloaded the latest version of WP and changed the config file, uploaded
   it and am getting this error when I try to access the install:
 * Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION
   or T_VAR or ‘}’ in /homepages/30/d327720455/htdocs/wordpress-BRC-new/wp-includes/
   locale.php on line 21
 * Any idea what would be causing this?

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

 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/unexpected-t_string-error-2/#post-6114654)
 * What version of PHP is your site using?
 *  Thread Starter [donseckler](https://wordpress.org/support/users/donseckler/)
 * (@donseckler)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/unexpected-t_string-error-2/#post-6114656)
 * 5.5
 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/unexpected-t_string-error-2/#post-6114665)
 * While PHP 5.5 is available and probably correct, just as a precautionary measure,
   check your hosts control panel and make sure you’re actually processing PHP files
   using a 5.x version and not defaulting to a 4.x version of PHP.
 *  Thread Starter [donseckler](https://wordpress.org/support/users/donseckler/)
 * (@donseckler)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/unexpected-t_string-error-2/#post-6114705)
 * I did check. It’s 5.5.
 *  Thread Starter [donseckler](https://wordpress.org/support/users/donseckler/)
 * (@donseckler)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/unexpected-t_string-error-2/#post-6114708)
 * My bad. It was not set to 5.5 for the subdomain I am using. Thanks for your help.
   Much appreciated.
 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/unexpected-t_string-error-2/#post-6114711)
 * You’re welcome!
 *  [leewal](https://wordpress.org/support/users/leewal/)
 * (@leewal)
 * [11 years ago](https://wordpress.org/support/topic/unexpected-t_string-error-2/#post-6114934)
 * Hey Clayton James.. Thanks also from me!! I thought I checked everything trying
   to solve the issue.. I googled the error and came to this post.
 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [11 years ago](https://wordpress.org/support/topic/unexpected-t_string-error-2/#post-6114939)
 * [@leewal](https://wordpress.org/support/users/leewal/)
 * Glad it helped!

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

The topic ‘unexpected T_STRING error’ is closed to new replies.

## Tags

 * [Install](https://wordpress.org/support/topic-tag/install/)
 * [locale](https://wordpress.org/support/topic-tag/locale/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 3 participants
 * Last reply from: [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/unexpected-t_string-error-2/#post-6114939)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
