Title: Theme Error
Last modified: August 20, 2016

---

# Theme Error

 *  [thedesigngrl](https://wordpress.org/support/users/thedesigngrl/)
 * (@thedesigngrl)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/theme-error-22/)
 * In the WP Admin I see this error under manage themes:
 * Fatal error: Call to undefined function wp_get_theme() in /home/nanatlor/public_html/
   cms/wp-admin/themes.php on line 120
 * Should I just reinstall the theme? Will that delete my content?
 * Please help, I am new to CMS and WordPress

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

 *  [Rev. Voodoo](https://wordpress.org/support/users/rvoodoo/)
 * (@rvoodoo)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/theme-error-22/#post-2847625)
 * You need to upgrade wordpress … wp_get_theme is part of WP 3.4
 *  Thread Starter [thedesigngrl](https://wordpress.org/support/users/thedesigngrl/)
 * (@thedesigngrl)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/theme-error-22/#post-2847626)
 * I tried upgrading wordpress on friday and got this fatal error:
 * Fatal error: Call to undefined function get_front_page_template() in /home/a2522872/
   public_html/cms/wp-includes/template-loader.php on line 26
 * I was able to get it corrected to the point of being able to log into the WP 
   admin again and actually see the site when I go to the URL. I’m a little skeptical
   of upgrading.
 * I don’t know if it was the upgrade attempt that cause these errors or something
   else.
 * Any suggestions?
 *  [Rev. Voodoo](https://wordpress.org/support/users/rvoodoo/)
 * (@rvoodoo)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/theme-error-22/#post-2847631)
 * Hm… that’s an odd error message… according to the code (in wp-includes/template.
   php line 209) get_front_page_template has been defined in WP since version 3.0
 *     ```
       * Looks for 'front-page.php'.
        *
        * @since 3.0.0
        * @uses apply_filters() Calls 'front_page_template' on file path of template.
        *
        * @return string
        */
       function get_front_page_template() {
       	$templates = array('front-page.php');
   
       	return get_query_template( 'front_page', $templates );
       }
       ```
   
 * So it should be defined in your install….
 *  [AlisonMooreSmith](https://wordpress.org/support/users/alisonmooresmith/)
 * (@alisonmooresmith)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/theme-error-22/#post-2847896)
 * Same issue here. Setting up a new site, it worked fine a couple of days ago, 
   went to access and it’s broken.
 * Fatal error: Call to undefined function get_front_page_template() in /home/mainaccount/
   newsite/wp-includes/template-loader.php on line 26
 * When I try to access the dashboard, I get this:
 * *****
    Database Update Required
 * WordPress has been updated! Before we send you on your way, we have to update
   your database to the newest version.
 * The update process may take a little while, so please be patient.
 * “Update WordPress Database” button
 * ******
 * If I try to update the database, I get this error:
 * ******
    Fatal error: Class ‘WP_Theme’ not found in /home/mainaccount/newsite/
   wp-includes/theme.php on line 106
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/theme-error-22/#post-2847897)
 * Please post your own topic. And try reviewing [http://wordpress.org/support/topic/troubleshooting-wordpress-34-master-list](http://wordpress.org/support/topic/troubleshooting-wordpress-34-master-list)
 *  [AlisonMooreSmith](https://wordpress.org/support/users/alisonmooresmith/)
 * (@alisonmooresmith)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/theme-error-22/#post-2847898)
 * Found the solution to this known bug here:
 * [http://wordpress.org/support/topic/upgrade-to-34-from-311-fatal-error?replies=9#post-2939189](http://wordpress.org/support/topic/upgrade-to-34-from-311-fatal-error?replies=9#post-2939189)
 * Thanks, esmi!
 *  [hcscaladmin](https://wordpress.org/support/users/hcscaladmin/)
 * (@hcscaladmin)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/theme-error-22/#post-2848039)
 * I am a newbie a wp. i install a theme that was for the latest version of wp, 
   but i was not on the updated version. so this error did not let me get to the
   admin,
 * so how do i upgrade if i cannot bet to admin?
 * copied the default wp theme files twentyten into my new theme wp-foundation keeping
   the folder name what it was.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/theme-error-22/#post-2848040)
 * Please [post your own topic](http://wordpress.org/support/forum/how-to-and-troubleshooting#postform).
 *  [hcscaladmin](https://wordpress.org/support/users/hcscaladmin/)
 * (@hcscaladmin)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/theme-error-22/#post-2848041)
 * [http://wordpress.org/support/topic/this-is-how-i-handled-the-undefined-function-wp_get_theme-error?replies=1#post-319968](http://wordpress.org/support/topic/this-is-how-i-handled-the-undefined-function-wp_get_theme-error?replies=1#post-319968)
   
   I have done so here. Thanks
 *  [zahrey](https://wordpress.org/support/users/zahrey/)
 * (@zahrey)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/theme-error-22/#post-2848058)
 * bagaimana cara mengatasi permasalahan pada wordpress dengan tulisan: Fatal error:
   Call to undefined fungsi wp_get_theme () di / home/u135663582/public_html/wp-
   content/themes/news/library/admin/theme-settings.php on line 35
    please help 
   me!
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [13 years, 7 months ago](https://wordpress.org/support/topic/theme-error-22/#post-2848059)
 * Sometimes the old replies are best.
 * Please [post your own topic](http://wordpress.org/support/forum/how-to-and-troubleshooting#postform).

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

The topic ‘Theme Error’ is closed to new replies.

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)
 * [Themes](https://wordpress.org/support/topic-tag/themes/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 11 replies
 * 7 participants
 * Last reply from: [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/theme-error-22/#post-2848059)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
