• Resolved mirrorrim

    (@mirrorrim)


    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)
  • 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.

    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

    (@mirrorrim)

    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.