WordPress.org

Ready to get started?Download WordPress

Forums

Narchives.php has error line appearing (6 posts)

  1. Chad_Coleman
    Member
    Posted 9 years ago #

    Warning: extract(): First argument should be an array in /public_html/wp-includes/functions.php on line 1733

    is the line that appears on top of this page here.

    and Line 1733 of functions.php says this

    extract($wp_query->query_vars);

    any php guru's know what i can do to be rid of this? Click here to view the php used in Narchives.php

  2. Lorelle
    Member
    Posted 9 years ago #

    Here are some links that might have a better version or might be able to help you. We've been bugging a few folks to do a better cleaner FINAL version of this but so far, we all play a little with it. Maybe you might find the help here:

    Narchives Instructions
    Download narchives file here
    See This Thread for Fixing It for v1.5
    Another Nicer Archives Version
    http://wordpress.org/support/topic/6041

    And try a search of these forums via Google for narchives and you will see a lot more information.

  3. Chad_Coleman
    Member
    Posted 9 years ago #

    Thanks for the links Lorelle. The thing is, that I modified the narchives.php file so that it contained the get_header, get_sidebar, and get_footer tags... in my modified theme for 1.5.

    I was just wondering if there was something conflicting with what I did.

  4. Chad_Coleman
    Member
    Posted 9 years ago #

    Or better yet, Could someone please tell me what to strip out of Narchives.php to get rid of the forms, and only have it display the list of past entries?

    That is all I really want.

    I havent had any trouble getting it to work fine in the past with v 1.2. It's only been 1.5 that I've had trouble.

    Any help would be greatly appreciated.

  5. Lorelle
    Member
    Posted 9 years ago #

    If you read through the links up above, you would have found the answers to those questions. Or switched to the other nicer archives version offered. If you want a list of archives, without the pull down lists, use the: following archive template tags:

    http://codex.wordpress.org/Template_Tags/get_archives
    http://codex.wordpress.org/Template_Tags/wp_get_archives

    And/or check this article:
    http://codex.wordpress.org/Creating_an_Archive_Index

  6. Ruby Sinreich
    Member
    Posted 9 years ago #

    I got this to work with WP 1.5 by making two major changes:

    Start the document like this:
    <?php require('./wp-blog-header.php'); ?>
    <?php get_header(); ?>

    ...and then so on with your template.

    But then this makes it only show your default number of posts per page so go into where the PHP stuff starts and replace this:
    posts_per_page=-1
    with this:
    $posts = query_posts($query_string . '&posts_per_page=-1');

    I hope this helps!

    You can see mine in action at http://orangepolitics.org/narchives.php

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.