• Resolved Mike Hampton

    (@wickedmike)


    It’s been approximately 2 months that my social media shares haven’t been showing. Knowing what topics are popular matters. As an activist, it helps to know when i’m getting the message across. I keep on hoping that they’ll work with a new update but they don’t. This time, the update even said it was addressing the issue after Facebook had made changes.

    https://www.knysnakeep.org

    I love Jetpack’s many features. I don’t want to add a new plugin to do just one job.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    Your site doesn’t seem to be properly connected to WordPress.com at the moment.

    I would suggest contacting your hosting provider and explaining that we are unable to access your blog via cURL, which is needed in order to use Jetpack on your site.

    You can let them know we tested the following:

    1. Check for access to xmlrpc.php via browser:
    https://www.knysnakeep.org/xmlrpc.php

    That test returned “XML-RPC server accepts POST requests only.” which is a valid result.

    2. Check for access via cURL by running the following command from the command prompt:

    curl -A "Jetpack by WordPress.com" -is -H 'Content-Type: text/xml' --data '<?xml version="1.0"?><methodCall><methodName>demo.sayHello</methodName><params></params></methodCall>' 'https://www.knysnakeep.org/xmlrpc.php' && echo

    The cURL test returned a correct response when ran from a random server, but returned a 404 error from a WordPress.com server.

    Please provide the information above to your hosting provider so that they can correct the server settings to allow cURL access.

    I hope this helps.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    After taking another look, I wonder if the sharing count problem could be caused by one of your caching / performance plugins.

    Let’s take a look at this post, for example:
    https://www.knysnakeep.org/mp3-mayor-eleonore-bouw-spies-fran-kirsten/

    By default, no Facebook shares are displayed. However, when querying the Facebook API we get 10 shares:

    /**/ WPCOMSharing.update_facebook_count({
       "https://www.knysnakeep.org/mp3-mayor-eleonore-bouw-spies-fran-kirsten/": {
          "og_object": {
             "id": "931432456984149",
             "description": "I WANT YOUR OPINION about this recorded meeting between me, Knysna Democratic Alliance Mayor Eleonore Bouw-Spies, and Communications Manager, Fran Kirsten.",
             "title": "MP3: Mayor Eleonore Bouw-Spies & Fran Kirsten | Knysna Keep",
             "type": "article",
             "updated_time": "2016-09-03T14:49:14+0000"
          },
          "share": {
             "comment_count": 0,
             "share_count": 10
          },
          "id": "https://www.knysnakeep.org/mp3-mayor-eleonore-bouw-spies-fran-kirsten/"
       }
    });

    If I now reload that page while deactivate Autoptimize, thanks to the ?ao_noptimize=1 query string, the sharing counts appear:

    https://www.knysnakeep.org/mp3-mayor-eleonore-bouw-spies-fran-kirsten/?ao_noptimize=1
    https://i.wpne.ws/hOoJ

    Could you try to exclude this file from Autoptimize, and see if it helps?
    https://www.knysnakeep.org/wp-content/plugins/jetpack/modules/sharedaddy/sharing.js?ver=4.3

    Before to do that, it might also be worth flushing your site’s cache if you use another caching plugin, just to make sure Autoptimize isn’t just serving an old version of the file, cached by another plugin.

    I hope this helps.

    Thread Starter Mike Hampton

    (@wickedmike)

    I’m lucky to have the master himself pop in ?? Thanks, Jeremy!

    You are correct.

    The latest Jetpack update fixed the problem i had the past two months but i never realised it because Autoptomize, installed a week ago, is the new problem.

    On deactivation, the shares were back.

    I don’t know how to exclude that file (https://www.knysnakeep.org/wp-content/plugins/jetpack/modules/sharedaddy/sharing.js?ver=4.3) but will make a query on the Autoptomize page if they have one.

    Thread Starter Mike Hampton

    (@wickedmike)

    I assume i no longer have to contact my hoster regarding cURL?

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    will make a query on the Autoptomize page if they have one.

    It looks like Frank replied already, so you should be all set!

    I assume i no longer have to contact my hoster regarding cURL?

    I would still recommend that you contact your hosting provider, as the issue is most likely going to cause other issues with Jetpack (subscription emails not going out, Publicize not being triggered, …) in the future.

    Thread Starter Mike Hampton

    (@wickedmike)

    Thanks very much, Jeremy. Great help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Jetpack Shares not showing’ is closed to new replies.