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 keeps giving an error

November 08, 2010 10:32pm

Subscribe [5]
  • #1 / Nov 08, 2010 10:32pm

    28Bytes

    192 posts

    I have tried a few different templates and can’t seem to get any rss feeds working.

    {exp:rss:feed channel="blog"}
    <?xml version="1.0" encoding="UTF-8"?>
    <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}{site_name}{/exp:xml_encode}</title>
        <link>{channel_url}</link>
        <description>{channel_description}</description>
        <dc:language>{channel_language}</dc:language>
        <dc:creator>{site_name}</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="blog" limit="10" dynamic_start="on" disable="member_data"}
        <item>
          <title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
          <link>{title_permalink=/post}</link>
          <guid>{comment_url_title_auto_path}#When:{gmt_entry_date format="%H:%i:%sZ"}</guid>
          <description><![CDATA[{extended}]]></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}

    Is there any ideas why I just keep getting the XML Parsing Error: no element found Line Number 1, Column 1.

    Thanks in advance.

  • #2 / Nov 09, 2010 4:26am

    Ingmar

    29245 posts

    Do you’ve got a link to the feed? Also, have you made sure that the template type is correctly set to “RSS”?

  • #3 / Nov 09, 2010 9:51am

    28Bytes

    192 posts

    Yes it is set to RSS and here is a link http://www.simplestorageusa.com/rss

  • #4 / Nov 09, 2010 5:03pm

    Ingmar

    29245 posts

    Not getting anything, just an empty page. Is that expected?

  • #5 / Nov 09, 2010 5:07pm

    28Bytes

    192 posts

    I am getting this using firefox.

    XML Parsing Error: no element found
    Location: http://www.simplestorageusa.com/rss
    Line Number 1, Column 1:

  • #6 / Nov 10, 2010 3:23am

    John Henry Donovan

    12339 posts

    PenGwnFistOfFury,

    What version and build of EE are you using?
    Are you using any add-ons?

    Can you create a new blank regular template and add the following

    <ul>
    {exp:channel:entries channel="blog" limit="10" dynamic="no"}
    <li>{title}</li>
    {/exp:channel:entries}
    </ul>

    Do entries appear for it?

  • #7 / Nov 10, 2010 10:12am

    28Bytes

    192 posts

    ExpressionEngine v2.1.1 - Build: 20101020

    Here are all my 3rd party add-ons that are currently being used.

    Structure
    Wygwam
    Matrix
    Low Reorder
    SEO
    Anti-Pink
    Morphine
    ED Imageresizer

  • #8 / Nov 10, 2010 10:13am

    28Bytes

    192 posts

    http://www.simplestorageusa.com/rss/test

    new template and entries do appear.

  • #9 / Nov 11, 2010 4:36am

    John Henry Donovan

    12339 posts

    PenGwnFistOfFury,

    In your RSS template can you add the entry_id parameter of that one entry you have to the exp:channel:entries tag and see if that displays?

  • #10 / Nov 11, 2010 11:08am

    28Bytes

    192 posts

    This is what I did still no dice.

    {exp:rss:feed channel="blog"}
    <?xml version="1.0" encoding="UTF-8"?>
    <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}{site_name}{/exp:xml_encode}</title>
        <link>{channel_url}</link>
        <description>{channel_description}</description>
        <dc:language>{channel_language}</dc:language>
        <dc:creator>{site_name}</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="blog" entry_id="55" limit="10" dynamic_start="on" disable="member_data"}
        <item>
          <title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
          <link>{title_permalink=/post}</link>
          <guid>{comment_url_title_auto_path}#When:{gmt_entry_date format="%H:%i:%sZ"}</guid>
          <description><![CDATA[{extended}]]></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}
  • #11 / Nov 11, 2010 6:37pm

    Ingmar

    29245 posts

    In your {exp:channel:entries} you are limiting EE to entry_id=55 only. Is that on purpose?

  • #12 / Nov 12, 2010 11:30am

    28Bytes

    192 posts

    I did that because JHD asked me to put that in there to see if it would show up.

  • #13 / Nov 12, 2010 5:05pm

    Sue Crocker

    26054 posts

    Hi, Brandon. Do you have a field called extended? Is there anything in that field?

  • #14 / Nov 12, 2010 5:15pm

    28Bytes

    192 posts

    No I do not have that field at all.

  • #15 / Nov 13, 2010 6:33pm

    Greg Salt

    3988 posts

    Hi Brandon,

    Just to be clear this is a template group called ‘rss’ and this code is on the index template? If so, do you have an .htaccess file to remove index.php from the URL? That error that you are receiving is I believe specific to Firefox that is generated when Firefox encounters an empty RSS feed and had no special meaning other than that.

    Cheers

    Greg

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

ExpressionEngine News!

#eecms, #events, #releases