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 Always Date Shows 2009

April 06, 2012 7:53am

Subscribe [2]
  • #1 / Apr 06, 2012 7:53am

    DaveHamilton

    22 posts

    Our RSS Feeds (all of them for one site, but other sites in MSM are NOT affected by this) show Fri, 17 Jul 2009 17:23:15 GMT as the most recently modified date. All the individual items inside exp:weblog:entries display their dates correctly, but the HTTP header and the “date” in the exp:rss:feed section is July 2009. As you might guess, this is causing problems. 😉

    A few things I noticed:

    It appears to be impacting “RSS Page” type files only.

    If I go into template preferences and set a template to “Static” I get the following in Last-Modified HTTP Header (and any ‘date’ calls inside the template):

    Expires: Mon, 26 Jul 1997 05:00:00 GMT
    Last-Modified: Fri, 06 Apr 2012 02:06:56 GMT

    But if I set it to “RSS Page” it’s this:

    Expires: Fri, 17 Jul 2009 18:23:15 GMT
    Last-Modified: Fri, 17 Jul 2009 17:23:15 GMT

    Also, f I go into Admin ›  System Preferences ›  Output and Debugging Preferences and disable “Generate HTTP Page Headers?” that removes the Last-Modified for all pages *except* for those marked as “RSS Page” (I assume that’s expected behavior, but I’ll state it here nonetheless).

    Inside the template we have

    {exp:rss:feed weblog="tmo_articles"}
    [...]
      {date format="{DATE_RSS}”}</pubDate>

    That, too, displays this 17 Jul 2009 date if in “RSS Page” mode, and a more current/correct 2012 date if in “Static” mode.

    As I said, we have two sites that we use with MSM inside this one EE install. This only happens on one of them (site #1), so I know it’s something about our data, but I can’t for the life of me figure out where to look. 😉

    Any thoughts? This is, as I said, causing some significant problems.

    Thanks!
    -Dave

  • #2 / Apr 06, 2012 6:00pm

    DaveHamilton

    22 posts

    We found the issue. Turns out we had a ‘status=’ line in our {exp:weblog:entries} tag but NOT in our {exp:rss:feed} tag. That made the weblog entries all render properly, but since most of what we do is custom statuses, the data for the feed itself was as old as the last “Open” status article, which was 2009 (of course). Leaving this here in hopes that someone else having this problem will find this solution useful.

  • #3 / Apr 09, 2012 10:24am

    Dan Decker

    7338 posts

    Hi Dave,

    I’m glad you were able to track this down! Thank you for sharing the solution, that may help others along the way.

    If you need any thing later on, just let us know in a new thread.

    Cheers!

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

ExpressionEngine News!

#eecms, #events, #releases