Forums

FATAL ERROR on Line 17 in Index.php (5 posts)

  1. bonbutter
    Member
    Posted 1 year ago #

    Site is http://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.

  2. bonbutter
    Member
    Posted 1 year ago #

    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(); ?>

  3. kmessinger
    Member
    Posted 1 year ago #

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

  4. bonbutter
    Member
    Posted 1 year ago #

    Yes. Works fine with the default theme.

  5. Rev. Voodoo
    Volunteer Moderator
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic