Title: Fatal Error, cant access wp-admin
Last modified: August 20, 2016

---

# Fatal Error, cant access wp-admin

 *  Resolved [mirrorrim](https://wordpress.org/support/users/mirrorrim/)
 * (@mirrorrim)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-cant-access-wp-admin-1/)
 * I edited my functions.php using the WP Appearance>Editor. Then I got this error:
 * Fatal error: Call to undefined function wp_get_theme() in /home/jaclyn9/public_html/
   wp-includes/functions.php on line 32
 * I can no longer access WP-Admin, so I tried replacing the functions.php file 
   via FTP with a copy of the original file. I still get the error.
 * I’ve also completely erased my WP theme, hoping it would default back to the 
   2011 theme or something, but that did not work either and I still get the error.
   Help?!

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

 *  [Jess](https://wordpress.org/support/users/jcull76/)
 * (@jcull76)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-cant-access-wp-admin-1/#post-3453663)
 * Check to make sure the file is actually being overwritten – delete the one on
   the server and _then_ upload the new one.
 * Try uploading a new copy of the functions.php file from a fresh download of WordPress.
 * If that doesn’t work, then remove ALL theme folders from your wp-content>themes
   folder except for Twenty Eleven or Twenty Twelve. That will force WP to use a
   default theme.
 * If you still can’t get to the Dashboard, then also delete all of the plugins 
   from the server to see if a conflict is occurring there.
 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-cant-access-wp-admin-1/#post-3453664)
 * If you have already removed the theme, it may still be necessary to re-visit 
   your site and login. Once you log in, the default theme usually takes over.
 * Try yoursite.com/wp-login.php and see if that brings up the log in page for you.
 *  Thread Starter [mirrorrim](https://wordpress.org/support/users/mirrorrim/)
 * (@mirrorrim)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-cant-access-wp-admin-1/#post-3453668)
 * whew, thank you so much for your help Jess and ClaytonJames. My site is now back
   to normal. After trying all your suggestions, with none of it working, it made
   me think that the problem lie somewhere else other than my theme.
 * When my original code edits didnt work and I got the error, I went to replace
   the functions.php with my back up copy, but I stupidly replaced my _wordpress_
   functions.php file, and not my _theme’s_ functions.php file. This messed everything
   up and was why I could not login to WP-Admin even though I deleted my themes.

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

The topic ‘Fatal Error, cant access wp-admin’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [mirrorrim](https://wordpress.org/support/users/mirrorrim/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-cant-access-wp-admin-1/#post-3453668)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
