WordPress.org

Support

Theme Error

  • 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)
  • You need to upgrade wordpress … wp_get_theme is part of WP 3.4

    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?

    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….

    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

    @esmi

    Forum Moderator

    hcscaladmin

    @hcscaladmin

    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

    @esmi

    Forum Moderator

    hcscaladmin

    @hcscaladmin

    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

    @jdembowski

    Volunteer Mod. & Brute Squad

    Sometimes the old replies are best.

    Please post your own topic.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Theme Error’ is closed to new replies.