WordPress.org

Ready to get started?Download WordPress

Forums

Theme Error (12 posts)

  1. thedesigngrl
    Member
    Posted 2 years ago #

    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

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    You need to upgrade wordpress ... wp_get_theme is part of WP 3.4

  3. thedesigngrl
    Member
    Posted 2 years ago #

    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?

  4. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

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

  5. AlisonMooreSmith
    Member
    Posted 2 years ago #

    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

  6. esmi
    Forum Moderator
    Posted 2 years ago #

  7. AlisonMooreSmith
    Member
    Posted 2 years ago #

  8. hcscaladmin
    Member
    Posted 2 years ago #

    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.

  9. esmi
    Forum Moderator
    Posted 2 years ago #

  10. hcscaladmin
    Member
    Posted 2 years ago #

  11. zahrey
    Member
    Posted 2 years ago #

    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!

  12. Sometimes the old replies are best.

    Please post your own topic.

Topic Closed

This topic has been closed to new replies.

About this Topic