In parse_items function each item is an array which is converted into an object but the properties are still arrays.
So things like: $item->retweeted_status->user or $user->name will not return what they should and notices are thrown.

$item->retweeted_status['user'] should be used and $user must be converted into an object.

Comments

mfernea’s picture

Status: Active » Needs review
StatusFileSize
new869 bytes

I'm uploading a patch for this.

wbobeirne’s picture

Status: Needs review » Reviewed & tested by the community

Ran in to the same issue, came here to post a patch myself. This is a better solution than mine though, works like a charm.

wbobeirne’s picture

Posted a patch over here that solves a different issue, but since it's the same line of code, fixes this one as well. http://drupal.org/node/1935318

wbobeirne’s picture

Status: Reviewed & tested by the community » Needs work

With further testing, I found that this does not work depending on whether or not you're using the twitter module for Twitter API v1.1. I've added a new patch in the issue I posted above that catches all by json_encoding then decoding so that you recursively change every array to an object.

mfernea’s picture

I agree that the patch at http://drupal.org/node/1935318#comment-7152212 solves the problem better.
If that issue is merged, I think we should close this as a duplicate.

joachim’s picture

Status: Needs work » Closed (duplicate)

That issue is now fixed (but needs documentation). Hence closing this per previous comment.