Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter vcolfari

    (@vcolfari)

    Would really love to use these, but can’t get the counter to work. Problems with wordpress 3.6?

    Thread Starter vcolfari

    (@vcolfari)

    Well, for some reason, I reinstalled this plugin after a few days and all the counters are working. Not sure how that happened. I installed/reinstalled several times before and that had no effect. If anyone else has this problem, try installing again after some time and see if it helps :p

    For me only google plus was working.

    https://pbrd.co/1cw4CGj

    (this was on a post that has had 300K views.)

    I’ll give your solution a try after some time passes. Definitely weird.

    Anyone else had experience getting the post counts working?

    Same problem on our site: https://goo.gl/GvJA8v Only Google+ counters are working. I’m keeping my old counters [Hupso] on [along with Simple Share] for a while. Looks dumb but I don’t want visitors to think no one is sharing our stuff! I love this plugin and hope there is a fix for the zero counts. Thank you for all your work – I appreciate it.

    Check if the php directive allow_url_fopen is active.
    If not active it will only show 0.
    I had the problem.

    Check if the php directive allow_url_fopen is active.
    If not active it will only show 0.
    I had the problem and I solved it that way

    I used the following way to test if allow_url_fopen is enabled,
    https://stackoverflow.com/questions/13433660/how-to-check-if-allow-url-fopen-is-enabled-or-not

    and indeed my allow_url_fopen is already enabled:
    https://connectedfamilies.org/dev/test-allow_url_fopen/

    So I must need some other fix ??

    All worked on the last post (last week). Only google+ works on today’s.

    Attached you’ll find the test I build to verify twitter was working fine.

    <?php
    function getTwitterShareCount($urlCurrentPage) {
    
    	// get results from twitter and return the number of shares
        $htmlTwitterShareDetails = file_get_contents('https://urls.api.twitter.com/1/urls/count.json?url=' . $urlCurrentPage);
        print_r($htmlTwitterShareDetails);echo'<br/>';
        $arrTwitterShareDetails = json_decode($htmlTwitterShareDetails, true);
        print_r($arrTwitterShareDetails);
        $intTwitterShareCount =  $arrTwitterShareDetails['count'];
        return ($intTwitterShareCount ) ? $intTwitterShareCount : '0';
    }
    echo '<pre>';
    echo '<br/>'.getTwitterShareCount('https://demomentsomtres.com/catala/');
    echo '</pre>';

    Put it in a folder of your web server and try to call it.
    Check previously your server is configured to show warnings.
    Hope it works

    You can do the same test using the other functions inside lib folder of this component.

    I’m thinking it might be the cache plugin I’m using. I have disabled it—we’ll see if it was the culprit.

    It was the cache plugin.

    I’m getting the “Only-Google-Plus-Works” problem, and have no caching plugins installed.

    Thanks @ Marc. I had the same “Only-Google-Plus-Works” problem and your solution was right. “allow_url_fopen” has to be active! After changing, everything work fine!

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Counter not working’ is closed to new replies.