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

---

# Parse error: syntax error, unexpected T_IF

 *  [himstudio](https://wordpress.org/support/users/himstudio/)
 * (@himstudio)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_if/)
 * hi,
    i’m trying to install a new wp theme, but i get this error after the install:
   Parse error: syntax error, unexpected T_IF in /var/www/vhosts/himstudio.com/httpdocs/
   wp-content/themes/agility/functions.php on line 15
 * you can see it in here : himstudio.com
    here is the code of my functions.php
 * _[ **1,041 lines of code moderated**. That’s just way, way, **WAY** too many 
   lines. [For that many lines of code](http://codex.wordpress.org/Forum_Welcome#Posting_Code)
   please use [pastebin.com](http://pastebin.com/) instead. ]_
 * can anyone help me please ?
    Thanks.

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

 *  Thread Starter [himstudio](https://wordpress.org/support/users/himstudio/)
 * (@himstudio)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_if/#post-2912057)
 * here is the code of my functions.php : [http://pastebin.com/tcBd9viA](http://pastebin.com/tcBd9viA)
 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_if/#post-2912059)
 * Because Agility is a commercial theme, you will need to[ contact support at themeforest ](http://themeforest.net/item/agility-responsive-html5-wordpress-theme/2336028)
   for documentation on theme installation and support.
 *  [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * (@swansonphotos)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_if/#post-2912060)
 * Using an FTP client such as Filezilla, or your host provided file manager, rename
   the functions.php file to old-functions.php, upload an unedited copy (unless 
   this is a child theme) and login, then recreate file properly.
 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_if/#post-2912066)
 * [@seacoast](https://wordpress.org/support/users/seacoast/) Web Design
 * That’s good advice when there’s editing involved, but it may not apply in this
   case:
 * > i’m trying to install a new wp theme, but** i get this error after the install**:
 * We’ll have to wait and see, I guess. 🙂
 *  Thread Starter [himstudio](https://wordpress.org/support/users/himstudio/)
 * (@himstudio)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_if/#post-2912085)
 * > That’s good advice when there’s editing involved, but it may not apply in this
   > case
 * indeed, it’s a new installation i did not modify anything yet on the fuctions.
   php
 *  [basilgrows](https://wordpress.org/support/users/basilgrows/)
 * (@basilgrows)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_if/#post-2912113)
 * I’m having the same issue with the Agility theme–it took down the whole site,
   even the /wp-admin area so I can’t get in to deactivate it. I’m waiting on FTP
   and other backend credentials for the domain, so please let me know if you get
   a fix worked out. Thanks!
 *  Thread Starter [himstudio](https://wordpress.org/support/users/himstudio/)
 * (@himstudio)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_if/#post-2912121)
 * you will nedd ftp access to your website to rename the file functions.php. otherwise
   you won’t have access to the site or the admin page.
    until now i haven’t found
   a solution for this problem..but i simply got the latest version of the template:**
   agility_v1.1.3.1.zip**. it works fine !
 *  [Arie Putranto](https://wordpress.org/support/users/arieputranto/)
 * (@arieputranto)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_if/#post-2912123)
 * You simply forget to put ‘;’ at the end of the **line 14** of your file so it
   should be
 * `include'modules/custom_post_types/post.php';`

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

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 5 participants
 * Last reply from: [Arie Putranto](https://wordpress.org/support/users/arieputranto/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_if/#post-2912123)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
