{"id":2105,"date":"2022-08-30T15:22:05","date_gmt":"2022-08-30T15:22:05","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/01\/02\/rssfeedfetch-feedview-the-original-page-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:22:05","modified_gmt":"2022-08-30T15:22:05","slug":"rssfeedfetch-feedview-the-original-page-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/rssfeedfetch-feedview-the-original-page-collection-of-common-programming-errors\/","title":{"rendered":"rss,feed,fetch-feedView the original page-Collection of common programming errors"},"content":{"rendered":"<h3>UnKnown Error<\/h3>\n<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/8a8f1af5a7f4065f27919215aa7ff034?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAmitK<br \/>\niphone xcode uitableview rss 2013-12-31 20:43:09<br \/>\nThis is what Im trying to do: Get a xml from apple&#8217;s RSS containing info about apps, parse it, and display the apps in an UITable view.The problem is that after the &#8220;reloadData()&#8221; it takes about 5 seconds until the info displayed. Also, the app always crashes the first time it run after opening the project.here is the project: http:\/\/www.mediafire.com\/?2dn6g916bh9uf4v<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/93192011db9e6c328c5a6e3e7462947d?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAVINASH KANNA<br \/>\nios xcode rss feeds 2013-12-26 17:18:51<br \/>\nHi can anyone help me out from this error:while rss feed parsing.it showing null in tableview cell and crashing the app as well.Could not parse RFC822 date: &#8220;Mon, 27 Aug 2012 06:00:01 PT&#8221; Possibly invalid format.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/2e76f47489020607d0548a44322425db?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ndave.c<br \/>\njava android xml rss 2013-12-19 13:36:51<br \/>\nI built an application whose function is to receive RSS updates to the device and show as output. The problem is that the app crashes every time when it begins to read the file ..BTW, the file comes from a website.if (eventType == XmlPullParser.START_TAG)it&#8217;s crashes when it comes to this row&#8230; anybody idea?Here is the LogCat output:04-05 16:47:47.320: D\/dalvikvm(352): GC_EXTERNAL_ALLOC freed 47K, 53% free 2547K\/5379K, external 1957K\/2137K, paused 144ms 04-05 16:47:47.917: D\/dalvikvm(352): GC_E<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/49307a9e3c1add63730fb4d8f3bd911a?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nBradrob<br \/>\niphone xcode parsing exception rss 2013-12-19 12:39:59<br \/>\nI am having a problem with the search facility in my app and i have noticed that some postings on here are saying that there is a problem with the for loop of my code which you can see at the link below from a previous posting.Iphone Programming XML Parser NSMutableArrayThis is the comment from another person with the same problem and i would just like to know if the problem is the same for my project, &#8220;The objects in your search array are NSArray objects, this means that they do not respond to<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/5959f1e37170aa6d5907be0310f5df93?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser640707<br \/>\nrss 2013-12-19 12:19:05<br \/>\niHaving created a windows 8 rss reader from one of microsoft&#8217;s tutorials I just wondered if anyone knows why it will read some rss address&#8217;s but not others.An example would be this address just causes the reader to crash atHere webClient.DownloadStringAsync(new System.Uri(&#8220;http:\/\/hatrafficinfo.dft.gov.uk\/feeds\/rss\/UnplannedEvents.xml. &#8220;)); }http:\/\/hatrafficinfo.dft.gov.uk\/feeds\/rss\/UnplannedEvents.xml.Where as this address it will read.http:\/\/feeds.bbci.co.uk\/sport\/0\/football\/rss.xml?edition=ukT<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/64b4a8e8c13ad4aa81dedc1ed2b7f659?s=32&amp;d=identicon&amp;r=PG&amp;f=1\" \/><br \/>\npaddysal<br \/>\nandroid rss sax saxparser 2013-12-19 5:12:52<br \/>\nThis question already has an answer here:android.os.NetworkOnMainThreadException13 answersI am trying to implement very simple RSS parser using this RSS parsing library According to the implementation all i have to do is paste the sample code provided, once I import the code as a library.Steps I have taken:Download the zip file from the link provided above. Create new project from existing code Add the added project as a library to my project. Add the example code from the link provided above an<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/0dbf615e89254e9dfdb8ae7e5ef2fc4a?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nZero<br \/>\nandroid rss 2013-12-18 5:36:23<br \/>\nThis question already has an answer here:android.os.NetworkOnMainThreadException13 answersI am working on a simple RSS Reader for Android. This is the code I have:package com.example.rssreader;public class MainActivity extends ListActivity {List headlines; List links; static final int DIALOG_ERROR_CONNECTION = 1;@Override public void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.activity_main);if (!isOnline(this)) {showDialog(DIALOG_ERROR_CONNECT<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/cc21bd143a63dbea51c2caa5f1e8599b?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nBenjamin<br \/>\nandroid rss 2013-12-17 23:08:53<br \/>\nI created a simple app to display nasa&#8217;s image of the day from its rss feed. now i created a refresh button that would show a progress dialog box and then refresh the page. it works fine when clicked for the first time but the app stops when it is clicked the next time.the method refreshform is called when the button is clicked. this the thread created (in onCreate method and is named first)&#8230;.private void refreshForm(){dialog = ProgressDialog.show(this,&#8221;Loading&#8221;,&#8221;Loading the image of the Day&#8221;)<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/d4b54f20961e060c8bf09ddd72bac292?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMatthewMartin<br \/>\nrss blog kindle rss-reader 2013-12-17 18:25:09<br \/>\nMy favorite blog reading applications are ajax heavy sites that are likely to crash the &#8220;experimental&#8221; browser on the Kindle.What web site can I use to aggregate my favorite RSS feeds and get an acceptable layout and minimize browser crashes.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/52a9e964ca68cccead7175fe8ceb84dc?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nmenu_on_top<br \/>\nandroid rss android-asynctask 2013-12-16 17:12:32<br \/>\ni have an RSS Reader.My problem is that every time the wi-fi or 3g is disabled,my app crashes.This is my code:private void loadFeed(AsyncTask&lt;Void, Void, Void&gt; asyncTask){try{ BaseFeedParser parser = new BaseFeedParser();messages = parser.parse();}catch (Exception t){Log.e(&#8220;OSFP.News_notloading&#8221;,t.getMessage(),t);Toast.makeText(this, t.getMessage(), Toast.LENGTH_SHORT).show();finish();}}private void displayRss(){ArrayList&lt;HashMap&lt;String, String&gt;&gt; List_nea = new ArrayList&lt;Has<\/li>\n<\/ul>\n<ul>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/vCAom.jpg?s=32&amp;g=1\" \/><br \/>\nChuck Burgess<br \/>\napache cakephp rss crash feed 2013-12-12 20:31:44<br \/>\nWhen I put Router::parseExtensions(&#8216;rss&#8217;); to routes.php, Apache crashes. So i can&#8217;t make rss feed. Any ideas ?here is a screenshot[Sat Jan 05 13:02:35.131540 2013] [mpm_winnt:notice] [pid 1576:tid 252] AH00428: Parent: child process exited with status 3221225477 &#8212; Restarting. [Sat Jan 05 13:02:35.686942 2013] [ssl:warn] [pid 1576:tid 252] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache] [Sat Jan 05 13:02:35.733742 2013] [mpm_winnt:notice] [pid 1576:tid 252] AH00455: Apac<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/2b6001a08d86db9a858ab55989b5b367?s=32&amp;d=identicon&amp;r=PG&amp;f=1\" \/><br \/>\nuser2701479<br \/>\ncrash modal-dialog feed facebook-ios-sdk 2013-12-8 13:21:18<br \/>\nUsing Facebook iOS SDK 3.7, Xcode 4.6, iOS simulator 6.0.Here is my code:NSLog (@&#8221;opening session&#8221;); [FBSession openActiveSessionWithPublishPermissions: @[@&#8221;publish_actions&#8221;]defaultAudience: FBSessionDefaultAudienceFriendsallowLoginUI: YEScompletionHandler: nil]; NSLog (@&#8221;open active session completed&#8221;); if ([FBSession activeSession].isOpen) {NSLog (@&#8221;initiating feed dialog&#8221;);[FBWebDialogs presentFeedDialogModallyWithSession: nilparameters: nilhandler: nil]; }When executed, it crashes with the f<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/fa8d12042cd7c458bcb9bb56c4c0112c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser_2000<br \/>\nrss feed scrapy feedparser 2013-12-4 17:47:47<br \/>\nI&#8217;m trying to parse RSS feeds from a url using feedparser in python.&gt;&gt;&gt; import feedparser &gt;&gt;&gt; d = feedparser.parse(&#8216;http:\/\/www.shop.inonit.in\/RSSFeedDetails.aspx?PID=801&#8217;) &gt;&gt;&gt; d {&#8216;feed&#8217;: {&#8216;summary&#8217;: u'&lt;span&gt;&lt;h1&gt;Server Error in \\&#8217;\/mobile\\&#8217; Application.&lt;hr color=&#8221;silver&#8221; size=&#8221;1&#8243; width=&#8221;100%&#8221; \/&gt;&lt;\/h1&gt;\\n\\n &lt;h2&gt; &lt;i&gt;Attempted to divide by zero.&lt;\/i&gt; &lt;\/h2&gt;&lt;\/span&gt;\\n\\n &lt;font face=&#8221;Arial, Helvetica,<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/e1371ed5912d3c92b8eedff53d831772?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\naccountDevelopment<br \/>\nxcode facebook json message feed 2013-11-14 5:49:57<br \/>\nI need your help. I can parse correctly the graph.facebook.com\/me\/feed JSON, but i can&#8217;t do it with graph.facebook.com\/me\/conversations. Can you please help me? this is how i get the last message from feedNSDictionary* json = [NSJSONSerialization JSONObjectWithData:responseDataoptions:kNilOptionserror:nil];NSLog(@&#8221;json %@&#8221;, json);NSDictionary *items = [json objectForKey:@&#8221;data&#8221;];\/\/ NSDictionary *item = [items objectAtIndex:1];NSLog(@&#8221;items %@&#8221;, items);NSMutableArray *story = [NSMutableArray arra<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/ea4145289649a6fa1a9ebdaabc52dab7?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJordan Fitz<br \/>\njavascript twitter widget twitter-api feed 2013-10-21 20:38:10<br \/>\nhumans.I had a custom Twitter feed widget that was working fine until the API update. The code was like this:&lt;ul id=&#8221;twitter_update_list&#8221;&gt;&lt;li&gt;Twitter feed loading&lt;\/li&gt;&lt;\/ul&gt; &lt;script type=&#8221;text\/javascript&#8221; src=&#8221;http:\/\/twitter.com\/javascripts\/blogger.js&#8221;&gt;&lt;\/script&gt; &lt;script type=&#8221;text\/javascript&#8221; src=&#8221;https:\/\/api.twitter.com\/1.1\/statuses\/user_timeline\/username.json?callback=twitterCallback2&amp;amp;count=4&#8243;&gt;&lt;\/script&gt;Now that they have updated to API 1.1<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/affeccd3b26ccd76572263880ce48465?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser667193<br \/>\njavascript jquery youtube feed 2013-10-20 21:16:02<br \/>\nCan someone please tell me how to get two times #videoContainer on the same page:&lt;!DOCTYPE html PUBLIC &#8220;-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN&#8221; &#8220;http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd&#8221;&gt; &lt;html xmlns=&#8221;http:\/\/www.w3.org\/1999\/xhtml&#8221; xmlns:fb=&#8221;http:\/\/www.facebook.com\/2008\/fbml&#8221;&gt; &lt;head&gt; &lt;title&gt;My Videos&lt;\/title&gt; &lt;script type=&#8221;text\/javascript&#8221; src=&#8221;http:\/\/ajax.googleapis.com\/ajax\/libs\/swfobject\/2.2\/swfobject.js&#8221;&gt;&lt;\/script&gt; &lt;script type=&#8221;text\/j<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/33d87123d88c3805d4b0400f811447a2?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nHidde<br \/>\nxml html5 rss local-storage feed 2013-10-19 23:39:37<br \/>\nI need to read XML data and show this in HTML and at the same time save it in localStorage.When the user is ofline I need show the content using localStorage.(NOTE: without PHP) (NOTE: when user have internet read and show new items )Does anyone have a good tutorial or any helpful website?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/01be68ca0f4f9d4b6788d54834a166f3?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAlecRust<br \/>\nrss feed fetch-feed 2013-9-21 14:43:15<br \/>\nI&#8217;m using this script in two places on the same page to output some RSS feeds:&lt;?phpinclude_once(ABSPATH . WPINC . &#8216;\/feed.php&#8217;);$rss = fetch_feed(&#8216;https:\/\/api.twitter.com\/1\/statuses\/user_timeline.rss?screen_name=BarackObama&#8217;);$maxitems = $rss-&gt;get_item_quantity(3);$rss_items = $rss-&gt;get_items(0, $maxitems); ?&gt; &lt;?php if ($maxitems == 0) echo &#8216;&lt;p class=&#8221;alert&#8221;&gt;No activity to display.&lt;\/p&gt;&#8217;; ?&gt; &lt;ul&gt; &lt;?phpif (!$maxitems == 0)foreach ( $rss_items as $item ) : ?&gt;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/ab89ce39f47b327f1c85e4019e865a71?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nRarst<br \/>\nerrors php feed 2013-9-21 14:26:53<br \/>\nI have PHP errors redirected to log file. Only for WP installation so this definitely doesn&#8217;t come from somewhere else. This is what started to come up recently (this is all of them, not cut):[22-Sep-2010 14:30:41] junk after document element at line 2, column 0 [22-Sep-2010 16:17:08] junk after document element at line 2, column 0 [22-Sep-2010 17:19:42] junk after document element at line 2, column 0 [22-Sep-2010 18:30:19] junk after document element at line 2, column 0 [22-Sep-2010 20:19:23] j<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/733a692d4414230e20c6d0f8d8cc7c24?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMartin Trigaux<br \/>\ncomments feed 2013-9-21 12:21:41<br \/>\nI used to have a rss comment feed at the url \/comments\/feed which doesn&#8217;t work anymore.I checked the feed on feedvalidator and I&#8217;ve an errorline 111, column 29: Undefined named entity: ndash [help]The line in question is comment where the content is&lt;guid isPermaLink=&#8221;false&#8221;&gt;http:\/\/mart-e.be\/?p=1694#comment-9711&lt;\/guid&gt; &lt;description&gt;Ou mettre des &amp;ndash; \u00e0 la place des &#8211; Mais oui la solution de rcommande fonctionne bien :)&lt;\/description&gt;In the context, it is normal that<\/li>\n<\/ul>\n<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/01be68ca0f4f9d4b6788d54834a166f3?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAlecRust<br \/>\nrss feed fetch-feed 2013-9-21 14:43:15<br \/>\nI&#8217;m using this script in two places on the same page to output some RSS feeds:&lt;?phpinclude_once(ABSPATH . WPINC . &#8216;\/feed.php&#8217;);$rss = fetch_feed(&#8216;https:\/\/api.twitter.com\/1\/statuses\/user_timeline.rss?screen_name=BarackObama&#8217;);$maxitems = $rss-&gt;get_item_quantity(3);$rss_items = $rss-&gt;get_items(0, $maxitems); ?&gt; &lt;?php if ($maxitems == 0) echo &#8216;&lt;p class=&#8221;alert&#8221;&gt;No activity to display.&lt;\/p&gt;&#8217;; ?&gt; &lt;ul&gt; &lt;?phpif (!$maxitems == 0)foreach ( $rss_items as $item ) : ?&gt;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/b0a731aac37bd9cb9073a5da0aafd07c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nSean<br \/>\nfetch-feed 2013-9-21 14:05:23<br \/>\nI am using fetch_feed and basically have the same code as the great example provided here but I am creating new posts from the content instead of displaying it afterwards. The errors I am seeing are:Warning: include_once(ABSPATHWPINC\/feed.php) [function.include-once]: failed to open stream: No such file or directory in \/home\/user\/public_html\/test\/wp-content\/plugins\/rss-plugin\/rss-plugin-scan.php on line 6Warning: include_once() [function.include]: Failed opening &#8216;ABSPATHWPINC\/feed.php&#8217; for incl<\/li>\n<\/ul>\n<p id=\"rop\"><small>Originally posted 2014-01-02 10:48:56. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>UnKnown Error AmitK iphone xcode uitableview rss 2013-12-31 20:43:09 This is what Im trying to do: Get a xml from apple&#8217;s RSS containing info about apps, parse it, and display the apps in an UITable view.The problem is that after the &#8220;reloadData()&#8221; it takes about 5 seconds until the info displayed. Also, the app always [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2105","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2105","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2105"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2105\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}