ErrorException [ Notice ]: Trying to get property 'id_str' of non-object

APPPATH/classes/Controller/Template.php [ 36 ]

31 
32 			$oTweets = $oTwitter->getTimeline('SophieintVeld', 200, $sLastTweetId);
33 
34 			if ($oTweets) {
35 				foreach ($oTweets as $oTweet) {
36 					$sTweetId = $oTweet->id_str;
37 
38 					$dtDatetime = gmdate("Y-m-d H:i:s", strtotime($oTweet->created_at));
39 					$iRetweet = (int)$oTweet->retweet_count;
40 					$iFavorite = (int)$oTweet->favorite_count;
41 
  1. APPPATH/classes/Controller/Template.php [ 36 ] » Kohana_Core::error_handler( arguments )

  2. SYSPATH/classes/Kohana/Controller.php [ 71 ] » Controller_Template->before( )

  3. {PHP internal call} » Kohana_Controller->execute( )

  4. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 93 ] » ReflectionMethod->invoke( arguments )

  5. SYSPATH/classes/Kohana/Request/Client.php [ 116 ] » Kohana_Request_Client_Internal->execute_request( arguments )

  6. SYSPATH/classes/Kohana/Request.php [ 933 ] » Kohana_Request_Client->execute( arguments )

  7. DOCROOT/public/index.php [ 94 ] » Kohana_Request->execute( )

Environment