The following error appears when trying to add Twitter: Formatted tweet field to a view.
An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /?q=admin/structure/views/view/site_tweets/preview/page_all_tweets/ajax
StatusText: Service unavailable (with message)
The following error appears when trying to add Twitter: Formatted tweet field to a view.
ResponseText: PDOException: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for type numeric: "htcluster"
LINE 3: WHERE twitter_uid = 'htcluster'
^: SELECT *
FROM {twitter_account}
WHERE twitter_uid = :id
OR screen_name = :id; Array
(
[:id] => htcluster
)
in twitter_account_load() (line 83 of /opt/drupal-7.17/modules/twitter/twitter.inc)
Comments
Comment #1
juampynr commentedSeems you are giving the screen_name to that query instead of the Twitter ID (a numeric ID that Twitter uses to identify your Twitter Profile).
Comment #2
testplatform commentedYes, this is what the message is saying. But how can I change it?
Comment #3
testplatform commentedComment #4
testplatform commentedOther types of twitter fields can be added fine. Only Twitter: Formatted tweet shows this error and does not work.
Comment #5
juampynr commentedtwitter_uid is a number. If you want to filter Tweets, you should use field Screen name.
Comment #6
liquidcms commentedi am using Formatted tweet field with 6.0-alpha2 and i do not see the errors you mention.
however, the links are all missing the twitter_id value:
https://twitter.com/intent/retweet?tweet_id=&original_referer=http://qa....
Comment #7
dgeo commentedSame here. just use a numeric ID :)