1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed Missing Zend File?

Discussion in 'Resolved Bug Reports' started by Kevin, Nov 21, 2011.

  1. Kevin

    Kevin Well-Known Member

    On a fresh 1.1.0 RC1 install I am trying to consume this RSS feed...


    ... and when I try to preview it the following error is returned:

    Error Info
    Zend_Feed_Exception: Could not load date due to unrecognised format (should follow RFC 822 or 2822):Missing locale file '/home/{removed}/public_html/library/Zend/Locale/Data/en_US.xml' for 'en_US' locale. - library/Zend/Feed/Reader/Feed/Rss.php:243
    Stack Trace
    #0 /home/{removed}/public_html/library/XenForo/Model/Feed.php(176): Zend_Feed_Reader_Feed_Rss->getDateModified()
    #1 /home/{removed}/public_html/library/XenForo/ControllerAdmin/Feed.php(56): XenForo_Model_Feed->getFeedData('http://feeds.fe...', NULL)
    #2 /home/{removed}/public_html/library/XenForo/FrontController.php(310): XenForo_ControllerAdmin_Feed->actionPreview()
    #3 /home/{removed}/public_html/library/XenForo/FrontController.php(132): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
    #4 /home/{removed}/public_html/admin.php(13): XenForo_FrontController->run()
    #5 {main}
    Request State
    array(3) {
      ["url"] => string(39) "http://{removed}.com/admin.php?feeds/save"
      ["_GET"] => array(1) {
        ["feeds/save"] => string(0) ""
      ["_POST"] => array(16) {
        ["url"] => string(56) "http://feeds.feedburner.com/Billboardbiz-News?format=xml"
        ["frequency"] => string(5) "14400"
        ["active"] => string(1) "1"
        ["user_id"] => string(2) "-1"
        ["username"] => string(8) "GGD Fans"
        ["node_id"] => string(2) "10"
        ["prefix_id"] => string(1) "0"
        ["title_template"] => string(0) ""
        ["message_template"] => string(52) "{content}
    [url="{link}"]Continue reading...[/url]"
        ["discussion_visible"] => string(1) "1"
        ["discussion_open"] => string(1) "1"
        ["_xfToken"] => string(53) "1,1321896103,1d20cd54f567bf9deb37b8767fecc56e14cd1b04"
        ["preview"] => string(18) "Preview Feed Entry"
        ["_xfRequestUri"] => string(20) "/admin.php?feeds/add"
        ["_xfNoRedirect"] => string(1) "1"
        ["_xfResponseType"] => string(4) "json"
    PS: Yes, I spot that this has come up before but in one of those threads it said to create a new report. :)
  2. Vincent

    Vincent Well-Known Member

    Mikey likes this.
  3. Kevin

    Kevin Well-Known Member

    Mikey and Vincent like this.
  4. Mike

    Mike XenForo Developer Staff Member

    It's a different issue to some degree. I'm not sure if that file would even necessarily help, as this feed's date isn't actually valid. Example:
    <pubDate>2011-11-21 11:12:00.0</pubDate>
    The RSS 2.0 spec says this should be an RFC 822 date: http://cyber.law.harvard.edu/rss/rss.html (eg, Sat, 07 Sep 2002 00:00:01 GMT).

    I will have to experiment to see if we put that locale file in if it even makes a difference.
  5. Kevin

    Kevin Well-Known Member

    It has been some time since I've torn apart the RSS specs; I notice in the error message from Zend that is says it has to be 822 or 2822 -- Any chance that the date in the feed is going by 2822?
  6. Mike

    Mike XenForo Developer Staff Member

    No, 2822 is just an updated 822.
  7. Mike

    Mike XenForo Developer Staff Member

    That is actually an invalid date format, but adding a few extra locale files has seemed to work around it. That said, there could be situations where others are needed, and frankly, I don't think I'm going to add them. There are about 9MB of locale XML files and I'm not shipping that with XF (we have stripped down ZF for that reason).
    principia likes this.
  8. Kevin

    Kevin Well-Known Member

    I haven't had caffeine yet today and, frankly, I'm distracted this week thinking about the extended long weekend coming up (for the US at least) & consuming vast amounts of turkey, so I'm not completely following the bouncing ball today...

    What does that mean in English? :coffee:
    Trombones13 and Dan like this.
  9. Kevin

    Kevin Well-Known Member

    Just tried again with 1.1.0 Gold and the feed in the first post is now able to be consumed. :cool:

Share This Page