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

---

# Parse error: syntax error, unexpected T_FUNCTION

 *  [blaised](https://wordpress.org/support/users/blaised/)
 * (@blaised)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-1/)
 * I downloaded the Chameleon Theme from Elegant Themes. I am using HostGator to
   host my domain. I was almost finished with my site, I was trying to edit the 
   function.php file through the WordPress Admin site and when I went to click update
   I got the following message “
 * “Parse error: syntax error, unexpected T_FUNCTION in /home/blaised/public_html/
   wp-content/themes/Chameleon/functions.php on line 284”
 * Now I can’t access my site nor the wp admin site. The above error message continues
   to come up. I really don’t want to have to start the whole thing from scratch
   as I did a lot of editing. I am new to WordPress and not really savy with building
   sites. If someone could help me I would greatly appreciate it.

Viewing 1 replies (of 1 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-1/#post-2554807)
 * Try switching to the Twenty Eleven theme by renaming your current theme’s folder
   in wp-content/themes and adding “-old” to the end of the folder name using [FTP](http://codex.wordpress.org/FTP_Clients)
   or whatever file management application your host provides.

Viewing 1 replies (of 1 total)

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

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-1/#post-2554807)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
