WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] search error message (3 posts)

  1. Jonas Grumby
    Member
    Posted 5 years ago #

    I noticed tonight that if I search my own site (http://johnnasta.com/blog) for a term that does not exist on the site, I get this error message:

    Warning: Missing argument 1 for wp_widget_recent_entries() in ...path/wp-includes/widgets.php on line 1293

    Warning: extract() [function.extract]: First argument should be an array in ...path/wp-includes/widgets.php on line 1300

    For this example I substituted the full path with ...path/

    I am not using any widgets on this site. I am using the dfblog theme, which does show recent entries if there are no results. It's a nice feature but it seems to be causing the error. If I switch to a different theme, the error goes away.

    Does anyone have any ideas on how to fix it? Maybe Daniel (the theme author) will see this and respond.

    Thanks

  2. Jonas Grumby
    Member
    Posted 5 years ago #

    I heard back from Daniel. He says this will be fixed in the next version but in the meantime users can remove this line:

    <?php wp_widget_recent_entries(); ?>

    from the theme's index.php line 56, and archive.php line 57

    I let him know that the same code is also in single.php and search.php. I don't know if either of those has to be deleted.

    You probably could replace that line with this:

    <h2 class="widgettitle">Recent Posts</h2>
    <?php get_archives('postbypost', 10); ?>

    I haven't tried it yet.

    It's a nice idea, but a bit redundant if you already have the recent posts in your sidebar.

  3. danielfajardo
    Member
    Posted 5 years ago #

    This topic is solved in the new version 1.1.3 of the theme.

Topic Closed

This topic has been closed to new replies.

About this Topic