Most javascript, including twitter, is loaded into the header. By default, the NGFB header code has an execution priority of 10. You could try to load it a little later and see if that makes a difference. Try to add the following to your wp-config.php:
define('NGFB_HEAD_PRIORITY', 100);
If that doesn’t work, you could try adding the original twitter javascript code to your footer:
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
js.
It’s been a few days without feedback, so I will assume this is no longer an issue and mark the thread as resolved.
Thanks,
js.
Sorry for not responding, due to unrelated computer issues I haven’t had a chance to try the fix. I’ll hopefully have it done here shortly! I appreciate the response!
I’ve made some changes to the button javascript in the next version. Download the current dev version, and see if it fixes the problem. If it doesn’t, then set the “JavaScript in” option for Twitter to ‘Footer’.
The dev version is available at: http://downloads.wordpress.org/plugin/nextgen-facebook.zip
Thanks,
js.
OK, tried the latest version, changing the javascript option to “Footer”, no change. Added the excecution priority line to the wp-config.php, no change. I didn’t try adding the javascript to the footer because I’m honestly not quite sure where to put it. I’m assuming in the footer.php file?
I updated WordPress before updating the plugin, and made all changes after all updates.
Sounds like there’s somekind of incompatibility between the Twitter javascript (from Twitter) and your theme… You’ll have to do a little more digging to find out why the two don’t work together.
I guess first thing I’d try is to switch your theme to something else (like one of the stock WP themes) and see if the problem persists. If it does, then maybe its related to another plugin. Try disabling them one by one and see if the problem goes away.
Let me know what you find. If there’s anything I can do, let me know.
I’ll set the status to resolved since this issue isn’t strictly an NGFB problem, it’s a problem with the Twitter javascript, which is from Twitter itself.
Thanks,
js.
I really appreciate the help! Sadly I’m still pretty new to this, and I know pretty much nothing about Java. Was able make a few interesting discoveries, though:
Changed to the defaul 2012 theme, it was still broken. Put my original theme back.
Started disabling plugins. Disabled SlideShow Gallery, still broken, but this time there’s the following JavaScript error on the page along with the title:
`Fatal error: Call to undefined function curl_init() in /var/www/blog/wp-content/plugins/nextgen-facebook/lib/googl.php on line 44′
Disabled NextGen Gallery, no change.
Disabled All-in-One Favicon, no change. Those are all the active plugins I have.
When I re-enabled Slideshow Gallery, the error went away and it returned to showing the page title and nothing else.
No idea if this helps any at all. Again, thanks for your help in this!
Ah, got it. Your PHP doesn’t have the curl module, so the link shortening method is failing. I’ve added a check for the curl_init()
function in the new 3.4 version (just released). This should fix your problem. 😉
BTW, without the curl module, links cannot be shortened for Twitter, so you might want to look into that…
js.
Installed the PHP cURL plugin and that did it! Also upgraded the plugin again. Everything is back to normal!
Again, thanks for all your help in this. I really appreciate it!