WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] I can't access my site because of Parse Error

[Resolved] I can't access my site because of Parse Error

  • 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?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Matthew
    Moderator

    @kidsguide

    Can you access cpanel?

    WPyogi
    Forum Moderator

    @wpyogi

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

    Yes, I can access cpanel

    WPyogi
    Forum Moderator

    @wpyogi

    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.

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

    WPyogi
    Forum Moderator

    @wpyogi

    Talk to your hosting company about why that is.

    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

    WPyogi
    Forum Moderator

    @wpyogi

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

    How do I download a new copy ?

    WPyogi
    Forum Moderator

    @wpyogi

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Resolved] I can't access my site because of Parse Error’ is closed to new replies.