Use FTP to replace the functions.php file with a new copy. See Filezilla and FTP Clients « WordPress Codex.
thanks. Where do I get a clean functions.php copy please?
thank you. replaced the functions.php file – but the problem persists …
Cleared the browse history – no luck
What else can I do please?
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
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