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.

Invalid RSS feed since 2.4

February 09, 2012 2:21am

Subscribe [6]
  • #1 / Feb 09, 2012 2:21am

    Sean Delaney

    64 posts

    I’ve noticed that my RSS is invalid after updating to 2.4.

    I get the following error message:

    This page contains the following errors:
    
    error on line 2 at column 18: attributes construct error
    Below is a rendering of the page up to the first error.

    If I view the source I get:

    <XXML version="1.0" encoding="utf-8"/XXML>
    <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/">
    ...
    ...
    ...
    ...
    </rss>

    The feed looks fine except the XXML ?

  • #2 / Feb 09, 2012 3:33am

    Andrew Fairlie

    126 posts

    What template are you using for your RSS?

  • #3 / Feb 09, 2012 3:54am

    Sean Delaney

    64 posts

    Template type is set to RSS if this is what you mean?

  • #4 / Feb 09, 2012 4:12am

    Andrew Fairlie

    126 posts

    That helps, but also could you paste your template file itself here wrapped in code tags please?

  • #5 / Feb 10, 2012 3:39am

    Standard RSS template taken from examples on ExpressionEngine Wiki/User Guide, version 2.4

    {preload_replace:master_channel_name="blog_post"}
    {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}" dynamic_start="on" disable="member_data|pagination"}
        <item>
          <title><![CDATA[{title}]]></title>
          <link>{title_permalink='blog'}</link>
          <guid>{title_permalink='blog'}#When:{gmt_entry_date format="%H:%i:%sZ"}</guid>
          <description><![CDATA[{contents}]]></description>
          <dc:subject><![CDATA[{alternative_title}]]></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}
  • #6 / Feb 10, 2012 12:32pm

    Shane Eckert

    7174 posts

    Hello Sean,

    I pasted your example into my 2.4 install and it works great.

    Do you have any add-ons that deal with RSS?

    You might also enable debugging for a little more information.

    To turn debugging on please go to your Control Panel and navigate to Admin->System Administration-> Output and Debugging. Please set the last two settings, which are “Display Output Profiler?” and “Display Template Debugging?”, to yes.

    I hope this helps, please let me know what you find.

    Cheers,

  • #7 / Feb 12, 2012 1:48pm

    Sean Delaney

    64 posts

    Thanks Shane.  I’ll have a look at my add-ons and try and find the culprit!

  • #8 / Feb 13, 2012 5:55pm

    Shane Eckert

    7174 posts

    Hello Sean,

    Great! Let me know what you find!

    Cheers,

  • #9 / Mar 29, 2012 3:39pm

    Derek Hogue

    316 posts

    Just ran into the exact same problem here after upgrading to EE 2.4. Removing the XML declaration line fixes the problem.

    Something is replacing “?” with “X”, and “xml” is being uppercased.

    No add-ons which do anything with RSS.

    Did you find the culprit in your case Sean?

  • #10 / Apr 02, 2012 5:45pm

    Shane Eckert

    7174 posts

    Hey Derek Hogue and Sean.

    What did you find Sean? Anything to report?

    Cheers,

  • #11 / Apr 16, 2012 9:45am

    Derek Hogue

    316 posts

    Just encountered this again on a brand-new EE 2.4 site:

    <XXML version="1.0" encoding="utf-8"/XXML>

    EE 2.4, Build 20120123
    The template type is RSS, and I don’t have PHP enabled, nor is the template cached
    PHP 5.3.5 (running as FastCGI)

  • #12 / Apr 16, 2012 10:02am

    Derek Hogue

    316 posts

    Hold the phone - it looks like I can track both of my cases directly to the Minimee add-on, specifically with it’s “HTML Minify” option enabled.

  • #13 / Apr 16, 2012 11:31am

    johndwells

    94 posts

    Hi Derek,

    Sorry to hear Minimee is borking your RSS! Let’s continue this conversation on the devot-ee forum post that you’ve started.

    Best,
    John

  • #14 / Apr 18, 2012 2:26pm

    Shane Eckert

    7174 posts

    Hey Sean Delaney,

    How are things? Can I be of any more help?

    Cheers,

  • #15 / Apr 18, 2012 3:15pm

    Sean Delaney

    64 posts

    I just updated Minimee to 1.1.7 and that fixed the issue.  RSS is working again.

    Thanks for all the support guys!

    Sean

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

ExpressionEngine News!

#eecms, #events, #releases