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.

rss feed empty

March 26, 2012 3:33pm

Subscribe [3]
  • #1 / Mar 26, 2012 3:33pm

    Jules van Schaijik

    210 posts

    I have 3 separate rss feeds for 3 different channels, going through the same template (rss/index, where segment_2 get’s replaced with the channel short name). To channels are working fine, but the third feed, which I tried to add today, is empty, even though it contains recent entries.
    The channel settings are identical except for the full name and the short name, and so are the group assignments.

    What in the world could cause the difference!?
    (I have tried adding the debug parameter, but saw no error messages or any other difference in output. I also validated the feed using W3C’s tool.)

    ———
    These are the three feeds:
    feed://www.thepersonalistproject.org/rss/home
    feed://www.thepersonalistproject.org/rss/members
    feed://www.thepersonalistproject.org/rss/courtship

    And this is the rss/index template:

    {preload_replace:master_channel_status="open"}
    
    {exp:rss:feed channel="{segment_2}" status="{master_channel_status}"}
    
    <?xml version="1.0" encoding="{encoding}"?>
    <rss version="2.0"
        xmlns:dc="http://purl.org/dc/elements/1.1/"
        xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
        xmlns:admin="http://webns.net/mvcb/"
        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns:content="http://purl.org/rss/1.0/modules/content/"
        xmlns:atom="http://www.w3.org/2005/Atom">
    
        <channel>
        <atom:link href="{channel_url}home/{segment_2}" rel="self" type="application/rss+xml" >
    
        <title>The Personalist Project</title>
        <link>http://www.thepersonalistproject.org/</link>
        <description>Giving life some serious thought</description>
        <dc:language>en</dc:language>
        <dc:creator>[email protected]</dc:creator>
        <dc:rights>Copyright {gmt_date format="%Y"}</dc:rights>
        <dc:date>{gmt_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
        <admin:generatorAgent rdf:resource="http://expressionengine.com/" >
        
    {exp:channel:entries channel="{segment_2}" status="{master_channel_status}" limit="10" dynamic_start="on" disable="member_data|pagination"}
        <item>
          <title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
          <link>http://www.thepersonalistproject.org/comments/{url_title}</link>
          <guid>http://www.thepersonalistproject.org/comments/{url_title}</guid>
          <description>{exp:xml_encode}{post_body}{/exp:xml_encode}</description>
          <dc:date>{gmt_entry_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
        </item>
    {/exp:channel:entries}
        
        </channel>
    </rss>
    
    {/exp:rss:feed}
  • #2 / Mar 26, 2012 3:39pm

    Andrew Fairlie

    126 posts

    Hi Jules,

    Could you just confirm that for the “Courtship” the status is in fact “open”?

  • #3 / Mar 26, 2012 8:17pm

    Jules van Schaijik

    210 posts

    Hi Andrew,

    I assume you are referring to the entries in the courtship channel?  Their status is open.

  • #4 / Mar 27, 2012 4:09pm

    Shane Eckert

    7174 posts

    Hey Jules,

    I am sorry to hear you are running into this problem.

    Can you disable Dynamic Start to test?

    Please let me know if that makes a difference.

    Cheers,

  • #5 / Mar 27, 2012 5:55pm

    Jules van Schaijik

    210 posts

    Hi Shane,

    I tried both dynamic_start=“off” and dynamic_start=“no” (which should it be?), but it didn’t make any difference.

    Jules

  • #6 / Mar 30, 2012 6:09pm

    Shane Eckert

    7174 posts

    Hello Jules,

    The default is no, so just removing it will set it to no.

    I think it’s time to get in there and see what’s going on.

    Please be on the lookout for an email from EllisLab.

    Cheers,

  • #7 / Apr 30, 2012 5:40pm

    Kevin Smith

    4784 posts

    Just posting a note here to let onlookers know that we’re working with Jules privately on this for the time being. I’ll post an update back here once we have something to share!

  • #8 / Apr 30, 2012 6:05pm

    Kevin Smith

    4784 posts

    Ready for the solution? 😊

    It was the dreaded

    dynamic="no"

    !!! Once I added that to your Channel Entries tag, everything worked just fine!

  • #9 / Apr 30, 2012 7:09pm

    Jules van Schaijik

    210 posts

    Thanks a million, Kevin.

    I still wonder, though, why dynamic=“no” had to be added?
    And why it worked fine for the home and members channel, without that, but not for the courtship channel?

  • #10 / May 01, 2012 3:20pm

    Shane Eckert

    7174 posts

    Hello Jules,

    The explanation is here. Dynamic depends on the URL, so if you had a channel in the URL that you were also pulling content from, you would need dynamic off.

    Does that make sense?

    Cheers,

  • #11 / May 01, 2012 4:39pm

    Jules van Schaijik

    210 posts

    Thanks Shane.
    I think I understand the purpose of dynamic=“no”. What I don’t understand is why the template works fine for these two urls:

    feed://www.thepersonalistproject.org/rss/home
    feed://www.thepersonalistproject.org/rss/members

    but not with this one:

    feed://www.thepersonalistproject.org/rss/courtship

  • #12 / May 02, 2012 2:57pm

    Shane Eckert

    7174 posts

    Hi Jules,

    You are right. This makes no sense. But good news.

    I did some poking around and I found that you have a category with the same exact url title of “courtship”. That would totally yield the results we see.

    Moving forward, it’s generally best practice to use dynamic=“no” if a template is making manual use of segment information.

    Does that make sense?

    Cheers,

  • #13 / May 02, 2012 8:56pm

    Jules van Schaijik

    210 posts

    I see it now. Thanks so much for clearing that up. Now there’s at least a chance I will avoid making that same mistake in the future.

  • #14 / May 03, 2012 1:07am

    Shane Eckert

    7174 posts

    Hey Jules,

    No worries! This happens pretty often.

    If you need anything else, please just let me know by opening a new thread.

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases