WordPress.org

Forums

Parse error: syntax error, unexpected T_CLASS in (3 posts)

  1. tombuckers
    Member
    Posted 3 years ago #

    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?

  2. tombuckers
    Member
    Posted 3 years ago #

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

  3. Lisa Sabin-Wilson
    Member
    Posted 3 years ago #

    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 http://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.

Topic Closed

This topic has been closed to new replies.

About this Topic