I am using this button in a view. I can easily add this button as a field and it is correctly displayed in the page but it does not respond to the mouse click. No action, no error message, no nothing. I have checked the button config and permissions a dozen times but I can't find a reason why this is happening. Ideas to address this would be much appreciated.

Comments

ishmael-sanchez’s picture

Do you have pop up blocker enabled? The button works for me in a view just fine.

ayukko’s picture

Thanks a lot for your response. I have tried disabling the pop-up blocker, as suggested, but it did not work.

chia’s picture

Status: Active » Postponed (maintainer needs more info)

Not sure why its happening, Its working for me in all browsers.
Need more details

ayukko’s picture

Chia, not sure what information you need so I am going to describe what I have done. It is quite simple. I have a view called "Headers" where I get the "header" fields for the node type Story. One of these fields is the tweet button, which I select as a field in the view (add field-select node- select node:tweet button).
This view is displayed using a panel. The button is shown correctly but does not perform ay action when clicked; you don't even see the focus on the button.

When the browser displays a "raw" node, this is, the deafult display for a node, not the one I have created using panels for it, the button works, well, it gives me an error related to the url (??), but at least it does something.

Let me know if you need further info.

chia’s picture

Can you download the latest dev version and check if that fixes your issue?

ayukko’s picture

Downloaded, untargged, ran update.php, still not working.

chia’s picture

"When the browser displays a "raw" node, this is, the deafult display for a node, not the one I have created using panels for it, the button works, well, it gives me an error related to the url (??), but at least it does something."

If you get this error i assume, your page is hidden for anonymous user? can this be the case?
Also i still dont know why when you display it as a field its not working,
Is your page.tpl.php has variable $closure ?

ayukko’s picture

Regarding anonymous user, it has the permissions set to access the button. In any case, I am still testing the page with my admin user.

As per de $closure variable, page.tpl.php has it ( print $closure; ).

I am also confused about this issue.... quite weird....

chia’s picture

I meant, Can anonymous user access that page where the tweetbutton is?

ayukko’s picture

Yes, it has. Tweet button is displyaed in the page but it does not work for this user either.

garyjohn_2000’s picture

Subscribing

Part of the same issue as ayukko - Error in Twitter Share popup → 'url' parameter does not contain a valid URL.

My scenario:

  • No PathAuto
  • No Views
  • Just plain old Story
  • Test node url: http://localhost/AWOL/?q=node/33

Clicking on Tweet button shows a popup with the text: 'url' parameter does not contain a valid URL.

This is the <iframe> in the generated HTML of the Story page:
<iframe allowtransparency="true" frameborder="0" scrolling="no" tabindex="0" class="twitter-share-button twitter-count-vertical" src="http://platform0.twitter.com/widgets/tweet_button.html?_=1295400813083&amp;count=vertical&amp;counturl=http%3A%2F%2Flocalhost%2FAWOL%2F%3Fq%3Dnode%2F33&amp;lang=en&amp;related=%3A&amp;text=Test%20Blog%20Entry%20Number%202%20%7C%20AWOL!&amp;url=http%3A%2F%2Flocalhost%2FAWOL%2F%3Fq%3Dnode%2F33" style="width: 55px; height: 62px; " title="Twitter For Websites: Tweet Button"></iframe>

This is the URL of the popup Twitter Share window:
http://twitter.com/share?_=1295401842873&count=vertical&counturl=http%3A%2F%2Flocalhost%2FAWOL%2F%3Fq%3Dnode%2F33&original_referer=http%3A%2F%2Flocalhost%2FAWOL%2F%3Fq%3Dnode%2F33&related=%3A&text=Test%20Blog%20Entry%20Number%202%20|%20AWOL!&url=http%3A%2F%2Flocalhost%2FAWOL%2F%3Fq%3Dnode%2F33

Sorry about quoting the long URL lines, although it breaks the site's theme :S
I can't seem to make head or tail of this issue. Apparently, this module seems to work right out-of-the-box for lots of people just fine.

Tested on 3 browsers: Google Chrome (v9.0 beta), Mozilla Firefox (v3.6.13) and Internet Explorer 8 (v8.0.7600.16385). Haven't got any other browser to test it on. Issue is browser-independent.

garyjohn_2000’s picture

Okay, I think I've found the reason why this happens.

Was searching about the error on Google, bumped into this link: Tweet Button URL Probs

According to the guy there, Twitter doesn't parse any URLs containing 'localhost' or '127.0.0.1'. So, testing this on local production server is out of the question.

A silly 'Gotcha!'....Hope this helps someone else.

EDIT: Just tested it on a temp shared hosting space. Works like a charm. Tyvm for this simple module :) Hope it grows even better

ayukko’s picture

@garyjohn_2000. Thanks a lot for sharing the "fix" of the URL issue.