Closed (fixed)
Project:
Twitter Block
Version:
7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
7 Jul 2011 at 12:51 UTC
Updated:
24 Mar 2012 at 14:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
di3gopa commentedI have exactly the same problem, the block it is not showing at all
Comment #2
di3gopa commentedaccording to http://search.twitter.com/api/ it is still search.twitter.com/search.json..
Comment #3
dddave commentedMmh...
I am totally incompetent with php so I cannot check the code this module is using. But something is horribly broke here. I am wondering why there aren't more support requests. My setup is pretty vanilla D7.4 and Bartik.
Comment #4
adshill commentedSame problem here. Everything worked fine for weeks and now suddenly the block doesn't appear at all. We didn't change anything on the site in that time. Something is amiss me things! Likewise I'm not a php man so can't check this. Any help greatly received as the module simply doesn't work right now! Can happily test if given pointers.
Thanks,
Adam
Comment #5
adshill commentedI've altered the title so that it is more clear if others are having the same problem.
Comment #6
jpsolero commentedJust change
$this->url_query = 'http://search.twitter.com/search.json?' . http_build_query($this->options);
with
$this->url_query = 'http://search.twitter.com/search.json?' . drupal_http_build_query($this->options);
En el fichero twitter.class L126
Comment #7
adshill commentedThat doesn't fix it for me, does it work for others?
Comment #8
barbi commentedI am able to get this module working using drupal 7.4 and twitter blocks 7.x-beta1 on my local dev.
Can you please provide more details - Drupal version, Twitter blocks version, Twitter block configuration. Please check if you have "cache blocks" turned on. You can control this setting under admin/config/development/performance
Also can you please try clearing the caches?
admin/config/development/performance -> Clear all caches
If you have a live URL running this module, please provide the URL. This makes it easier to debug.
Comment #9
adshill commentedSorry, the above fix in #6 worked form me, it just took a bit of time to kick in when the next item was posted on the Twitter account we're feeding.
Comment #10
mortendk commentedsubscribe
Comment #11
dddave commentedThe fix in #6 is working for me too.
Comment #12
ZenDoodles commentedThis appears to be a good fix. Nice catch @jpsolero. It will be in the next release.
Thanks so much for your contribution!
Comment #13
hadi farnoud commentedI get error 500
Comment #14
Marc Bijl commentedHi, just wanted to let you guys know that #8 made this module working for me:
1. Please check if you have "cache blocks" turned on.
You can control this setting under admin/config/development/performance
2. Also can you please try clearing the caches?
admin/config/development/performance -> Clear all caches
Great, many thanks!!!
Comment #15
Marc Bijl commentedJust found out tweets need to be quite recent (younger than a week or so). In my case, tweets from last Friday (that is 7 days ago) are not shown.
Comment #16
Katy J commentedThanks for all the suggestions. I think my problem was #15 - so I just added some new tweets and then I actually reverted to the original line of code (i.e. undid the instructions in #6) and then cleared the cache. Seems to be fine now.
Comment #17
carlomontagnino commentedI'm still not able to get this block to work.
When I first installed the module,and configured the block, it worked fine. 2 hours later it completely disappeared. I tried all of the solutions in theis thread to no avail. Does ANYONE have a clue on getting this working?
Comment #18
larsdjohnson commented#15 worked for me as well.
This block only shows tweets in the last week or so.
I think this is a pretty important bug to fix.
Comment #19
brandy.brown commentedNone of these fixes are working for me either. Applied the patch in#6, cleared the cache, ran update, posted new tweets. Nothing.
Comment #20
dhigby commentedNone of the fixes work for me either using beta1. Running latest Drupal 7. Yes I have caching on, but I have cleared it. I changed the line of code in #6 to add the word "drupal".
error reports:
Recieved an unexpected reply from Twitter. Perhaps just a fail whale? Our search url with query:@http://search.twitter.com/search.json?rpp=10&lang=English&q=from%3A%40Do...
Comment #21
trickyricky26 commentedCheck the language settings in the block configuration page. For some reason language was set to "eng" when it should be "en".
I left the language settings blank and it worked perfectly.
Comment #22
Robin Millette commentedI traced a problem to a conflict with the twitter module. Both register a TwitterSearch php class. It's new in the twitter module and the class isn't used for anything yet.
Either modules will have to change their class name unfortunately. Or maybe I'm missing something... I'm not familiar with the class registry at all.
See also #1421936: Class registry conflict with Twitter Block module (Twitter module issue).
Comment #23
Robin Millette commentedOn IRC, davereid said
So this TwitterSearch class should be renamed to TwitterBlockSearch to go with the module name.
Comment #24
dddave commentedSetting new status due to the information in the two previous comments. Given the lack of activity in this queue I doubt that something will happen but let us be correct here. At least the module is working with the (apparently half-assed) fix in #6.
Comment #25
Robin Millette commentedIf you also use the Twitter module and Twitter Block is giving you trouble, try the following.
Disabled and uninstalled Twitter_Block. Since the Twitter module TwitterSearch class is empty, I commented it out in twitter.lib.inc. Then I removed its entry (TwitterSearch) from the registry db table. Renamed twitter.class.php to twitter.class.inc and added that to the info file (it might have already be correct). Removed a line from twitter_block.module:
Reenabled Twitter_Block.
Comment #26
jphelan commented#15 was the problem for me as well. Does anyone know if this is a limitation of the module or Twitter? 30 days would be nicer than 7.
Comment #27
willwh commentedAlso seeing the behaviour from #15 - last tweet from the account I am displaying was 8 days ago - and today - the block is no longer visible.
Seems that this is just a limitation of the Search API, I think you'd need to specify a date for older tweets: http://stackoverflow.com/questions/6850855/twitter-search-api-suddenly-s...
Comment #28
jphelan commentedI've found that it is a limitation of the twitter search api. If you want tweets past 7 days you'll have to use the twitter module which doesn't use the Search API and is thus not limited to 7 days.
Comment #29
cweagansI committed a change last night that should allow you to get > 1 week of tweets. For this issue, we just need to rename the TwitterSearch class to TwitterBlockSearch as davereid suggested. This will fix the conflict with Twitter.module. Retitling this issue to reflect what needs done. Setting status to active because there's no patch here yet. Finally, tagging Novice because this is a very easy task.
Comment #30
cweagansThis too.
Comment #31
cweagansPatch attached.
Comment #32
cweagansCommitted and pushed.
Comment #33
cweagansClosing because I'm impatient and don't want to wait for the bot to clear out the queue.