• Resolved leighwh

    (@leighwh)


    Please help – I was adding code in the functions editor to add a copyright statement in the footer. I now have a fatal endif error and it’s so bad that my entire blog is down. I am actually unable even to get into the blog admin section. Here’s the error I get and what you see if you to to my blog: Parse error: syntax error, unexpected T_ENDIF in /home1/leighwat/public_html/blog/wp-content/themes/twentyten/functions.php on line 503

    I’m happy to go back to the original default text but can’t even get it. What now?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Do you have a backup? If so use FTP to upload the backup. If you don’t have a backup either download the functions.php file and amend it, then send it back up or load a new functions.php file.

    Thread Starter leighwh

    (@leighwh)

    Host says no back up available. Sooooo how does a novice like me download a php file and reupload? I see in the host file directory two files: php.ini and php.iniNEWCONFIGPOSSIBLYBROKEN – my apologies for being such a coding novice. Can you advise on what next here?

    Use program such as filezilla on your local PC. You should have ftp access to your site. A username and password will be required.

    Download and unzip WP 3.1 to your PC. Follow the path name of your error file – blog/wp-content/themes/twentyten/functions.php – and then upload the same file from your local PC (in the same directory) to your server (to the same directory) using filezilla.

    Thread Starter leighwh

    (@leighwh)

    Thank you – managed to FTP new functions.php file and blog is now restored. I guess I need to establish better behaviors around making a backup before I mess with code, and possibly even learn what I’m doing when I fiddle with code. Again, your support much appreciated!

    The forums are littered with ‘if only I had backed up my …’, and believe it or not I was saying exactly the same thing last night! (but we do do a weekly backup of all the sites)

    Try and learn how to backup the database, you can always get new files and use FTP, but if the database is gone – it’s gone.

    Thread Starter leighwh

    (@leighwh)

    Agree, I have to get my best practices in order. I have constant backup from my desktop for all my work files – Crashplan and various redundancies – but hadn’t extended this rigor to the site and my personal blog – kind of thinking it’s hosted, it’s out there, it’s safe 🙂

    thanks again –

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fatal error unexpected endif’ is closed to new replies.