Huge technical problem to do with wordpress

20 replies
  • WEB DESIGN
  • |
I have a site that I changed part of the code in and now I cannot log back into at this always comes up:

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

Im really worried as I do not know what to do. If it helps the site is: homemade-solar-panel.org

Does anyone know what to do? Can I delete wordpress and re install it? I am on hostgator hosting if that helps.

Thanks so much to anyone who knows what to do or a link to something, I have been looking for hours.
#huge #problem #technical #wordpress
  • Profile picture of the author Dustin Goode
    You can try to delete the theme you have installed through your ftp client or file explorer in hostgator. That might get you back in to the dashboard to reinstall the theme.
    Signature

    -Dustin

    {{ DiscussionBoard.errors[4533810].message }}
  • Profile picture of the author TomBuck
    I cannot even log into wordpress Cp and could you explain how to do that in hostgator?
    {{ DiscussionBoard.errors[4533819].message }}
  • Profile picture of the author TomBuck
    Should I delete the add on domain from hostgator and then re add it and re install wordpress, would that work?
    {{ DiscussionBoard.errors[4533830].message }}
  • Profile picture of the author koyaai
    If you can't log back in as admin... the best way is to remake the whole thing.. start from scratch, I guess... You can do it from your your host's side.
    Signature

    Turn your videos into powerful interactive smart videos. Allow users to take action RIGHT from your VIDEOS!

    Introducing the new Invidz!

    {{ DiscussionBoard.errors[4533843].message }}
  • Profile picture of the author Benjamin Norman
    There are two ways you can fix this. You will need to log into your hosting account Cpanel. Go into the File manager and then into public html. Next, go homemade-solar-panel.org/wp-content/themes/my-theme-with-grass-and-dew/

    You can then either re-upload the file functions.php file (if you have a copy prior to editing) or you can click on Code editor and edit the file yourself. You will need to go down to line 75 in the code and adjust.

    Without seeing the code, you are probably missing some quotation marks or something like that.
    {{ DiscussionBoard.errors[4533848].message }}
  • Profile picture of the author AnniePot
    Originally Posted by TomBuck View Post

    I have a site that I changed part of the code in and now I cannot log back into at this always comes up:

    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

    Im really worried as I do not know what to do. If it helps the site is: homemade-solar-panel.org

    Does anyone know what to do? Can I delete wordpress and re install it? I am on hostgator hosting if that helps.

    Thanks so much to anyone who knows what to do or a link to something, I have been looking for hours.
    You say you changed the code - what code? Was it in the Wordpress coding, or the theme?
    {{ DiscussionBoard.errors[4533854].message }}
  • Profile picture of the author Brian Alaway
    Just download a fresh copy of your theme. Unzip and upload the functions.php file to wp-content>themes>(your theme).
    {{ DiscussionBoard.errors[4533865].message }}
  • Profile picture of the author ~kev~
    Log into the server with an FTP client and delete the theme.

    Wordpress should then revert back to the 2010 or 2011 theme.


    Pro tip:

    Before you make changes to a theme make a backup, just download the theme to your computer.

    If something goes wrong, upload the backup and overwrite your changes.
    {{ DiscussionBoard.errors[4534057].message }}
  • Profile picture of the author ElaineBaker
    Hi Tom
    Glad you sorted it out, just wanted to say it's nice to see another Taffy on here
    I'm from Ammanford the other side of Swansea.
    All the best with your venture
    Elaine
    {{ DiscussionBoard.errors[4534062].message }}
  • Profile picture of the author matt5409
    this is a minor PHP error probably, PM me and i'll give you my email address - send the file to me and i'll have a look
    {{ DiscussionBoard.errors[4534064].message }}
  • Profile picture of the author sbucciarel
    Banned
    This has sometimes worked for me. Download via filezilla or some other program, the functions.php file in your theme folder. Scroll to the end and right after the last piece of php code, delete all remaining white space. Just put your cursor after the last character and hit delete numerous times. Then save it and reupload it.
    {{ DiscussionBoard.errors[4534118].message }}
    • Profile picture of the author matt5409
      Originally Posted by sbucciarel View Post

      This has sometimes worked for me. Download via filezilla or some other program, the functions.php file in your theme folder. Scroll to the end and right after the last piece of php code, delete all remaining white space. Just put your cursor after the last character and hit delete numerous times. Then save it and reupload it.
      errors like that cannot possibly be produced by whitespace, so removing it won't make any difference. it must be something else you have done to fix.
      {{ DiscussionBoard.errors[4534130].message }}
  • Profile picture of the author Patrick
    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

    The answer is in the question itself, look at line 75..if you dont understand anything google it or post that line here..
    {{ DiscussionBoard.errors[4535353].message }}
    • Profile picture of the author rts2271
      Originally Posted by schwarzes View Post

      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

      The answer is in the question itself, look at line 75..if you dont understand anything google it or post that line here..
      A T_Class can occurr earlier do to a brace being opened so the line # can be very misleading. It is a place to start but certainly not a definite answer.
      {{ DiscussionBoard.errors[4535591].message }}
  • Profile picture of the author Izzy9
    I encountered a similar problem when I uploaded my niche site and I could just not get it fixed. I was also advised to restart the whole thing (remove the domain from the host and start from scratch). Sigh!
    {{ DiscussionBoard.errors[4540142].message }}

Trending Topics