Could you try wrapping the function in a function_exists
, and see if it helps?
if ( function_exists( 'sharing_display' ) ) {
sharing_display( '', true );
}
Could you also let me know what other Jetpack customizations you’ve added to your theme, so I can try to reproduce the issue?
Thanks for the response Jeremy.
First, I probably won’t be able to test the recommended changes before this weekend. But in the interim, to answer your question, the lists below show the Jetpack modules, I’m currently running, and the other plugins I’m running on the site.
Jetpack Modules
WordPress.com Stats
Notifications
Sharing
Spelling and Grammar
WP.me Shortlinks
Plugins
Akismet
AntiScraper
Author Box With Different Description
Contact Form 7
Easy FancyBox
Google XML Sitemaps
Greg’s High Performance SEO
HTML5shiv
Multiple Galleries
Riva Slider Pro
W3 Total Cache
WordPress Database Backup
WordPress File Monitor Plus
WordPress Importer
WordPress Ping Optimize
WP-Optimize
WP-PageNavi
While I’m not familiar with all these plugins, none of them seem like a potential conflicting plugin.
Let me know what you find out this weekend after making the changes to your theme. If that doesn’t help, could you use a service like Pastebin to send me a copy the template file where you’ve inserted the sharing_display
function.
Thanks!
Thanks again Jeremy. I’ll be back in touch.
Unfortunately Jeremy, the “if” statement didn’t seem to help. In fact, I didn’t even have to update Jetpack to see that it wasn’t going to work.
Anyhow, I’ve pasted a copy of one of the PHP files from my theme to Pastebin that contains the “sharing_display” statement. I really didn’t see the need to upload the entire theme, but you may have your reasons.
The file shows how the <?php echo sharing_display(); ?> statement currently appears in my theme. This setup has functioned well for quite some time… at least until the Jetpack 2.7 update.
Let me know if you need something more from me.
To be honest, I’m currently working on a new theme to replace this one, so I’m not sure how dire this problem really is. Within a couple of months, I hope to have this site replaced with a new one. I just wanted to make you guys aware in case you’ve seen other
I’ve pasted a copy of one of the PHP files from my theme to Pastebin that contains the “sharing_display” statement. I really didn’t see the need to upload the entire theme, but you may have your reasons.
None of your Pastebin files appear to be public at the moment. Could you give it another try and make it public? It would be useful if you could include the whole file, as well as the other Jetpack specific functions you may have added to your theme.
I’m asking because it will help me understand why you’ve added this function in the first place. I assume this template file is for a very specific use case, since in normal situations you wouldn’t need to add any template tags for Sharedaddy to work. If I know more about what you’re trying to achieve and how you’re doing it, I might be able to reproduce the issue.
If you don’t feel comfortable sharing that much information about your project here, feel free to send me an email!
http://jetpack.me/contact-support/
Sorry about making the files private. It’s the first time I’ve used Pastebin, so I wasn’t really sure about what I was doing.
Anyhow, I’ve sent a request through the jetpack support page. I look forward to your response.
Thanks!