WordPress.org

Support

Support » How-To and Troubleshooting » Parse error: syntax error, unexpected T_IF

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 please use pastebin.com instead. ]

    can anyone help me please ?
    Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • here is the code of my functions.php : http://pastebin.com/tcBd9viA

    Because Agility is a commercial theme, you will need to contact support at themeforest for documentation on theme installation and support.

    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.

    @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. 🙂

    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

    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!

    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 !

    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.
Skip to toolbar