• Resolved jdrowe

    (@jdrowe)


    Help! I foolishly edited functions.php and now if I go to any page in the site it reads “Parse error: syntax error, unexpected T_STRING, expecting ‘)’ in /home/content/j/d/r/jdrowe/html/ICG/wp-content/themes/magazine_basic/functions.php on line 138”. I then deleted the bad functions.php file and uploaded a good copy from my original zipped theme folder. Still it displays the same message. Is there an easy way to restore WP, like a ‘safe mode’? Or an ‘undo’ function?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Can you paste the code from the file and line number mentioned in the error message please, so i can see what’s causing the error.

    Thread Starter jdrowe

    (@jdrowe)

    I can’t even get to my files anymore. Any file I try to open within my WP install displays the same message. I can show you the original functions.php file, but I doubt that would do any good.

    you can show the edited one, if you get it from your server. Using either ftp, or a file manager if your host offers one

    its in wp-content->themes->magazine_basic

    Also, some hosts (like godaddy) offer a simple file restore….where you can revert back to yesterday or whatever

    Thread Starter jdrowe

    (@jdrowe)

    Thanks! I overwrote all my theme files and it works again. For future reference is there a WP safe mode or anything similar (besides the hosting restore)

    safe mode? You mean so you can experiment without breaking anything?

    If that’s the case, I would look into installing wordpress locally on your computer for a test environment. Or some people make a second WP installation to test on in a subdomain/directory

    Thread Starter jdrowe

    (@jdrowe)

    Good idea, thanks Rev & Mark.

    You’re welcome… ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Crash – functions.php’ is closed to new replies.