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 2.0 feed not working since updated to EE 2.1.0

July 27, 2010 9:13am

Subscribe [4]
  • #1 / Jul 27, 2010 9:13am

    James Mattison

    8 posts

    This question may be related to a resolved thread.

    This has been working fine up until I upgraded to EE 2.1.0. Can anyone take a look and see if I’m missing something obvious.

    Link to RSS feed:
    http://www.jamesmattison.co.uk/index.php?/blog/rss_2.0/

    {preload_replace:master_channel_name="blog"}
    {exp:rss:feed channel="{master_channel_name}"}
    
    <?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/">
    
        <channel>
        
        <title>{exp:xml_encode}{channel_name}{/exp:xml_encode}</title>
        <link>{channel_url}</link>
        <description>{channel_description}</description>
        <dc:language>{channel_language}</dc:language>
        <dc:creator>{email}</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="{master_channel_name}" limit="20" rdf="off" dynamic_start="on" disable="member_data|trackbacks"}
        <item>
          <title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
          <link>{title_permalink=blog/blog_content}</link>
          <guid>{title_permalink=blog/blog_content}#When:{gmt_entry_date format="%H:%i:%sZ"}</guid>
          <description>{exp:xml_encode}{summary}{/exp:xml_encode}</description>
          <dc:subject>{exp:xml_encode}{categories backspace="1"}{category_name}, {/categories}{/exp:xml_encode}</dc:subject>
          <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 / Jul 27, 2010 6:52pm

    Brandon Jones

    5500 posts

    James, I’m just seeing a standard webpage there, not feed XML.

  • #3 / Jul 28, 2010 4:20am

    James Mattison

    8 posts

    yes, that’s the problem! it seems to be defaulting back to my /blog/index page rather than loading the RSS feed.

    The template is properly set up as an RSS feed page in the template so I’m not sure what I’m doing incorrectly.

  • #4 / Jul 28, 2010 4:27am

    James Mattison

    8 posts

    Preferences:
    Template Name: rss_2.0
    Type: RSS Page
    Enable Caching: No
    Refresh Interval: 300
    Allow PHP: No
    PHP Parsing Stage: Output

    Access:
    All member groups set to YES
    Enable HTTP auth: No

  • #5 / Jul 28, 2010 5:14am

    John Henry Donovan

    12339 posts

    James,

    This works without the Query String

    http://www.jamesmattison.co.uk/index.php/blog/rss_2.0

    In fact your site seems to work without query stings altogether. you might consider turning it off. Was it on for a reason?

  • #6 / Jul 28, 2010 6:57am

    James Mattison

    8 posts

    Thanks John, that has solved the RSS situation!

    The only reason I can think of that I ‘might’ have turned ‘Force Query String’ to yes was when I was trying to remove the index.php part of the URL following the EE tutorial. I never managed to get that to work properly so I went back to the default settings and perhaps missed some of the items I’d changed.

    No I have a new problem to solve - a lot of my static images and links were placed with the full URL, including the query string… now I either have to rename all the links or find a clever method to point an image tag to the default upload directory.

  • #7 / Jul 28, 2010 4:58pm

    Ingmar

    29245 posts

    a lot of my static images and links were placed with the full URL, including the query string… now I either have to rename all the links

    Perhaps a search & replace might work? A server-side rewrite rule could probably handle this, too.

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

ExpressionEngine News!

#eecms, #events, #releases