WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] I can't access my site because of Parse Error (11 posts)

  1. lahull20
    Member
    Posted 10 months ago #

    This is the error message:
    Parse error: syntax error, unexpected T_IF, expecting ')' in /home/lahull20/public_html/wp-content/themes/frantic/functions.php on line 44

    I can't access my site because of the parse error, what do I do?

  2. Websiteguy
    Member
    Posted 10 months ago #

    Can you access cpanel?

  3. WPyogi
    Volunteer Moderator
    Posted 10 months ago #

    Download a new copy of your theme to your local computer and then replace that file via FTP (or other file manager access your host uses).

  4. lahull20
    Member
    Posted 10 months ago #

    Yes, I can access cpanel

  5. WPyogi
    Volunteer Moderator
    Posted 10 months ago #

    Then you need to replace that file with a new copy from a new download of your theme to your local computer.

    Note that any changes you've made to that file will be lost - so if you care about that, save a copy of it first via Cpanel.

  6. lahull20
    Member
    Posted 10 months ago #

    I actually can't access cpanel, what other option do I have?

  7. WPyogi
    Volunteer Moderator
    Posted 10 months ago #

    Talk to your hosting company about why that is.

  8. lahull20
    Member
    Posted 10 months ago #

    I was able to access cpanel. This is my line 44

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]

    if( function_exists( 'add_theme_support' ) ) {
    add_theme_support( 'post-thumbnails' );
    }
    		)
    	);
    }
    endif;

    Can someone help me with fixing the issue on line 44, which starts at if( function_exists..?

    Parse error: syntax error, unexpected T_IF, expecting ')' in /home/lahull20/public_html/wp-content/themes/frantic/functions.php on line 44

  9. WPyogi
    Volunteer Moderator
    Posted 10 months ago #

    Download a new copy of the theme and replace that file with a new one or compare it to what you have.

  10. lahull20
    Member
    Posted 10 months ago #

    How do I download a new copy ?

  11. WPyogi
    Volunteer Moderator
    Posted 10 months ago #

Reply

You must log in to post.

About this Topic

Tags

No tags yet.