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 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
Comment #1
ishmael-sanchez CreditAttribution: ishmael-sanchez commentedDo you have pop up blocker enabled? The button works for me in a view just fine.
Comment #2
ayukko CreditAttribution: ayukko commentedThanks a lot for your response. I have tried disabling the pop-up blocker, as suggested, but it did not work.
Comment #3
chia CreditAttribution: chia commentedNot sure why its happening, Its working for me in all browsers.
Need more details
Comment #4
ayukko CreditAttribution: ayukko commentedChia, 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.
Comment #5
chia CreditAttribution: chia commentedCan you download the latest dev version and check if that fixes your issue?
Comment #6
ayukko CreditAttribution: ayukko commentedDownloaded, untargged, ran update.php, still not working.
Comment #7
chia CreditAttribution: chia commented"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 ?
Comment #8
ayukko CreditAttribution: ayukko commentedRegarding 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....
Comment #9
chia CreditAttribution: chia commentedI meant, Can anonymous user access that page where the tweetbutton is?
Comment #10
ayukko CreditAttribution: ayukko commentedYes, it has. Tweet button is displyaed in the page but it does not work for this user either.
Comment #11
garyjohn_2000 CreditAttribution: garyjohn_2000 commentedSubscribing
Part of the same issue as ayukko - Error in Twitter Share popup → 'url' parameter does not contain a valid URL.
My scenario:
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&count=vertical&counturl=http%3A%2F%2Flocalhost%2FAWOL%2F%3Fq%3Dnode%2F33&lang=en&related=%3A&text=Test%20Blog%20Entry%20Number%202%20%7C%20AWOL!&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.
Comment #12
garyjohn_2000 CreditAttribution: garyjohn_2000 commentedOkay, 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
Comment #13
ayukko CreditAttribution: ayukko commented@garyjohn_2000. Thanks a lot for sharing the "fix" of the URL issue.