Title: Fatal error: Call to undefined function wp_get_theme
Last modified: August 20, 2016

---

# Fatal error: Call to undefined function wp_get_theme

 *  [parmo](https://wordpress.org/support/users/parmo/)
 * (@parmo)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-wp_get_theme/)
 * Hi all, I’m hoping someone can help me. I was trying to update a friends website,
   I changed the theme to the ‘hero’ theme and now I just get the message :
    Fatal
   error: Call to undefined function wp_get_theme() in /homepages/2/d343995399/htdocs/
   wsb6047285301/wp-content/themes/hero/options.php on line 12
 * After looking about, the only solution I could find is by logging into the FTP
   and changing it via that. Only problem is, that I don’t have access to the FTP
   or domain. I can only access the site via the wordpress admin screen. Really 
   hoping someone can help me with this.

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

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-wp_get_theme/#post-3584520)
 * – First off, to rule out any theme-specific issue, try switching to the unedited
   default theme for a moment using the WP dashboard. If you don’t have access to
   your admin area, you can switch to the default theme by renaming your current
   theme’s folder in wp-content/themes and adding “-old” to the end of the folder
   name using via FTP or SFTP or whatever file management application your host 
   provides.
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-wp_get_theme/#post-3584556)
 * the function `wp_get_theme()` was introduced in wp3.4.0 – so make sure to update
   your WordPress version first if you are still on an older wp version.
 * > I don’t have access to the FTP or domain. I can only access the site via the
   > wordpress admin screen.
 * it is vital that you have FTP access, to remedy the situation you are in right
   now.
    get those access data from whoever is the admin of the site.
 *  [amda2008](https://wordpress.org/support/users/amda2008/)
 * (@amda2008)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-wp_get_theme/#post-3584621)
 * If you have access to phpmyadmin, then you can set different theme (like twentyeleve
   theme).
    Access database, click wp-options, you will find template and stylesheet
   rows in seconds page. Change it to any theme that is present in your installation.

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

The topic ‘Fatal error: Call to undefined function wp_get_theme’ is closed to new
replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 4 participants
 * Last reply from: [amda2008](https://wordpress.org/support/users/amda2008/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-wp_get_theme/#post-3584621)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
