Fixed Missing Zend File?

Kevin

Well-known member
On a fresh 1.1.0 RC1 install I am trying to consume this RSS feed...

http://feeds.feedburner.com/Billboardbiz-News?format=xml

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

Code:
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. :)
 
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:
Code:
<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.
 
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).
 
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).
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:
 
Top Bottom