WordPress.org

Ready to get started?Download WordPress

Forums

Parse error: syntax error, unexpected T_IF (9 posts)

  1. himstudio
    Member
    Posted 2 years ago #

    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.

  2. himstudio
    Member
    Posted 2 years ago #

    here is the code of my functions.php : http://pastebin.com/tcBd9viA

  3. ClaytonJames
    Member
    Posted 2 years ago #

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

  4. Pioneer Valley Web Design
    Member
    Posted 2 years ago #

    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.

  5. ClaytonJames
    Member
    Posted 2 years ago #

    @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. :-)

  6. himstudio
    Member
    Posted 2 years ago #

    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

  7. basilgrows
    Member
    Posted 2 years ago #

    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!

  8. himstudio
    Member
    Posted 2 years ago #

    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 !

  9. Arie Putranto
    Member
    Posted 2 years ago #

    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';

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.