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 have a problem with this button. It doesn't appear anywhere. I tried all the settings I found, tried it in a block, but nothing. The block appears, but it's empty. All the permissions are ok, it should be seen by everyone. Also tried dev version, but nothing. The 6.x version in Drupal 6.22 appeared in Chrome/Chromium and mobile browsers only (not in FIrefox, IE, Opera or UZBL), but this 7.x version appears nowhere.
Comments
Comment #1
corbacho CreditAttribution: corbacho commentedCan you post the problematic page?
Or if not, can you check in the source code of the page, if:
loading the Google+1 button library is there ? * The tag of the button is there? It has the original syntax? or has been replaced (rendered) by Google? I mean, Google replaces the tag by the actual button. Can you open Firebug or Dev Tools in your browser and check that there is no Javascript erros in the console when loading the page?* The
Comment #2
freyr CreditAttribution: freyr commentedThis is the site (it's far not done yet).
It should be appear in two places, in a block for the whole site and before a page content for that page (I turned on both). These are the codes on the page what contains the code for the button:
First, I found this code:
And this one:
And this script at the end of the body. The Chromium dev tools says there is an Uncaught Syntax Error: Unexpected identifier right at this point in the script tag:
Comment #3
corbacho CreditAttribution: corbacho commentedOh thanks for this good report.
Now I see the bug: It's missing a semi-colon after {lang:"hu"}
Nobody else complained because most of people I guess it's using the English default language, so then that string is not injected there. Also probably it happens only when Javascript Async loading is enabled.
Later today I will push the fix. Thanks again
Comment #4
freyr CreditAttribution: freyr commentedWith default language it's shown in Chromium and mobile borowsers. But still not displayed in Opera, UZBL, Firefox (5.0 and nightly, both Linux and Windows version) or Internet Explorer. These are the codes from Firefox:
These are the Inspect Network Request to pluseone:
There are some CSS errors, but those are not connected to the button.
Firebug didn't find any errors or warnings.
With the Windows version of Firefox, there is more space where the button should be appeared, but the Firebug didn't find any errors or warnings.
Comment #5
corbacho CreditAttribution: corbacho commentedAbout IE and other new/old browsers I have a warning in the project page: check this #1211336: Works in FF4/Mac but not Safari5 or Chrome12
I opened your page in Firefox 5 and the button is there but the iframe has this CSS rules:
So the button is kind of hidden.
Why Google does this? I don't know but someone else had same problem. Check this #1178714: "plus one" button not rendered
Cold you check if disabling the async loading option in the admin settings makes any difference?
Thanks
Comment #6
freyr CreditAttribution: freyr commentedNo, it doesn't help. I also tried the other settings, Tag syntax, Scope and Parse syntax, but nothing changed. With explicit call it doesn't appear anywhere. I also found a Wordpress site with +1 button, in Chromium and in Opera it's there, but in Firefox or UZBL it can't be seen.
Comment #7
corbacho CreditAttribution: corbacho commentedI found that the button displays this url in the button: http://xn--magyarhiz-d9a.hu
The module uses
global $base_url;
to build the URL if you don't put a specific URL in the block. Are you?Also see this issue in Webmasters Central. Seems similar to your case http://www.google.com/support/forum/p/Webmasters/thread?tid=75e981fd234f...
Comment #8
freyr CreditAttribution: freyr commentedI inserted this CSS code in my index.php:
Now the button appears, but only in the block and except in this page.
I found the other iframes in Firebug and I can fix this from there.
Update: I noticed that Firefox (Arch) Linux version doesn't show any of these buttons, nowhere over the internet. Not even the iframes are appeared. The Windows version is good. Is this a Firefox or a +1 button bug? I think Firefox.
Comment #8.0
freyr CreditAttribution: freyr commentedcorrection of the description
Comment #9
kscheirerThis was a few years ago, I'm assuming the issue was resolved? If not, please check again with the latest version of the module.