• I get this message and my site is gone:
    Parse error: syntax error, unexpected T_CLASS in /home/tom/public_html/homemade-solar-panel.org/wp-content/themes/my-theme-with-grass-and-dew/functions.php on line 75

    I am worried as I have NO IDEA what to do and I just got some links to this site, what can I do to get my site back ASAP?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter tombuckers

    (@tombuckers)

    I forgot to say I cant even log in, what should I do?

    Sounds like a problem with the code found in the functions.php file of the theme you are currently using.

    Fastest and easiest way to deal with it is to connect to your site via FTP and rename your active theme folder:

    /wp-content/themes/my-theme-with-grass-and-dew

    Rename it to:
    /wp-content/themes/ERROR-my-theme-with-grass-and-dew

    This will cause WordPress to de-activate your active theme and the error message will be gone. You should then be able to login to your Dashboard by going to https://yourdomain.com/wp-login.php

    Then activate a different theme (like the Twenty Ten or the Twenty Eleven theme) – which will give you a chance to resolve the issues in the functions.php file of the theme you were using.

    Once you’ve resolved the issues in your old theme, you can rename the theme folder back to what it was originally and try re-activating it again.

    Hope that helps.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Parse error: syntax error, unexpected T_CLASS in’ is closed to new replies.