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/Atom issue

November 08, 2010 10:48am

Subscribe [3]
  • #1 / Nov 08, 2010 10:48am

    NCangler

    26 posts

    I just noticed my Atom & RSS feeds aren’t working.  This was probably since I did the 1.6.x to 2.1 upgrade a while back.  I updated the code to use the new “preload_replace” command and it still doesn’t work.  Here’s the error I am receiving for the RSS template (similar error when using the Atom template):

    Reference to undeclared namespace prefix: ‘ee’.
    Line: 2 Character: 17

    <ee:last_update>1289224626</ee:last_update>

    Here is the code:

    {preload_replace:master_channel_name="credepicblog"}
    {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><![CDATA[{channel_name}]]></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="10" dynamic_start="on" disable="member_data|pagination"}
        <item>
          <title><![CDATA[{title}]]></title>
          <link>{title_permalink=news/full'}</link>
          <guid>{title_permalink='news/full'}#When:{gmt_entry_date format="%H:%i:%sZ"}</guid>
          <description><![CDATA[{summary}]]></description>
          <dc:subject><![CDATA[{categories backspace="1"}{category_name}, {/categories}]]></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}

    The url is http://www.credencepictures.com/news/rss_2.0  I am running EE 2.1 build 20100720

    Thanks for your help.

  • #2 / Nov 08, 2010 4:28pm

    Ingmar

    29245 posts

    Make sure you template type is actually set to “RSS”.

  • #3 / Nov 08, 2010 5:47pm

    NCangler

    26 posts

    That was it.  Funny thing is, I found this same issue a month or so ago on another site that was upgraded and forgot to check it this time.  Guess I need a memory upgrade for my brain 😊

    Thanks for the help!  You ROCK!

  • #4 / Nov 09, 2010 9:22am

    Sue Crocker

    26054 posts

    Glad Ingmar was able to help. Don’t hesitate to post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases