ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Weird category related bug - entry is in categories but can't be output in template

April 20, 2010 5:36pm

Subscribe [4]
  • #1 / Apr 20, 2010 5:36pm

    Matthew Pennell

    221 posts

    I have a weird bug I can’t figure out. I assign a weblog entry to multiple categories and save it. I can see in exp_category_posts that it is correctly assigned to the categories, but when I try to output a list of entries in one of the categories:

    {exp:weblog:entries weblog="directory" dynamic="off" category="29"}
    {title}
    
    {/exp:weblog:entries}

    my weblog entry isn’t in the list.

    If I just assign it category #29 only, it shows up fine. If I assign it to #29 and another category (top level or a child category, doesn’t matter), it works.

    But if I add a third or more categories, it suddenly disappears from the original category. I can see in the database that the entry in exp_category_posts is still there for #29, and the category is still selected in the Edit page - it just refuses to be output by the weblog entries loop.

    Any ideas?

  • #2 / Apr 20, 2010 5:39pm

    Ingmar

    29245 posts

    What version and build of EE are you using? Any extensions?

  • #3 / Apr 20, 2010 6:12pm

    Matthew Pennell

    221 posts

    1.6.8, build 20090723.

    Several extensions, but the only one related to categories is Low Seg2Cat.

    Blis Publish Button
    jQuery for the Control Panel
    Edit Tab AJAX
    EEvent Helper
    Edit Menu
    FieldFrame
    Gypsy
    LG Add CP Tabs
    LG Add Sitename
    LG Addon Updater
    LG TinyMCE
    Low Seg2Cat
    Publish Tweeks
    SL Combinator
    SL Developer Info

  • #4 / Apr 20, 2010 8:47pm

    Brandon Jones

    5500 posts

    Matthew,

    Try disabling extensions via the green button in the Extension Manager and see if the problem persists. If it does, the next step is to perform a version update so that we’re on the same page.

  • #5 / May 09, 2010 6:54am

    Matthew Pennell

    221 posts

    Fixed. The reason was that the exp:weblog:entries tag defaults to a limit of 100, and when an entry had more categories assigned it was moving that entry outside of the top 100 returned by the query. Setting the limit to 1000 fixed the problem.

  • #6 / May 09, 2010 4:46pm

    Greg Salt

    3988 posts

    Hi Matthew,

    Glad that you got this sorted.

    Cheers

    Greg

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases