• Hi

    I am not a developer and tried to add some code to provide a search box in my navigation menu (theme Twenty Ten).

    This caused the site to crash and I now can’t access it.

    The site is http://www.millabout.com.au, I’m getting this error message

    “Parse error: syntax error, unexpected ‘!’ in /home/millabou/public_html/wp-content/themes/twentyten/functions.php on line 534”

    I can’t even try to fix it as I can’t go in as admin either …

    Would you please assist?

    Thank you

    Stan

Viewing 9 replies - 1 through 9 (of 9 total)
  • Use FTP to replace the functions.php file with a new copy. See Filezilla and FTP Clients « WordPress Codex.

    Thread Starter millabout

    (@millabout)

    thanks. Where do I get a clean functions.php copy please?

    Download a new copy of twentyten: http://wordpress.org/extend/themes/twentyten

    Thread Starter millabout

    (@millabout)

    thank you. replaced the functions.php file – but the problem persists …

    Cleared the browse history – no luck

    What else can I do please?

    Thread Starter millabout

    (@millabout)

    even replaced all files in the twentyten folder – still no good …

    I can still see the error pointing to the functions.php file. So you probably didn’t upload the file in the right folder. It needs to go in the wp-content/themes/twenten folder.

    Do you have any other theme installed in your theme folder?

    If so, just rename the folder twentyten to xxtwentyten.

    Then hopefully you should be able to log back in, re-upload a fresh version of the twentyten theme and that should do it.

    Hi millabout,
    If you don’t have a backup perhaps it would be easier / safer to just remove the offending search code? As you can’t access the back-end, you can either do this via FTP or via your servers CPanel.

    In case you don’t know how to do the next step I’ve given you details for CPanel option:

    Go to your web-hosting account’s cpanel, log in & look down the various options for the “file manager” icon. Click on it, & and this should take you to your website’s root folder (….where all the websites wordpress files & folders etc are stored).

    Open up the “wp-content” folder. Inside this is a folder called “themes”, and within the “themes” folder is all your various themes folders. Open up the folder containing your current theme & look for the file that you inserted the code into (….if you don’t remember which one it was, it was most probably an “index.php” file?, or a home.php??? or did you maybe insert it in the header file??). When you find it then open it (right click & select either “edit” or the “code edit” options) & search for the offending search code snippet. Delete the offending code, (making sure you remove it all, but not anything else….) and then save the file, and then you should be right to go.

    Hope this helped,
    Karen

    Thread Starter millabout

    (@millabout)

    thank you so much, everybody!

    this was a scary experience … never touching that code ever!

    thanks again

    relieved: Stan, Mill About Vineyard

    he he… code can be a bit scary, I admit. The functions.php is the most dangerous.
    But as long as you have a backup and FTP info you’ll be fine. It’s only by breaking things that you learn.

    Glad you got it fixed

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Can't access my site’ is closed to new replies.