When I added the Web Intents
field to the Twitter view, I get errors of:
Notice: Undefined property: stdClass::$twitter_id in twitter_views_handler_field_web_intents->render() (line 100 of /.../sites/all/modules/twitter/twitter_views_field_handlers.inc).
This is on a new/test twitter account with a single "test" tweet. After some hours troubleshooting, I found that adding the Twitter status message ID
field before the Web Intents
field resolved this.
Can a field in a view be marked as dependent on another field? (ie. web_intents
depends on twitter_id
) If so, consider this a request to do so. If not, maybe this mention will help someone with the same problem in the future.
Comment | File | Size | Author |
---|---|---|---|
#2 | twitter-error_with_web_intents-1944174-2.patch | 756 bytes | yanniboi |
Comments
Comment #1
juampynr CreditAttribution: juampynr commentedI could not find a way to find out the Twitter ID automatically. Patches are welcome.
Comment #2
yanniboi CreditAttribution: yanniboi commentedHere is a patch against 7.x-5.6.
I just added the twitter_id to the construct function and called it in the query function. Will repatch against version 7.x-6.x shortly.
Comment #3
yanniboi CreditAttribution: yanniboi commentedQuick head up, the above patch applies cleanly to the latest version of 7.x-6.x.
Comment #4
juampynr CreditAttribution: juampynr commentedOutstanding @yanniboi, I did not know that using additional_fields was the way to solve that field dependency. Committed.
Thanks!
http://drupalcode.org/project/twitter.git/commit/053b7b7
Comment #5
yanniboi CreditAttribution: yanniboi commentedAs with my post (#22) on #1924478: Invalid Twitter OAuth request, it would be really helpful if you could commit this against the 7.x-5.6 release as well as 7.x-6.x.
Thanks!
Comment #6
juampynr CreditAttribution: juampynr commentedDone.
http://drupalcode.org/project/twitter.git/commit/ba6a9de
Thanks!