Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Devin Carlson’s picture

Category: bug » support
Status: Active » Fixed

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.).

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Patrick Nelson’s picture

Status: Closed (fixed) » Active
FileSize
115.04 KB

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?

BenMaynard’s picture

I 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

Fabrice Chaillou’s picture

I 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.

Devin Carlson’s picture

Status: Active » Postponed (maintainer needs more info)

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".

@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? :)

Anonymous’s picture

This 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.

Devin Carlson’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

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.

bpopp’s picture

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.

masher’s picture

Turning 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.

stefan.korn’s picture

Could 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.

jimafisk’s picture

I had the same issue with Firefox private browsing (using d8). Thanks for pointing that out stefan.korn!

poine’s picture

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>

!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");

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.

poine’s picture

Issue summary: View changes

Sorry, please read my comment up, I forgot to change the status at « active ».

stefan.korn’s picture

I 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.

steniya’s picture

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