[Plugin: Google 1 button automator] button not appearing
-
The space for the button is present, and when i use firebug or other developer tools I see the xml code. However, no plus one button is appearing.
http://wordpress.org/extend/plugins/google-1-button-automator/
-
Hi,
Have you tried turning off all styling and see if the button is visible then ?
Has the problem occured since the first install or after editing your theme / adding new plugins ?Hi, thanks for responding.
Yes, turning off all styling is the first thing I tried. Still nothing.
This problem has occurred since the first install. I have not edited the theme or added any plugins. This is the most recent addition to the site.
This plugin has the highest rating which is why I chose it. My WP is the most recent version.
Thanks for choosing our plug-in! let’s hope we can get this fixed.
I suggest you try the following:
– Set the WP debug variabele to true in your wp-config.php and see if any notices or errors are shown– Double check for javascript errors that would prevent execution
– Deactivate the plugin and manually Generate a button for your page on http://www.google.com/webmasters/+1/button/ and place the generated code for example on your frontpage to test if it works.
If the button doesn’t show than the plugin is not the problem.– If it still doesn’t work can you send a link to the page ?
When I look at the source code to enable the active plug-in on the main page, I see these links. if I does not look disabled;-)
[Code moderated as per the Forum Rules. Please use the pastebin]
Okay, so other plugins and manually it works. When I turn on debugging in my config file these are the messages I get. The first one is at the very top of the page. The other two are at the top of each post. I don’t really know what they mean, my skills only extend so far!
My page: http://blog.travellersplayground.com
Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or init hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /home2/traveln7/public_html/blog/wp-includes/functions.php on line 3587
Notice: Undefined variable: post in /home2/traveln7/public_html/blog/wp-content/plugins/google-1-button-automator/googleplusone.php on line 78
Notice: Trying to get property of non-object in /home2/traveln7/public_html/blog/wp-content/plugins/google-1-button-automator/googleplusone.php on line 78
Hi,
I’ll fix that notice in the next release (probably friday). In the meantime you can fix it yourself by changing the follow code:
function add_post_footer_googleplusone( $text ){ global $posts;into
function add_post_footer_googleplusone( $text ){ global $post;I did so. No change. The icon is still not showing, but the div tag is present.
I cleaned up some other depreciated stuff this morning. I still get the notice at the top of my page. But your’s has cleared out. Something else I discovered. If I leave your plugin turned on. And I copy and paste the Goggle+ code manually…both your g+ icon and the manual one show. When I delete the manual code, your g+ button disappears again.
Thanks for your help on this.
Well I suppose I will uninstall this plugin as it’s still not working and it’s been a week since someone has last responded, please let me know if you come up with a solution.
Hi,
I looked at the page again and i noticed some things:
– The page includes the google analytics javascript twice (ga.js)
– There’s a manually inserted google button at the bottom “<g:plusone annotation=”inline”></g:plusone>” but it’s missing the javascript to activate it. I reckon you pasted the button code + js in a footer widget and the footer widget stripped the Javascript.
Maybe the plugin fails because of this. So i would try to remove it from the footer and test again.
Right, sorry about that, that was me messing around trying to get it to work when manually inserting code and not cleaning up well enough after. I have removed the extra code in the footer from what I can tell. Please let me know if you find excess code still.
Keep in mind when I manually add the code instead of using a plug in, it does appear on the page.
The plugin still seems not to be appearing.
Stupid question but gonna ask it anyway, did you activate the plugin? π
And could you test if the problem lies in the template ?
Try switching between your current theme and the default twentyeleven (it’s should work in the last).No such thing as stupid questions. Yes, the plugin is activated. And yes, switching templates did make the difference (it worked with the twentyeleven theme). What does this mean?
The template I am using is one I created, I based it off a tutorial I found online, all the graphics and CSS I modified, although I don’t know PHP so my modifications are basic if none when it comes to that.
I could have easily left a key piece of code out if i didn’t know what it did when I built my template.
Thank you for your persistence in my problem.
Ah, a good sign, we’re on to something! π
Check if your footer.php includes
<?php wp_footer(); ?>
This function is needed to include to javascript.That was it! Next time I will explain it’s a self built template to begin with, I probably could have shortened the journey.
Thank you so much for your help. This is great and your help was greatly appreciated.
No problem!
The topic ‘[Plugin: Google 1 button automator] button not appearing’ is closed to new replies.