Title: Crash &#8211; functions.php
Last modified: August 19, 2016

---

# Crash – functions.php

 *  Resolved [jdrowe](https://wordpress.org/support/users/jdrowe/)
 * (@jdrowe)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/crash-functionsphp/)
 * 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)

 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/crash-functionsphp/#post-1594563)
 * 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](https://wordpress.org/support/users/jdrowe/)
 * (@jdrowe)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/crash-functionsphp/#post-1594584)
 * 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.
 *  [Rev. Voodoo](https://wordpress.org/support/users/rvoodoo/)
 * (@rvoodoo)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/crash-functionsphp/#post-1594586)
 * 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](https://wordpress.org/support/users/jdrowe/)
 * (@jdrowe)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/crash-functionsphp/#post-1594590)
 * 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)
 *  [Rev. Voodoo](https://wordpress.org/support/users/rvoodoo/)
 * (@rvoodoo)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/crash-functionsphp/#post-1594600)
 * 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](https://wordpress.org/support/users/jdrowe/)
 * (@jdrowe)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/crash-functionsphp/#post-1594603)
 * Good idea, thanks Rev & Mark.
 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/crash-functionsphp/#post-1594616)
 * You’re welcome… 🙂

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

The topic ‘Crash – functions.php’ is closed to new replies.

## Tags

 * [Crash](https://wordpress.org/support/topic-tag/crash/)
 * [functions](https://wordpress.org/support/topic-tag/functions/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 3 participants
 * Last reply from: [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/crash-functionsphp/#post-1594616)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
