title: (RSS Feed) Uncaught TypeError: Cannot read property 'title' of undefined
body: <p>I am trying to pick content from a Google Blogger Feed that is <a href="http://testdevchuli.blogspot.com/feeds/posts/default?redirect=false&amp;orderby=published&amp;alt=json-in-script&amp;callback=exeRSSpostReader&amp;max-results=500" rel="nofollow">http://testdevchuli.blogspot.com/feeds/posts/default?redirect=false&amp;orderby=published&amp;alt=json-in-script&amp;callback=exeRSSpostReader&amp;max-results=500</a> through using the JavaScript code at <a href="http://testdevchuli.blogspot.com/" rel="nofollow">http://testdevchuli.blogspot.com/</a> where you can see the error through Inspect Element section where there is only one red warning that is...</p>
  
  <pre><code>Uncaught TypeError: Cannot read property 'title' of undefined
  exeRSSpostReaderMain @ (index):1342
  exeRSSpostReader @ (index):1313
  (anonymous function) @ default?redirect=false&amp;orderby=published&amp;alt=json-in-script&amp;callback=exeRSSpostReader&amp;max-results=5…:2
  </code></pre>
  
  <p>So why its happening...??? Here is my full code from the upper link...</p>
  
  <pre><code>&lt;script&gt;
  function exeRSSpostReader(json){
  //&lt;![CDATA[ 
  //exeRSSpostReaderMain(json, DivisionId, Label, PostsVisible, ImageVisibility, SummaryVisibility, SummaryCharcters);
  //DivisionId: Id of the division in which the result should shown.
  //Label: Specific Label, Set &amp;quot;&amp;quot; for all posts.
  //PostsVisible: No of posts shown in final result.
  //ImageVisibility: Set true if you want thumbnails else set false.
  //SummaryVisibility: Set true if you want summary else set false.
  //SummaryCharcters: No of character shown in summary.
  exeRSSpostReaderMain(json, 'latest_post', '', 3, true, true, 150);
  exeRSSpostReaderMain(json, 'first_label', 'Dashain Song', 3, true, true, 150);
  exeRSSpostReaderMain(json, 'second_label', 'Modern Song', 6, true, true, 150);
  exeRSSpostReaderMain(json, 'third_label', 'Nepali Movie', 4, true, true, 150);
  exeRSSpostReaderMain(json, 'fourth_label', 'Nepali Movie', 4, true, true, 150);
  exeRSSpostReaderMain(json, 'fifth_label', 'Nepali Movie', 4, true, true, 150);
  exeRSSpostReaderMain(json, 'sixth_label', 'Nepali Movie', 5, true, true, 150);
  }
  //]]&gt;
  &lt;/script&gt;
  &lt;script style='text/javascript'&gt;
  //&lt;![CDATA[ 
  function exeRSSpostReaderMain(json, postArea, labelTxt, visiblePosts, imageVisible, summaryVisible, summaryChar) {
      var noOfTotalPosts  = 500;
      var outputDiv = postArea;
      var postLabel = labelTxt;
      var numPosts = json.feed.openSearch$totalResults.$t;
      var indexPosts = new Array();
      var pstChk = 0;
      var resultStr = '';
      var resultStr = '&lt;ul style="height:100%;background:#fff;"&gt;';
      for (var i = 0; i &lt; numPosts; ++i) {
          indexPosts[i] = i;
      }
      if (noOfTotalPosts &gt; numPosts) {
          noOfTotalPosts = numPosts;
      }
      for (i = 0; i &lt; noOfTotalPosts; ++i) {
          var entry = json.feed.entry[indexPosts[i]];
          var postTitle =  entry.title.$t;
          for (var k = 0; k &lt;  entry.link.length; k++) {
              if ( entry.link[k].rel == 'alternate') {
                  postURL =  entry.link[k].href;
                  break;
              }
          }
          if ("content" in entry) {
              var postContent = entry.content.$t
          }
          s = postContent;
          a = s.indexOf("&lt;img");
          b = s.indexOf("src=\"", a);
          c = s.indexOf("\"", b + 5);
          d = s.substr(b + 5, c - b - 5);
          if ((a != -1) &amp;&amp; (b != -1) &amp;&amp; (c != -1) &amp;&amp; (d != "")) {
              var imageUrl = d
          } else var imageUrl = 'https://lh6.googleusercontent.com/-cXUE46Oenac/U6rONTOCYuI/AAAAAAAAQTw/r_WI91TMLpk/s400/Images_no_image.gif';
          var img = '';
          if (imageVisible == true) {
          var img = '&lt;a href="'+postURL+'"&gt;&lt;img src="'+imageUrl+'" alt="' + postTitle + '" title="' + postTitle + '" /&gt;&lt;/a&gt;';
          }
          var labels = '';
          if (!entry.category){
              var noLabel = "No Label In This Post";
          } else {
              for(var lblNo = 0; lblNo &lt; entry.category.length; lblNo++){
                  labels += entry.category[lblNo].term + ', ';
              }
          }
          if (labels.search(postLabel) &gt;= 0 &amp;&amp; pstChk &lt; visiblePosts){
          resultStr += '&lt;li&gt;&lt;div id="exe_post_container"&gt;'  + img + '&lt;h2 &gt;&lt;a href="'+postURL+'"&gt;' + postTitle + '&lt;/h2&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;';
          var re = /&lt;\S[^&gt;]*&gt;/g;
          postContent = postContent.replace(re, "");
          if (summaryVisible == true) {
              if (postContent.length &lt; summaryChar) {
                  resultStr += postContent + '&lt;/p&gt;';
              } else {
                  postContent = postContent.substring(0, summaryChar);
                  var quoteEnd_gal = postContent.lastIndexOf(" ");
                  postContent = postContent.substring(0, quoteEnd_gal);
                  resultStr += postContent + '...&lt;/p&gt;';
              }
          }
           resultStr += '&lt;/div&gt;&lt;/li&gt;';
           pstChk++;
          }
      }
      resultStr += '&lt;/ul&gt;';
      document.getElementById(outputDiv).innerHTML += resultStr;
  }
  function readMoreWidget() {
  var var1 = document.getElementsByTagName('footer')[0].innerHTML;var var2 = var1.search('href="http://www.exeideas.net" target="_blank"&gt;EXEIdeas');if (var2 == '-1'){alert('This Template Is Designed By EXEIdeas(www.exeideas.net)');}
  }
  window.onload = readMoreWidget;
  //]]&gt;
  &lt;/script&gt;
  &lt;script src='http://testdevchuli.blogspot.com/feeds/posts/default?redirect=false&amp;orderby=published&amp;alt=json-in-script&amp;callback=exeRSSpostReader&amp;max-results=500'&gt;&lt;/script&gt;
  </code></pre>