• Messed something up in my functions php file.

    I was trying to enter code in that would enable thumb images with my posts of home page and it didn’t work.

    So I went in and copied and pasted the code I had put in and deleted it.

    Either I left something in or took something out I shouldn’t have.

    Anyway, I can’t get back into my site and have no idea how to fix this…

    The site is singlesizzle.com

    here is the message that comes up if I try to log in…

    <b>Parse error</b>: syntax error, unexpected ‘<‘ in <b>/home1/dave/public_html/singlesizzle.com/wp-content/themes/twentyeleven/functions.php</b> on line <b>742</b>

Viewing 4 replies - 1 through 4 (of 4 total)
  • Using an FTP Client such as FileZilla or your host provided file management tool(s), please rename the remote file:
    /wp-content/themes/twentyeleven/functions.php
    to:
    /wp-content/themes/twentyeleven/old-functions.php

    Then,

    upload the file functions.php into same folder from a download of theme version in use.

    Moderator t-p

    (@t-p)

    Parse errors

    Syntax Error

    A syntax error means that you have made a mistake while creating your PHP structure.

    When this error appears it will tell you which file the error appears in (functions.php for example) and approximately which line (it may not always be the exact line so be sure to check just before and just after) in the code.

    Unexpected

    If you are receiving an error which says ‘parse error: unexpected’ this usually means that you have forgotten to include a character.

    Thread Starter Pathces

    (@pathces)

    Thanks…

    Can’t log back into the site. Hostgator is trying to get me back in.

    Probably a missing { or < or something….

    That’s what happens when you don’t know html and are trying to learn on the fly.

    Just informed me they have to restore my site from a backup they did 24 hours ago……..

    Oh well………When I get back in at least I will be able to have a look and perhaps see what I deleted by mistake.

    An easy way to avoid this situation is to never edit a file on a live website. You are simply asking for trouble, expecially if you’re inexperienced. Always work on a copy of the file and always make a backup before you do.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Site disappeared’ is closed to new replies.