tags and categories not working: website and admin panel

  • simone_b

    #4764

    I just upgraded to WordPress 3.3.2 and Graphene 1.7.2 (upgraded in that order, first upgrade since early in 2012). I now have the following issues, possibly related to hierarchical categories/tags:

    * On the website, clicking on any Tag or Category archives returns no posts. For instance, there should be 49 posts at this link, but none appear: http://bostonpoetryslam.com/archives/category/tips-from-the-bar

    * In the admin panel, 148 Posts are listed, but only 6 appear, regardless of what Category or draft status is listed. New posts disappear from the admin panel as soon as they are created, although they will correctly on the website. Tags and Categories behave similarly. The homepage and slider, both of which draw on categories, are functioning properly.

    I have tried disabling my plugins (singly and en masse), switching my permalink format, disabling/deleting my child theme, checking for database errors (none found), and reinstalling WordPress via the admin panel. I also deleted the Graphene theme and reinstalled from scratch.

    When I switch to the TwentyEleven theme, all the problems resolve.

    I’m stumped. It sounds like a similar problem existed in Graphene 1.6, but my tag.php appears to be the latest version. Can anyone help?

    Admin

    Syahir Hakim

    #29125

    Try setting WP_DEBUG to true in wp-config.php and see if there’s any error message on the tags / categories archive pages.

    simone_b

    #29126

    Oh, neat. Thanks for the quick reply (and the tool).

    The Category Archive pages do not generate any errors.

    The following error appears on the Tag Archive pages (same on each):

    Notice: Trying to get property of non-object in /homepages/33/d203048540/htdocs/bps/wp-content/themes/graphene/includes/theme-loop.php on line 493

    This line number references the if statement in the graphene_tax_description function.

    Additionally, the following error appears on the top of every page:

    Notice: Undefined index: hook_suffix in /homepages/33/d203048540/htdocs/bps/wp-content/themes/graphene/includes/theme-head.php on line 398

    Apparently in reference to this line (comment included for clarity):

    // the custom colours are needed in both the display and admin mode
    $style .= graphene_get_custom_colours( $graphene_settings['hook_suffix'] );

    A sidebar error was also generated due to a plug-in using a deprecated argument, which I repaired. That didn’t change anything else.

    Admin

    Syahir Hakim

    #29127
    Quote:
    The following error appears on the Tag Archive pages (same on each):

    Notice: Trying to get property of non-object in /homepages/33/d203048540/htdocs/bps/wp-content/themes/graphene/includes/theme-loop.php on line 493

    That is weird. Can you try editing the theme-loop.php file and add the following code:

    disect_it( $wp_query, false, true );
    disect_it( $term, false, true );

    right before line 493:

    if ( $term->description ) :

    Let me know when you’ve done that.

    simone_b

    #29128

    Okay, I’ve updated the file. (WP_DEBUG is still on.)

    Admin

    Syahir Hakim

    #29129

    What’s your slider settings?

    Also, what files are there in your child theme?

    simone_b

    #29130

    My slider is set to show the 5 latest posts. I previously had it set to show desired categories and it was functioning properly (although I didn’t have debug on, so I don’t know if it was generating errors).

    My child theme files:

    * functions.php (no changes, just a placeholder)

    * style.css (just changes the header height to 100px)

    * upcoming_page_template.php used here: http://bostonpoetryslam.com/see-a-show/all-upcoming-shows-by-the-boston-poetry-slam

    * future_cantab_features_page_template.php

    * future_radio_features_page_template.php

    These last two are not currently in use, as they are new since the upgrade and I was concerned that they were causing the problem. Disabling them as templates has had no effect.

    Admin

    Syahir Hakim

    #29131

    Try replacing the theme’s includes/theme-slider.php file with the updated one here:

    http://graphene.googlecode.com/svn/branches/1.7/includes/theme-slider.php

    simone_b

    #29132

    OOH, MAGIC.

    Tags and Categories appear to be functioning both on the site and in the admin panel now. Only the get_custom_colours error remains, which doesn’t appear to affect anything. Thank you so much!

    Is this a problem I created somehow, perhaps by nesting categories? I’d like to avoid breaking things again in this way.

    Admin

    Syahir Hakim

    #29133
    Quote:
    Is this a problem I created somehow, perhaps by nesting categories? I’d like to avoid breaking things again in this way.

    Nope, it’s a bug in the theme’s “Exclude slider categories from posts listing” feature, which applied the categories exclusion even when the slider type is no longer set to display posts from categories.

Viewing 10 posts - 1 through 10 (of 13 total)

You must be logged in to reply to this topic.