WordPress.org

Ready to get started?Download WordPress

Forums

Call to undefined function after installing TwentyEleven theme (1 post)

  1. cuddly_bear
    Member
    Posted 1 year ago #

    (Question from a newbie)
    blog url: serious-english.ru

    I have just installed Twenty Eleven theme.

    The main blog page now has the folling error message:

    Fatal error: Call to undefined function get_post_format() in [path on server] serious-english.ru/wp-content/themes/twentyeleven/index.php on line 27

    When I try to open the Theme options page in the admin console, I see this error:

    Fatal error: Call to undefined function get_current_screen() in [path on server] /serious-english.ru/wp-content/themes/twentyeleven/inc/theme-options.php on line 122

    Any ideas what I should check/change?

    In the theme-options.php, the function looks like this

    ---`

    $screen = get_current_screen();

    if ( method_exists( $screen, 'add_help_tab' ) ) {
    // WordPress 3.3
    $screen->add_help_tab( array(
    'title' => __( 'Overview', 'twentyeleven' ),
    'id' => 'theme-options-help',
    'content' => $help,
    )
    );

    $screen->set_help_sidebar( $sidebar );
    } else {
    // WordPress 3.2
    add_contextual_help( $screen, $help . $sidebar );
    }
    }`
    ---

    The same theme is working fine on my other blog.

    Would be really grateful if you can give me some hints/help with this.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags