Support » Fixing WordPress » I can't access my site because of Parse Error

  • Resolved lahull20

    (@lahull20)


    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)
  • Moderator Matthew

    (@kidsguide)

    Volunteer Moderator

    Can you access cpanel?

    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

    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?

    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

    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 ?

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