• Site is https://www.mlmscienceblog.com .

    Uploaded and installed the theme “Duster” by Automattic.

    Did not do any other changes other than change the header image and change the nav bar color from #222 to #271106 – no other changes done.

    When I PREVIEW the site through WP Admin, it’s fine. When I VIEW the site directly, I get this error code:

    Fatal error: Call to undefined function get_post_format() in /home/mlmblog/public_html/wp-content/themes/duster/index.php on line 17

    I’m not proficient in writing .php code. And, WP doesn’t provide line numbers like Dreamweaver does. I’d greatly appreciate any help on this. I’ve posted several calls for help and have been ignored.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter bonbutter

    (@bonbutter)

    According to Dreamweaver, Line 17 in the wp-content/themes/duster/index.php is this:

    <?php get_template_part( ‘content’, get_post_format() ); ?>

    Here is the whole index.php page:

    <?php
    /**
    * @package WordPress
    * @subpackage Duster
    */

    get_header(); ?>

    <div id=”primary”>
    <div id=”content” role=”main”>

    <?php duster_content_nav( ‘nav-above’ ); ?>

    <?php /* Start the Loop */ ?>
    <?php while ( have_posts() ) : the_post(); ?>

    <?php get_template_part( ‘content’, get_post_format() ); ?>

    <?php endwhile; ?>

    <?php duster_content_nav( ‘nav-below’ ); ?>

    </div><!– #content –>
    </div><!– #primary –>

    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Have you reverted to to the default theme to see if that works?

    Thread Starter bonbutter

    (@bonbutter)

    Yes. Works fine with the default theme.

    You state your wp install is 3.0.5

    Your theme error is on get_post_formats

    they do not exist in WP 3.0.5, only 3.1

    That may be the issue

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘FATAL ERROR on Line 17 in Index.php’ is closed to new replies.