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.

entries not displaying in a certain category - suspecting a memory issue

March 08, 2011 10:05pm

Subscribe [3]
  • #1 / Mar 08, 2011 10:05pm

    John St-Amand

    865 posts

    Hi there - I’m having some trouble at the moment with a couple of categories not displaying in my site, even though they had been displaying before.  For example:

    http://www.cucinamoderna.ca/index.php/products/list/category/ParingUtility/

    There should be 9 products displaying, as there are 9 in the CP with a status of “open”.  Instead I get a blank screen (and yet the category appears in the menu, clearly indicating that there are “open” status entries in the category - I do have the category parameter of show_empty set to “no”.

    Second example:

    http://www.cucinamoderna.ca/index.php/products/list/category/Wusthof/

    Again, no products displaying, yet there are 37 “open” products in the category.  And categories right along side them display just fine.

    I’m suspecting perhaps a memory issue?  I turned on template debugging, but I don’t see anything in the output that suggests a failure of some kind - although I’m not sure I understand the language of the debugging info to spot what’s going on that easily. I just can’t seem to determine why these particular categories are not displaying their entries.  And in this particular site, an entry is assigned to one category only.

    Do you have some suggestions for how I might resolve the issue?  Something i can try to at least determine why the entries are not showing up?  Really need some advice.

    Thanks.

  • #2 / Mar 09, 2011 10:00am

    Sue Crocker

    26054 posts

    Hi, John. You mentioned you thought this might be a memory issue, but you didn’t mention how much memory is allocated to PHP.

    Have you seen: EEWiki:// HowTo Determine Memory Limits

    -and-

    EEWiki:// HowTo Override Memory Limitations

    How much is allocated?

    You could also try putting the code in a more vanilla template…

  • #3 / Mar 09, 2011 10:05am

    John St-Amand

    865 posts

    Sorry - this is hosted on Engine Hosting, so the PHP memory limit is 64mb.  What I don’t understand is that there are several categories with many more entries assigned to them than these two categories that won’t display.  But I don’t see anything in the debugging info that is leaping out at me to suggest what might be wrong.

  • #4 / Mar 09, 2011 3:25pm

    Sue Crocker

    26054 posts

    Are any of the entries in the future or set to a status other than open? Starting with the obvious to look for.

  • #5 / Mar 09, 2011 3:34pm

    John St-Amand

    865 posts

    No entries in the future.  Yes, there are other entries with other statuses.  The entries tag is looking for Featured|open, and there is also another status of product_pending and product_deleted, both of which are used for a few products at least in the category - this is commonly the case in several of the categories in fact.

    Thanks,
    John

  • #6 / Mar 10, 2011 2:58am

    John Henry Donovan

    12339 posts

    Hi John,

    Can you share your weblog:entries tags with us please?

    Also create a separate blank template at say products/test
    The only thing I want you to add here is your weblog entries tag and nothing else. Can you add the entry_id= parameter and dynamic=“off” to the tag in this template. Add those product ids that should be appearing in your blank category. Separate them with pipes. Also set status as below

    {exp:weblog:entries weblog="products" entry_id="1|2|3|4|5" dynamic="off" status="not closed" limit="20"}
    {title}
    
    {/exp:weblog:entries}

    Do you have any extensions installed?

  • #7 / Mar 17, 2011 12:31pm

    John St-Amand

    865 posts

    Ok, i tried that with the following code:

    {exp:weblog:entries weblog="products" entry_id="3414|3411|3870|3867|3417" orderby="date" sort="desc" limit="20" status="not closed" disable="category_fields|trackbacks|member_data" dynamic="off" paginate="bottom"}
    
    {title}
    
    {/exp:weblog:entries}

    And i did get a list of the 5 products.

    I tried essentially the same thing with the full embedded product entries tags and I discovered that if I use “not closed” within that category view, all products display fine.  If I use “open”, that’s when i get a blank screen for the affected category - and yet is displayed fine for other categories.  Any idea why that would be?  In the template, I originally had status=“Featured|open” and it’s working for almost every category, but for these two categories, all i get is a blank page unless i change it to “not closed”.  It doesn’t make sense to me.  Here’s the full product display template:

    
    
    

    So THAT works, but if i change the status to what works for other categories - “Featured|open” or even just “open” this category won’t display.  Help!?!

  • #8 / Mar 17, 2011 3:56pm

    John St-Amand

    865 posts

    Any thoughts on this? I’m really stumped.

  • #9 / Mar 18, 2011 11:02am

    Lisa Wess

    20502 posts

    Hey John,

    A few things we can do.  We know on EH that PHP displaying of errors is on; so yours shouldn’t be suppressed.  Can you go to Admin > System Preferences > Output and Debugging and put Debugging to 1: PHP Errors Shown to Superadmins?

    Then reload that template and let’s see if we get an error.

    After that - can you try to minimize= that template to the absolute bare minimum?  Something like:

    {exp:weblog:entries weblog="products" orderby="date" sort="desc" limit="20" status="Open" disable="category_fields|trackbacks|member_data" paginate="bottom"}
    {title}
    
    {/exp:weblog:entries}

    and see if it will display the entries for the problem category?

    Thank you!

  • #10 / Mar 18, 2011 12:23pm

    John St-Amand

    865 posts

    Ok I’ve done both - no PHP errors visible in the first - simply nothing shows in the page.  And when i simplified to just:

    {exp:weblog:entries weblog="products" orderby="date" sort="desc" limit="20" status="open" disable="category_fields|trackbacks|member_data" dynamic="on" paginate="bottom"}
    
    - {title}<br>
    
    {/exp:weblog:entries}

    The entries show up. What’s next?

  • #11 / Mar 19, 2011 2:55pm

    John St-Amand

    865 posts

    Really need some ideas here - what does the fact that no PHP errors show up mean?  Is there something else going on?

  • #12 / Mar 21, 2011 5:16am

    John Henry Donovan

    12339 posts

    John,

    FYI, our support works on a queuing system so if you bump your own thread it goes to bottom of list without our knowledge

    what does the fact that no PHP errors show up mean?

    Quite literally that there are no PHP errors to worry about

    The entries show up. What’s next?

    Next is to start adding pieces of your template back in and testing along the way to see what might be the original culprit. Let us know what you come up with

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

ExpressionEngine News!

#eecms, #events, #releases