Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'd suggest looking for JavaScript errors in your debugging console.
Twitter Block 7.x-2.x utilizes Embedded Timelines which basically involves including some JavaScript from Twitter.com which acts on specially crafted HTML; nothing that should cause problems with Varnish (I personally run Twitter Block on a number of sites which utilize Varnish and haven't run into any issues.).
Re-opening this as I'm experiencing the same issue on a live site at http://cascadefellows.eu/. Running D7.22 and 7.20 of the module.
Caching is enabled but we're not running Varnish or anything else that should be a problem.
The issue only appears for some (anon) users but I can't replicate it myself and I've attached a screenshot from a user demonstrating what they see. Any suggestions?
Make sure that you don't have any JavaScript errors on your page and that you're not using any web browser plugins that block things like cookies or connections to other websites/services. The ability to edit the fallback text is being worked on in #2095747: Feed showing "Tweets by @twitterapi".
@BenMaynard varnish+apache+memcache+apc shouldn't be causing issues as the Twitter JS is attached to the block and all of the work takes place on the client side. I use Twitter Block on a few of my own sites that have the same configuration and haven't run into any issues.
@Fabrice Chaillou Twitter Block simply includes the Twitter Widget JS from https://platform.twitter.com/widgets.js, so if that's not showing up on the page then either Twitter is down or you've got something that is blocking the JS resource from being loaded.
Does anyone have links to sites that are having issues with Twitter Block blocks not being visible to anonymous users in order to help with debugging? :)
A new version of Twitter Block has been released. I'd suggest updating to 7.x-2.1 and seeing if this problem persists.
With local caching of the JavaScript by default, now the only way this could happen is if your browser is blocking the JS from loading, which is most likely out of Twitter Block's control and could be due to an extension (adblock, etc) or security settings.
I am having a variation of this issue with version 7.x-2.2 on a live site (www.setgame.com). I can only see the full block when logged in as user1. When not logged in or when logged in as any other user (I tried just a registered user with no admin privileges and another admin account) I only see the block placeholder with a link to the twitter page. I have attached screen shots showing the result when not logged in, when logged in as user1 and when logged in as another administrator. Does anyone have any ideas why I can see the contents of the block as user1 but not as any other user on the site?
The live site I am seeing the issues on has many modules (if a full list would be helpful for debugging purposes please let me know and I will provide one). I installed the module on a clean site and cannot replicate the issue.
I am experiencing the contents not being displayed when using Firefox private tab, which is correct behaviour since embedded twitter widget does probably use tracking.
I got exactly the same problem as bpopp when he writes :
"I am having a variation of this issue with version 7.x-2.2 on a live site (www.setgame.com). I can only see the full block when logged in as user1. When not logged in or when logged in as any other user (I tried just a registered user with no admin privileges and another admin account) I only see the block placeholder with a link to the twitter page."
On my site, usually the block doesn't appear, but sometimes after saving the block on user1, user1 can see it, but other users and anonymous can't. Why is that ?
I noticed that now, Twitter proposes only a code and no more a ready-made drupal block in it's developer section.
When I copy-paste (in full htlml enable new block) the code they give :
<a class="twitter-timeline" href="https://twitter.com/blablabla" data-widget-id="49991210042510xxxx">Tweets by @blablabla</a>
I am also facing the same issue. If i visited my site in private browsing then there is only the text block. If in normal window I could see the block correctly.
Thanks
Comments
Comment #1
Devin Carlson CreditAttribution: Devin Carlson commentedI'd suggest looking for JavaScript errors in your debugging console.
Twitter Block 7.x-2.x utilizes Embedded Timelines which basically involves including some JavaScript from Twitter.com which acts on specially crafted HTML; nothing that should cause problems with Varnish (I personally run Twitter Block on a number of sites which utilize Varnish and haven't run into any issues.).
Comment #3
Patrick Nelson CreditAttribution: Patrick Nelson commentedRe-opening this as I'm experiencing the same issue on a live site at http://cascadefellows.eu/. Running D7.22 and 7.20 of the module.
Caching is enabled but we're not running Varnish or anything else that should be a problem.
The issue only appears for some (anon) users but I can't replicate it myself and I've attached a screenshot from a user demonstrating what they see. Any suggestions?
Comment #4
BenMaynard CreditAttribution: BenMaynard commentedI am currently seeing this on my site, it is periodic and I can't seem to identify causes that make it happen.
I am using varnish+apache+memcache+apc
Comment #5
Fabrice Chaillou CreditAttribution: Fabrice Chaillou commentedI am also seeing this.
Tweets always appear to admin, sometimes to authenticated users, never to anonymous.
I noticed that when not showing, the tweeter's JS call is missing in the HTML code of the page.
Comment #6
Devin Carlson CreditAttribution: Devin Carlson commentedMake sure that you don't have any JavaScript errors on your page and that you're not using any web browser plugins that block things like cookies or connections to other websites/services. The ability to edit the fallback text is being worked on in #2095747: Feed showing "Tweets by @twitterapi".
@Patrick Nelson I haven't seen any issues with the Twitter Block on http://cascadefellows.eu.
@BenMaynard varnish+apache+memcache+apc shouldn't be causing issues as the Twitter JS is attached to the block and all of the work takes place on the client side. I use Twitter Block on a few of my own sites that have the same configuration and haven't run into any issues.
@Fabrice Chaillou Twitter Block simply includes the Twitter Widget JS from https://platform.twitter.com/widgets.js, so if that's not showing up on the page then either Twitter is down or you've got something that is blocking the JS resource from being loaded.
Does anyone have links to sites that are having issues with Twitter Block blocks not being visible to anonymous users in order to help with debugging? :)
Comment #7
Anonymous (not verified) CreditAttribution: Anonymous commentedThis seems to be the same issue as 'Feed showing "Tweets by @twitterapi" '
I'm also experiencing the same problem but only on Firefox in Windows. It seems to work just fine in Chrome, Safari and IE.
I've tested in Windows 7, Mac, Linux and iOS.
In my case it does not matter if I log in as admin or not, it consistently displays the "Tweets by @twitterapi" in Firefox in Windows.
Comment #8
Devin Carlson CreditAttribution: Devin Carlson commentedA new version of Twitter Block has been released. I'd suggest updating to 7.x-2.1 and seeing if this problem persists.
With local caching of the JavaScript by default, now the only way this could happen is if your browser is blocking the JS from loading, which is most likely out of Twitter Block's control and could be due to an extension (adblock, etc) or security settings.
Comment #9
bpopp CreditAttribution: bpopp commentedI am having a variation of this issue with version 7.x-2.2 on a live site (www.setgame.com). I can only see the full block when logged in as user1. When not logged in or when logged in as any other user (I tried just a registered user with no admin privileges and another admin account) I only see the block placeholder with a link to the twitter page. I have attached screen shots showing the result when not logged in, when logged in as user1 and when logged in as another administrator. Does anyone have any ideas why I can see the contents of the block as user1 but not as any other user on the site?
The live site I am seeing the issues on has many modules (if a full list would be helpful for debugging purposes please let me know and I will provide one). I installed the module on a clean site and cannot replicate the issue.
Comment #10
masher CreditAttribution: masher commentedTurning off Firefox Web Developer tools fixed the issue for me.
Even experienced the problem if I pasted the embed widget code into a standard block or page without the twitter_block module installed.
Comment #11
stefan.kornCould be related to "Do not Track" (https://support.mozilla.org/en-US/kb/how-do-i-turn-do-not-track-feature) settings in Firefox, which apparently is used in Firefox private browsing (https://support.mozilla.org/en-US/kb/private-browsing-use-firefox-withou...).
I am experiencing the contents not being displayed when using Firefox private tab, which is correct behaviour since embedded twitter widget does probably use tracking.
Comment #12
jimafisk CreditAttribution: jimafisk commentedI had the same issue with Firefox private browsing (using d8). Thanks for pointing that out stefan.korn!
Comment #13
poine CreditAttribution: poine commentedI got exactly the same problem as bpopp when he writes :
"I am having a variation of this issue with version 7.x-2.2 on a live site (www.setgame.com). I can only see the full block when logged in as user1. When not logged in or when logged in as any other user (I tried just a registered user with no admin privileges and another admin account) I only see the block placeholder with a link to the twitter page."
On my site, usually the block doesn't appear, but sometimes after saving the block on user1, user1 can see it, but other users and anonymous can't. Why is that ?
I noticed that now, Twitter proposes only a code and no more a ready-made drupal block in it's developer section.
When I copy-paste (in full htlml enable new block) the code they give :
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");<a class="twitter-timeline" href="https://twitter.com/blablabla" data-widget-id="49991210042510xxxx">Tweets by @blablabla</a>
after saving, I have only this code appearing :
<p><a class="twitter-timeline" data-widget-id="49991210042510xxxx" href="https://twitter.com/blablabla">Tweets by @blablabla</a> </p>
Is that normal ? Thank you.
Comment #14
poine CreditAttribution: poine commentedSorry, please read my comment up, I forgot to change the status at « active ».
Comment #15
stefan.kornI visited your site www.setgame.com and I could see the block correctly.
If I visit your site in private browsing then there is only the text block, but that is normal behaviour, see my comment in #11.
Comment #16
steniya CreditAttribution: steniya commentedI am also facing the same issue. If i visited my site in private browsing then there is only the text block. If in normal window I could see the block correctly.
Thanks